github avatar

Generate Custom Instructions From Codebase

When you're migrating a codebase between framework versions or doing major refactors, this generates GitHub Copilot instructions by analyzing the diff between two git references. It creates a `.github/copilot-migration-instructions.md` file with transformation rules, API mappings, and before/after code examples so Copilot can automatically apply the same patterns to future changes. Works well for Angular upgrades, React class-to-hooks migrations, or architecture refactoring where you want Copilot to learn your specific transformation decisions. The real value is turning your one-time migration work into reusable automation rules.

skills.sh installs
8.9K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill generate-custom-instructions-from-codebase --agent claude-code

Installs into .claude/skills of the current project.

Files

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 -->

${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

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Release Management, Automation & Workflows

More from github/awesome-copilot

All 318
1github avatarmcp-security-auditgithub/awesome-copilotAudit MCP (Model Context Protocol) server configurations for security issues. Use this skill when: - Reviewing .mcp.json files for security risks - Checking MCP1.1Kskills.sh installs
2github avatarpester-migrationgithub/awesome-copilotPester migration skill for upgrading PowerShell Pester test suites across major versions — v3→v4, v4→v5, and v5→v6. Covers the Discovery/Run two-phase model, mo0skills.sh installs
3microsoft avatarsubmit-skill-fix-prmicrosoft/github-copilot-for-azureSubmit a pull request with skill fixes. Validates skill structure, bumps versions, and creates a PR with a proper description. TRIGGERS: submit skill fix, creat0skills.sh installs
4spencermarx avatarocrspencermarx/open-code-review|0skills.sh installs
5juliusbrussee avatarcavecrewjuliusbrussee/cavemanDecision guide for delegating to caveman-style subagents. Tells the main thread WHEN to spawn `cavecrew-investigator` (locate code), `cavecrew-builder` (1-2 fil374.2Kskills.sh installs
6emilkowalski avatarimprove-animationsemilkowalski/skillsSurvey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other age260.9Kskills.sh installs