/code:instruction-generationfrom code
Generates a comprehensive instructions file (e.g., copilot-instructions.md) by analyzing a codebase's tech stack, architecture, and style. Use for onboarding AI agents or creating project documentation.
Ships in code. 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.
Read when SKILL.md points to them.
This skill guides you through a multi-step analysis chain to generate a comprehensive instructions file (e.g., copilot-instructions.md) by analyzing the structure, patterns, and intent of a codebase. The resulting file helps AI tools operate more effectively within the project by providing clear architectural context, domain understanding, and stylistic guidelines.
This prompt chain walks through structured steps to extract meaningful insights from a codebase:
The final output serves as a high-level onboarding and guidance document that aligns AI-generated code with the project's existing conventions and design.
Before starting, define these parameters:
.results/)/.github/copilot-instructions.md)| Tool | output-folder | final_output_file |
|---|---|---|
| Copilot | .results/ | /.github/copilot-instructions.md |
| Windsurf | .windsurf/ | /.windsurf/instructions.md |
| Claude | .results/ | CLAUDE.md |
Run the following steps in order. Each step reads the output of previous steps.
For each step:
{output-folder} and {final_output_file} with the resolved parameter valuesThe sub-prompt files are located alongside this SKILL.md file.
Steps 3 and 5 have no dependency on each other and should be run in parallel to save time:
Step 1 (Tech Stack)
↓
Step 2 (Categorize Files)
↓
Step 3 (Architecture) ←──── run in parallel ────→ Step 5 (Style Guides)
↓
Step 4 (Domain Deep Dive)
↓
Step 6 (Build Instructions)
Read ./1-determine-techstack.md and launch a subagent with its contents.
The subagent should analyze the codebase and write its findings to ./{output-folder}/1-techstack.md.
Depends on: Step 1
Read ./2-categorize-files.md and launch a subagent with its contents.
The subagent should read ./{output-folder}/1-techstack.md first, then categorize every file in the codebase and write the result to ./{output-folder}/2-file-categorization.json.
After Step 2 completes, launch Steps 3 and 5 as parallel subagents — they have no dependency on each other.
Depends on: Steps 1, 2
Read ./3-identify-architecture.md and launch a subagent with its contents.
The subagent should read ./{output-folder}/1-techstack.md and ./{output-folder}/2-file-categorization.json, then identify architectural domains and write the result to ./{output-folder}/3-architectural-domains.json.
Depends on: Step 2
Read ./5-styleguide-generation.md and launch a subagent with its contents.
The subagent should read ./{output-folder}/2-file-categorization.json, then for each category write a style guide to ./{output-folder}/5-style-guides/{category}.md.
Depends on: Step 3
Wait for Step 3 to complete. Read ./4-domain-deep-dive.md and launch a subagent with its contents.
The subagent should read ./{output-folder}/3-architectural-domains.json and ./{output-folder}/1-techstack.md, then for each domain write findings to ./{output-folder}/4-domains/{domain}.md.
Depends on: Steps 3, 4, 5 (all must be complete)
Read ./6-build-instructions.md and launch a subagent with its contents.
The subagent should synthesize all previous outputs (including ./{output-folder}/4-domains/{domain}.md files) and generate the final instruction file at {final_output_file}.
You can run this entire chain by providing the agent with these parameters and instructing it to execute all 6 steps in sequence:
{output-folder} = .results
{final_output_file} = /.github/copilot-instructions.md
Execute the instruction-generation skill steps 1 through 6 in order.
For each step, read the sub-prompt file and launch a subagent to perform the work.
Stop only when all steps are complete and {final_output_file} is generated.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bitovi/ai-enablement-prompts --plugin code9 skills in this plugin
/create-skill-claudeUse this skill when the user asks to "create a skill", "add a skill", "make a new skill", "build a skill", or wants to automate a repeated workflow into a reusable prompt. Guides creating a properly structured Claude Code skill./create-skill-copilotCreate new Agent Skills for this project. Use when asked to create a skill, document a workflow, or teach Copilot a new capability. Skills are stored in .github/skills/ and can include instructions, scripts, examples, and resources./document-featureCreate comprehensive feature requirement documents. Use when asked to document a feature, write feature requirements, or create feature specifications. Includes user stories, functional requirements, data model review, workflows, and edge cases.Other plugins' skills for the same job