其他

generate-custom-instructions-from-codebase

github/awesome-copilot

Migration and code evolution instructions generator for GitHub Copilot. Analyzes differences between two project versions (branches, commits, or releases) to create precise instructions allowing Copilot to maintain consistency during technology migrations, major refactoring, or framework version upgrades.

  • 8922 次安装
  • 4.1万 星标
  • 收录于

安装命令

npx skills add https://github.com/github/awesome-copilot --skill generate-custom-instructions-from-codebase

要点

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.md file 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 -->