generate-custom-instructions-from-codebase
Installation
Summary
Generates GitHub Copilot migration instructions by analyzing code differences between project versions.
- Compares two project states (branches, commits, or tags) to extract transformation patterns, API changes, and architectural shifts
- Creates a
.github/copilot-migration-instructions.mdfile with mandatory rules, validated transformations, API correspondences, and obsolete patterns to avoid - Supports multiple migration types: framework version upgrades, architecture refactoring, technology replacement, dependency updates, and pattern changes
- Configurable automation levels (Conservative, Balanced, Aggressive) and optional before/after code examples to guide Copilot's future transformations
- Includes validation checkpoints, error reporting mechanisms, and monitoring metrics to track migration accuracy and consistency
SKILL.md
Migration and Code Evolution Instructions Generator
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 -->