/copilot-customization-authoring:generate-custom-instructions-from-codebasefrom copilot-customization-authoring
Generates GitHub Copilot migration instructions by comparing branches, commits, tags, or releases and extracting transformation rules. Useful for framework upgrades, architecture refactors, technology migrations, and dependency updates.
Ships in copilot-customization-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Compare two project states, extract real before/after transformation patterns, and write .github/copilot-migration-instructions.md so GitHub Copilot can preserve the migration's conventions in future edits.
Use $ARGUMENTS for the migration configuration. Required values are MIGRATION_TYPE, SOURCE_REFERENCE, and TARGET_REFERENCE; optional values are ANALYSIS_SCOPE, CHANGE_FOCUS, AUTOMATION_LEVEL, GENERATE_EXAMPLES, and VALIDATION_REQUIRED.
| Variable | Allowed values | Purpose |
|---|---|---|
MIGRATION_TYPE | Framework Version, Architecture Refactoring, Technology Migration, Dependencies Update, Pattern Changes | Defines the migration lens. |
SOURCE_REFERENCE | branch, commit, tag | Before-state reference. |
TARGET_REFERENCE | branch, commit, tag | After-state reference. |
ANALYSIS_SCOPE | Entire project, Specific folder, Modified files only | Limits the comparison. |
CHANGE_FOCUS | Breaking Changes, New Conventions, Obsolete Patterns, API Changes, Configuration | Prioritizes findings. |
AUTOMATION_LEVEL | Conservative, Balanced, Aggressive | Controls how confidently instructions should automate future suggestions. |
GENERATE_EXAMPLES | true, false | Includes before/after transformations. |
VALIDATION_REQUIRED | true, false | Marks transformations that require checks before application. |
SOURCE_REFERENCE and TARGET_REFERENCE to concrete commits, branches, or tags.MIGRATION_TYPE and CHANGE_FOCUS..github/copilot-migration-instructions.md with examples when GENERATE_EXAMPLES=true.| Migration type | Extract |
|---|---|
| Framework Version | API changes, new features being used, obsolete methods/properties, syntax or convention changes. |
| Architecture Refactoring | Architectural pattern changes, new abstractions, responsibility reorganization, data flow changes. |
| Technology Migration | Functional equivalences, API and syntax changes, new dependencies, configuration changes. |
| Dependencies Update | Package replacements, version constraints, import changes, config changes, compatibility rules. |
| Pattern Changes | Repetitive transformations, old/new format rules, exceptions, and special cases. |
| Section | Include |
|---|---|
| Migration Context | MIGRATION_TYPE, SOURCE_REFERENCE, TARGET_REFERENCE, GENERATION_DATE, and ANALYSIS_SCOPE. |
| Mandatory Transformations | AUTOMATIC_TRANSFORMATION_RULES with OLD_CODE, NEW_CODE, trigger, and action when AUTOMATION_LEVEL is not Conservative. |
| Transformations with Validation | TRANSFORMATIONS_WITH_VALIDATION, NEW_APPROACH, VALIDATION_CRITERIA, and ALTERNATIVE_OPTIONS when VALIDATION_REQUIRED=true. |
| API Correspondences | API_CORRESPONDENCE_TABLE with OLD_API, NEW_API, changes, and CODE_EXAMPLE when CHANGE_FOCUS=API Changes or MIGRATION_TYPE=Framework Version. |
| New Patterns to Adopt | DETECTED_EMERGING_PATTERNS, PATTERN_NAME, WHEN_TO_USE, HOW_TO_IMPLEMENT, and benefits. |
| Obsolete Patterns to Avoid | DETECTED_OBSOLETE_PATTERNS, OLD_PATTERN, why avoid, NEW_PATTERN, and CONVERSION_STEPS. |
| File Type Specific Instructions | CONFIG_TRANSFORMATION_EXAMPLES, SOURCE_TRANSFORMATION_EXAMPLES, and TEST_TRANSFORMATION_EXAMPLES when GENERATE_EXAMPLES=true. |
| Validation and Security | Automatic control points plus manual escalation for COMPLEX_CASES_LIST, ARCHITECTURAL_DECISIONS, and BUSINESS_IMPACTS. |
| Migration Monitoring | Migration percentage, manual validations, automatic transformation error rate, and average migration time per file. |
# 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
- **Old Pattern**: <OLD_CODE>
- **New Pattern**: <NEW_CODE>
- **Trigger**: <when to detect this pattern>
- **Action**: <transformation to apply automatically>
### 2. Transformations with Validation
- **Detected Pattern**: <description>
- **Suggested Transformation**: <NEW_APPROACH>
- **Required Validation**: <VALIDATION_CRITERIA>
- **Alternatives**: <ALTERNATIVE_OPTIONS>
### 3. API Correspondences
| Old API | New API | Notes | Example |
| --- | --- | --- | --- |
| <OLD_API> | <NEW_API> | <changes> | <CODE_EXAMPLE> |
### 4. New Patterns to Adopt
- **Pattern**: <PATTERN_NAME>
- **Usage**: <WHEN_TO_USE>
- **Implementation**: <HOW_TO_IMPLEMENT>
- **Benefits**: <advantages>
### 5. Obsolete Patterns to Avoid
- **Obsolete Pattern**: <OLD_PATTERN>
- **Why Avoid**: <reasons>
- **Alternative**: <NEW_PATTERN>
- **Migration**: <CONVERSION_STEPS>
## File Type Specific Instructions
### Configuration Files
<CONFIG_TRANSFORMATION_EXAMPLES>
### Main Source Files
<SOURCE_TRANSFORMATION_EXAMPLES>
### Test Files
<TEST_TRANSFORMATION_EXAMPLES>
## Validation and Security
### Automatic Control Points
- <tests, performance metrics, compatibility checks>
### Manual Escalation
- <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 Reporting
- Feedback patterns to improve rules
- Exceptions to document
- Adjustments to make to instructions
// 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>.
| Use case | Good output |
|---|---|
| Framework Version Migration | Angular 14 to Angular 17, React Class Components to Hooks, .NET Framework to .NET Core rules with breaking changes. |
| Technology Stack Evolution | jQuery to React, REST to GraphQL, SQL to NoSQL functional mappings. |
| Architecture Refactoring | Monolith to Microservices, MVC to Clean Architecture, Component to Composable architecture. |
| Design Pattern Modernization | Repository Pattern, Dependency Injection, Observer to Reactive Programming adoption guidance. |
Preserve placeholders used by generated migration instructions: ADVANTAGES, CHANGES, DESCRIPTION, REASONS, STEPS, TRIGGER, and cross-version.
## Copilot migration instructions result
**Status:** generated | needs validation | blocked
**Output file:** `.github/copilot-migration-instructions.md`
**Migration:** `<MIGRATION_TYPE>` from `<SOURCE_REFERENCE>` to `<TARGET_REFERENCE>`
### Patterns extracted
| Category | Count | Examples |
| --- | --- | --- |
| Mandatory transformations | <count> | <summary> |
| Transformations with validation | <count> | <summary> |
| API correspondences | <count> | <summary> |
| New patterns | <count> | <summary> |
| Obsolete patterns | <count> | <summary> |
### Validation
- Test application on sample code: pass | fail | not run
- Exceptions documented: pass | fail
- Manual escalations listed: pass | fail
MIGRATION_TYPE, SOURCE_REFERENCE, TARGET_REFERENCE, ANALYSIS_SCOPE, CHANGE_FOCUS, AUTOMATION_LEVEL, GENERATE_EXAMPLES, and VALIDATION_REQUIRED are recorded..github/copilot-migration-instructions.md is generated with migration context and transformation rules.OLD_API, NEW_API, and CODE_EXAMPLE when API changes are in scope.OLD_CODE_EXAMPLE and NEW_CODE_EXAMPLE when requested.COMPLEX_CASES_LIST, ARCHITECTURAL_DECISIONS, and BUSINESS_IMPACTS are escalated instead of automated.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/agent-skill-stackFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a multi-step workflow, asks which Skills fit a project, needs an installed-Skill audit or conflict check, has low Skill recall, wants indirect helpers such as humanizers or compliance checks, or wants a project-specific Skill Stack with controlled installation. Search local Skills, registries, GitHub, and OpenCLI; compare adoption, verified fit, safety, and overlap. Do not use for locating one known or common Skill; use the generic find-skills workflow./ai-readyHelp users install and use John Papa's ai-ready skill as the up-to-date source for making repositories AI-ready with AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and stack-specific guidance. Use when the user asks to make a repo ai-ready, set up AI config, prepare for AI contributions, or install ai-ready./boost-promptRefine a rough task request into a high-quality markdown prompt by clarifying scope, deliverables, constraints, context, and success criteria, then copy the final prompt to the clipboard with Joyride. Use when the user asks to improve, boost, rewrite, or polish a prompt without writing code. Requires Joyride.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin copilot-customization-authoringOther plugins' skills for the same job