generate-custom-instructions-from-codebase

Generate GitHub Copilot migration instructions from codebase revision differences.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/soham2008xyz/trade-tycoon --skill generate-custom-instructions-from-codebase-soham2008xyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-custom-instructions-from-codebase
Source: https://github.com/soham2008xyz/trade-tycoon/tree/main/.agents/skills/generate-custom-instructions-from-codebase
Command: npx skills add https://github.com/soham2008xyz/trade-tycoon --skill generate-custom-instructions-from-codebase-soham2008xyz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of keeping GitHub Copilot consistent with how your codebase has evolved during migrations and major refactors, so you don’t have to repeatedly rewrite the same transformation knowledge.

Core Features & Use Cases

  • Version-to-version comparison: Detects structural and configuration changes between a source reference and a target reference to understand what changed and where.
  • Transformation pattern extraction: Identifies recurring conversion patterns and builds a before/after correspondence matrix to preserve “how you did it” across future edits.
  • Copilot-ready migration instruction output: Produces a .github/copilot-migration-instructions.md file containing mandatory transformations, optional validation steps, API correspondences, and guidance for obsolete patterns.
  • Use Case: When upgrading a React or framework version across multiple commits, it helps generate precise Copilot instructions so future contributions follow the new conventions automatically.

Quick Start

Ask the AI to analyze changes from your old and new project states and generate a Copilot migration instructions file using the migration type, scope, and automation level you specify.

Frequently Asked Questions about generate-custom-instructions-from-codebase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate GitHub Copilot instructions for a framework upgrade?

Generate Copilot instructions for a framework upgrade by analyzing differences between two project revisions to capture migration patterns and API correspondences, producing a deterministic `.github/copilot-migration-instructions.md` file.

What is the best way to keep Copilot consistent with codebase refactoring conventions?

Keeping Copilot consistent with codebase refactoring involves extracting recurring transformation patterns from version-to-version comparisons and saving them as reusable rules in a `.github/copilot-migration-instructions.md` file.

Can I automate Copilot rules for technology migrations across specific folders?

Yes, you can automate Copilot rules for technology migrations by specifying the scope as entire projects, specific folders, or modified files, allowing the analysis to target only the relevant code evolution areas.

Does generating migration instructions require manual before and after code examples?

Generating migration instructions does not strictly require manual examples because the process automatically builds a before/after correspondence matrix from structural changes, though it optionally includes contextual examples in the output.

What should be included in Copilot migration instructions for dependency updates?

Copilot migration instructions for dependency updates should include mandatory transformations, optional validation steps, API correspondences, guidance for obsolete patterns, and safety-oriented validation checkpoints.