옵션
집 Skill Git 및 버전 관리 generate-custom-instructions-from-codebase

generate-custom-instructions-from-codebase

github/awesome-copilot github/awesome-copilot

GitHub Copilot용 마이그레이션 및 코드 진화 지침 생성기. 두 프로젝트 버전(브랜치, 커밋 또는 릴리스) 간의 차이점을 분석하여, 기술 마이그레이션, 대대적인 리팩토링 또는 프레임워크 버전 업그레이드 과정에서 Copilot이 일관성을 유지할 수 있도록 정확한 지침을 생성합니다.

...모든 것을 확장하십시오
13
업데이트 된 시간 2026년 8월 26일

소개 generate-custom-instructions-from-codebase

이 스킬은 프로젝트의 두 버전(두 브랜치, 커밋 또는 태그) 간의 차이점을 분석하여 GitHub Copilot용 마이그레이션 및 코드 진화 지침을 생성합니다. 이 스킬은 기술 마이그레이션, 대대적인 리팩토링 또는 프레임워크 업그레이드 과정에서 일관성을 유지해야 하는 문제를 해결합니다. 변경 전후 상태 간의 변환 패턴이 한 번 파악되면, 개발자가 각 규칙을 일일이 기억할 필요 없이 Copilot이 향후 작업 시 동일한 변경 사항을 자동으로 적용할 수 있습니다.

이 스킬은 구성 변수(마이그레이션 유형, 소스 및 대상 참조, 분석 범위, 변경 초점, 자동화 수준, 예제 생성 여부, 유효성 검사 필요 여부)에 의해 구동됩니다. 이 스킬은 다단계 방법론을 정의합니다: 마이그레이션 유형(프레임워크 버전, 아키텍처 리팩토링, 기술 마이그레이션)에 맞춰 구조적 변경, 종속성 변경 및 코드 변환을 감지하는 비교 상태 분석; 반복적인 변환 패턴을 추출하여 ‘변경 전/후’ 대응 규칙으로 정리; 그리고 `.github/copilot-migration-instructions.md` 파일 생성. 이 결과물에는 필수 변환, 검증이 필요한 변환, API 대응표, 채택해야 할 새로운 패턴, 피해야 할 구식 패턴, 파일 유형별 지침, 검증 및 보안 제어 지점, 수동 처리로 이관해야 할 사례, 모니터링 지표 등이 문서화됩니다. 선택적 단계에서는 문맥에 맞는 '변환 전/후' 코드 예제와 반복적인 규칙 최적화를 추가합니다.

이 도구는 체계적인 마이그레이션을 수행하는 개발자, 아키텍트 및 팀을 대상으로 하며, Copilot이 그들의 진화적 의사결정을 일관되게 재현하기를 원하는 경우를 위해 설계되었습니다. 사용 사례로는 프레임워크 버전 업그레이드, 아키텍처 리팩토링, 또는 규약을 일관되게 유지하고 더 이상 사용되지 않는 패턴을 피하면서 한 기술을 다른 기술로 대체하는 경우가 있습니다. 이 스킬은 버전 관리 이력과 프로젝트 파일을 읽어 지침 문서를 생성하며, git 비교 및 파일 분석을 수행하지만 파괴적인 작업이나 자격 증명 처리는 수행하지 않으므로 위험도가 낮은 것으로 평가됩니다.

자주 묻는 질문

이 스킬은 무엇을 생성하나요?

자동 변환 규칙, API 대응표, 채택 및 피해야 할 패턴, 유효성 검사 제어점, 향후 변경 시 Copilot을 안내할 모니터링 지표가 포함된 .github/copilot-migration-instructions.md 파일입니다.

어떤 입력값이 필요합니까?

마이그레이션 유형, 소스 및 대상 참조(브랜치, 커밋 또는 태그), 분석 범위, 변경 중점 사항, 자동화 수준, 예제 생성 및 유효성 검사 요구 여부를 지정하는 플래그 등의 구성 변수가 필요합니다.

어떤 종류의 마이그레이션을 처리하나요?

프레임워크 버전 업그레이드, 아키텍처 리팩토링, 기술 마이그레이션, 종속성 업데이트, 패턴 변경 등이 있으며, 분석은 선택한 마이그레이션 유형에 맞게 조정됩니다.

자동화 수준에 따라 출력이 달라지나요?

네. ‘보수적(Conservative)’ 수준에서는 필수 자동 변환 규칙을 생략하는 반면, ‘균형(Balanced)’ 및 ‘공격적(Aggressive)’ 수준에서는 이를 포함합니다. 또한 ‘공격적(Aggressive)’ 수준은 자동화를 극대화하고 오탐을 줄이기 위해 반복적인 최적화 기능을 추가로 적용합니다.

변환 규칙은 어떻게 식별하나요?

두 프로젝트 상태(폴더 구조, 의존성, 코드)를 비교하여 반복적인 변환을 추출하고, 호환성 깨짐 및 더 이상 사용되지 않는 패턴을 포함한 ‘변환 전/후’ 대응 매트릭스를 구축합니다.

GitHub에서 보기

Configuration Variables

${MIGRATION_TYPE="Framework Version|Architecture Refactoring|Technology Migration|Dependencies Update|Pattern Changes"}<!-- Type of migration or evolution -->${SOURCE_REFERENCE="branch|commit|tag"}<!-- Source reference point (before state) -->${TARGET_REFERENCE="branch|commit|tag"}  <!-- Target reference point (after state) -->${ANALYSIS_SCOPE="Entire project|Specific folder|Modified files only"}<!-- Scope of analysis -->${CHANGE_FOCUS="Breaking Changes|New Conventions|Obsolete Patterns|API Changes|Configuration"}<!-- Main aspect of changes -->${AUTOMATION_LEVEL="Conservative|Balanced|Aggressive"}<!-- Level of automation for Copilot suggestions -->${GENERATE_EXAMPLES="true|false"}<!-- Include transformation examples -->${VALIDATION_REQUIRED="true|false"}<!-- Require validation before application -->

Generated Prompt

"Analyze code evolution between two project states to generate precise migration instructions for GitHub Copilot. These instructions will guide Copilot to automatically apply the same transformation patterns during future modifications. Follow this methodology:### Phase 1: Comparative State Analysis#### Structural Changes Detection- Compare folder structure between ${SOURCE_REFERENCE} and ${TARGET_REFERENCE}- Identify moved, renamed, or deleted files- Analyze changes in configuration files- Document new dependencies and removed ones#### Code Transformation Analysis${MIGRATION_TYPE == "Framework Version" ?   "- Identify API changes between framework versions   - Analyze new features being used   - Document obsolete methods/properties   - Note syntax or convention changes" : ""}${MIGRATION_TYPE == "Architecture Refactoring" ?   "- Analyze architectural pattern changes   - Identify new abstractions introduced   - Document responsibility reorganization   - Note changes in data flows" : ""}${MIGRATION_TYPE == "Technology Migration" ?   "- Analyze replacement of one technology with another   - Identify functional equivalences   - Document API and syntax changes   - Note new dependencies and configurations" : ""}#### Transformation Pattern Extraction- Identify repetitive transformations applied- Analyze conversion rules from old to new format- Document exceptions and special cases- Create before/after correspondence matrix### Phase 2: Migration Instructions GenerationCreate a `.github/copilot-migration-instructions.md` file with this structure:\`\`\`markdown# GitHub Copilot Migration Instructions## Migration Context- **Type**: ${MIGRATION_TYPE}- **From**: ${SOURCE_REFERENCE} - **To**: ${TARGET_REFERENCE}- **Date**: [GENERATION_DATE]- **Scope**: ${ANALYSIS_SCOPE}## Automatic Transformation Rules### 1. Mandatory Transformations${AUTOMATION_LEVEL != "Conservative" ?   "[AUTOMATIC_TRANSFORMATION_RULES]   - **Old Pattern**: [OLD_CODE]   - **New Pattern**: [NEW_CODE]   - **Trigger**: When to detect this pattern   - **Action**: Transformation to apply automatically" : ""}### 2. Transformations with Validation${VALIDATION_REQUIRED == "true" ?   "[TRANSFORMATIONS_WITH_VALIDATION]   - **Detected Pattern**: [DESCRIPTION]   - **Suggested Transformation**: [NEW_APPROACH]   - **Required Validation**: [VALIDATION_CRITERIA]   - **Alternatives**: [ALTERNATIVE_OPTIONS]" : ""}### 3. API Correspondences${CHANGE_FOCUS == "API Changes" || MIGRATION_TYPE == "Framework Version" ?   "[API_CORRESPONDENCE_TABLE]   | Old API   | New API   | Notes     | Example        |   | --------- | --------- | --------- | -------------- |   | [OLD_API] | [NEW_API] | [CHANGES] | [CODE_EXAMPLE] | " : ""} |### 4. New Patterns to Adopt[DETECTED_EMERGING_PATTERNS]- **Pattern**: [PATTERN_NAME]- **Usage**: [WHEN_TO_USE] - **Implementation**: [HOW_TO_IMPLEMENT]- **Benefits**: [ADVANTAGES]### 5. Obsolete Patterns to Avoid[DETECTED_OBSOLETE_PATTERNS]- **Obsolete Pattern**: [OLD_PATTERN]- **Why Avoid**: [REASONS]- **Alternative**: [NEW_PATTERN]- **Migration**: [CONVERSION_STEPS]## File Type Specific Instructions${GENERATE_EXAMPLES == "true" ?   "### Configuration Files   [CONFIG_TRANSFORMATION_EXAMPLES]      ### Main Source Files   [SOURCE_TRANSFORMATION_EXAMPLES]      ### Test Files   [TEST_TRANSFORMATION_EXAMPLES]" : ""}## Validation and Security### Automatic Control Points- Verifications to perform after each transformation- Tests to run to validate changes- Performance metrics to monitor- Compatibility checks to perform### Manual EscalationSituations requiring human intervention:- [COMPLEX_CASES_LIST]- [ARCHITECTURAL_DECISIONS]- [BUSINESS_IMPACTS]## Migration Monitoring### Tracking Metrics- Percentage of code automatically migrated- Number of manual validations required- Error rate of automatic transformations- Average migration time per file### Error ReportingHow to report incorrect transformations to Copilot:- Feedback patterns to improve rules- Exceptions to document- Adjustments to make to instructions\`\`\`### Phase 3: Contextual Examples Generation${GENERATE_EXAMPLES == "true" ?   "#### Transformation Examples   For each identified pattern, generate:      \`\`\`   // BEFORE (${SOURCE_REFERENCE})   [OLD_CODE_EXAMPLE]      // AFTER (${TARGET_REFERENCE})    [NEW_CODE_EXAMPLE]      // COPILOT INSTRUCTIONS   When you see this pattern [TRIGGER], transform it to [NEW_PATTERN] following these steps: [STEPS]   \`\`\`" : ""}### Phase 4: Validation and Optimization#### Instructions Testing- Apply instructions on test code- Verify transformation consistency- Adjust rules based on results- Document exceptions and edge cases#### Iterative Optimization  ${AUTOMATION_LEVEL == "Aggressive" ?   "- Refine rules to maximize automation   - Reduce false positives in detection   - Improve transformation accuracy   - Document lessons learned" : ""}### Final ResultMigration instructions that enable GitHub Copilot to:1. **Automatically apply** the same transformations during future modifications2. **Maintain consistency** with newly adopted conventions  3. **Avoid obsolete patterns** by automatically proposing alternatives4. **Accelerate future migrations** by capitalizing on acquired experience5. **Reduce errors** by automating repetitive transformationsThese instructions transform Copilot into an intelligent migration assistant, capable of reproducing your technology evolution decisions consistently and reliably."

Typical Use Cases

Framework Version Migration

Perfect for documenting the transition from Angular 14 to Angular 17, React Class Components to Hooks, or .NET Framework to .NET Core. Automatically identifies breaking changes and generates corresponding transformation rules.

Technology Stack Evolution

Essential when replacing a technology entirely: jQuery to React, REST to GraphQL, SQL to NoSQL. Creates a comprehensive migration guide with pattern mappings.

Architecture Refactoring

Ideal for large refactorings like Monolith to Microservices, MVC to Clean Architecture, or Component to Composable architecture. Preserves architectural knowledge for future similar transformations.

Design Pattern Modernization

Useful for adopting new patterns: Repository Pattern, Dependency Injection, Observer to Reactive Programming. Documents the rationale and implementation differences.

Unique Benefits

🧠 Artificial Intelligence Enhancement

Unlike traditional migration documentation, these instructions "train" GitHub Copilot to reproduce your technology evolution decisions automatically during future code modifications.

🔄 Knowledge Capitalization

Transforms specific project experience into reusable rules, avoiding the loss of migration expertise and accelerating future similar transformations.

🎯 Context-Aware Precision

Instead of generic advice, generates instructions tailored to your specific codebase, with real before/after examples from your project evolution.

⚡ Automated Consistency

Ensures that new code additions automatically follow the new conventions, preventing architectural regression and maintaining code evolution coherence.

모든 파일

0개 파일

generate-custom-instructions-from-codebase 설치

스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어 주세요.

ZIP 다운로드

저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.

git clone https://github.com/github/awesome-copilot/blob/main/skills/generate-custom-instructions-from-codebase/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

복사 복사
빠른 설정: skill 폴더를 .claude/skills/로 복사하면 Claude가 해당 스킬을 자동으로 감지하여 사용합니다.

관련 스킬

github-project-management
업데이트 된 시간 2026년 6월 29일
using-git-worktrees
업데이트 된 시간 2026년 6월 29일
readme-blueprint-generator
업데이트 된 시간 2026년 7월 5일
finishing-a-development-branch
업데이트 된 시간 2026년 6월 29일
OR