bitovi/ai-enablement-prompts/instruction-generation

Claude Code and agent skill by bitovi/ai-enablement-prompts

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Onboard an AI agent to an unknown codebase by generating a comprehensive instructions file. Use when asked to analyze a codebase, generate copilot instructions, create an onboarding document, or teach an AI about a project. Runs a 6-step prompt chain covering tech stack, file categorization, architecture, domain analysis, style guides, and instruction building.

Install

npx vskill@latest install bitovi/ai-enablement-prompts/instruction-generation

SKILL.md

Skill: Instruction Generation

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.

Overview

This prompt chain walks through structured steps to extract meaningful insights from a codebase:

  • Identifying the technology stack and major frameworks
  • Mapping out file purposes and categorizing project structure
  • Inferring architecture and design patterns
  • Understanding domain concepts and key features
  • Generating stylistic and structural guidance for future code contributions

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.

Parameters

Before starting, define these parameters:

  • {output-folder} — Path where intermediate analysis files are saved (e.g., .results/)
  • {final_output_file} — Final combined output file (e.g., /.github/copilot-instructions.md)
Recommended Defaults
Tooloutput-folderfinal_output_file
Copilot.results//.github/copilot-instructions.md
Windsurf.windsurf//.windsurf/instructions.md
Claude.results/CLAUDE.md

Execution

Run the following steps in order. Each step reads the output of previous steps.

For each step:

  1. Read the corresponding sub-prompt file from this skill's folder
  2. Launch a subagent with the sub-prompt contents, substituting {output-folder} and {final_output_file} with the resolved parameter values
  3. Wait for the subagent to complete before moving to the next step (unless steps can run in parallel — see below)

The sub-prompt files are located alongside this SKILL.md file.

Execution Order

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)

Step 1: Determine Tech Stack

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.


Step 2: Categorize Files

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.


Step 3: Identify Architecture ⇄ Step 5: Style Guide Generation (parallel)

After Step 2 completes, launch Steps 3 and 5 as parallel subagents — they have no dependency on each other.

Step 3: Identify Architecture

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.

Step 5: Style Guide Generation

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.


Step 4: Domain Deep Dive

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.


Step 6: Build Instructions

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


Alternative: All-in-One Usage

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.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
121
Repository forks
63
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bitovi/ai-enablement-prompts/instruction-generation/badge)](https://verified-skill.com/skills/bitovi/ai-enablement-prompts/instruction-generation)

Something wrong with this skill or its page? Tell us.