generate-agent-docs
Generate Agent Documentation
Creates user-friendly documentation for AI coding assistant customization files.
Provider Folder Reference
This skill works across multiple AI coding assistant providers:
| Provider | Base Folder |
|---|---|
| GitHub Copilot | .github/ |
| Claude Code | .claude/ |
| Codex | .codex/ |
| OpenCode | .config/opencode/ |
Throughout this document, <provider>/ represents your chosen provider's base folder.
When to Use
- Onboarding new team members to your agent ecosystem
- Creating a catalog of available agents and skills
- Generating usage examples for specific agents
- Documenting your customization setup for reference
Documentation Types
Individual Item Documentation
Generate detailed docs for a single agent, skill, prompt, or instruction.
Catalog Documentation
Generate a comprehensive overview of all customization files.
Output Templates
Agent Documentation
# Agent: [Agent Name]
## Overview
[What this agent does and why it exists]
## When to Use This Agent
Use `@[agent-name]` when:
- [Scenario 1]
- [Scenario 2]
- [Scenario 3]
**Don't use** when:
- [Anti-pattern 1]
- [Anti-pattern 2]
## How It Behaves
This agent will:
- [Behavior 1]
- [Behavior 2]
- [Behavior 3]
## Example Conversations
### Example 1: [Scenario Title]
**You:** [Example user message]
**Agent:** [How agent responds - summarized]
### Example 2: [Scenario Title]
**You:** [Example user message]
**Agent:** [How agent responds - summarized]
## Tips for Best Results
- [Tip 1 for effective usage]
- [Tip 2 for effective usage]
- [Common mistake to avoid]
## Related
- **[Related Agent]**: Use for [distinction]
- **[Related Skill]**: This agent uses this for [purpose]
Skill Documentation
# Skill: [Skill Name]
## Purpose
[What this skill accomplishes]
## Triggers
This skill activates when:
- [Trigger keyword/scenario 1]
- [Trigger keyword/scenario 2]
## What It Does
[Step-by-step of what the skill does]
## Used By
- [Agent 1] - for [purpose]
- [Agent 2] - for [purpose]
## Example
**Scenario:** [Description]
**Input:** [What's provided]
**Output:** [What's produced]
Prompt Documentation
# Prompt: [Prompt Name]
## Purpose
[What task this prompt accomplishes]
## Mode
`[mode]` - [explanation of what this mode does]
## Variables
| Variable | Description | Example |
|----------|-------------|---------|
| `{{var1}}` | [what it's for] | [example value] |
## How to Use
1. [Step 1]
2. [Step 2]
## Example
**With these values:**
- `{{var1}}` = [value]
**Produces:**
[Example output]
Instruction Documentation
# Instructions: [Name]
## Applies To
Files matching: `[glob pattern]`
## Purpose
[What guidance these instructions provide]
## Key Rules
1. [Rule 1]
2. [Rule 2]
3. [Rule 3]
## When Active
These instructions automatically apply when you're working with files that match the pattern above.
## Examples of Affected Files
- `[example path 1]`
- `[example path 2]`
Catalog Documentation
# AI Coding Assistant Customizations
This document catalogs all custom agents, skills, prompts, and instructions configured for this project.
## Provider
[Specify which provider folder is used: `.github/`, `.claude/`, `.codex/`, `.config/opencode/`]
## Quick Reference
### Agents (User-Invokable)
| Agent | Purpose | Invoke With |
|-------|---------|-------------|
| [name] | [brief purpose] | `@[name]` |
### Sub-Agents (Workflow Components)
| Sub-Agent | Purpose | Used By |
|-----------|---------|---------|
| [name] | [brief purpose] | [parent workflow agent] |
### Skills
| Skill | Purpose | Triggers |
|-------|---------|----------|
| [name] | [brief purpose] | [keywords] |
### Prompts
| Prompt | Mode | Purpose |
|--------|------|---------|
| [name] | [mode] | [brief purpose] |
### Instructions
| Instructions | Applies To | Purpose |
|--------------|------------|---------|
| [name] | [pattern] | [brief purpose] |
## Detailed Documentation
[Full documentation for each item]
## Usage Guidelines
[General guidance on how to use these customizations effectively]
Generation Process
Step 1: Read Source File
Load the agent/skill/prompt/instruction file.
Step 2: Extract Key Information
- Name and description from frontmatter
- Behaviors and rules from body
- Examples if present
- Related items (skills, handoffs)
Step 3: Enhance with Context
- Generate additional examples based on purpose
- Identify related items from the ecosystem
- Add tips based on common patterns
Step 4: Format Output
Apply appropriate template based on item type.
Quality Guidelines
Generated documentation should be:
- Clear - No jargon without explanation
- Practical - Real, actionable examples
- Complete - Covers all key aspects
- Concise - No unnecessary padding
- Current - Reflects actual file contents
Additional Examples
When generating examples beyond those in the source:
- Cover different use case variations
- Show edge cases and how they're handled
- Demonstrate integration with other items
- Illustrate common mistakes to avoid
More from jburlison/wowaddonapiagents
wow-lua-api
Verbose guide to Lua 5.1 functions available in WoW, including Blizzard-specific differences and WoW-only additions. Use for core Lua behavior in the WoW addon environment.
33wow-addon-structure
Verbose guide for WoW Retail AddOn structure, .toc metadata, loading order, SavedVariables, and C_AddOns metadata and load APIs. Use when planning addon folder layout, file order, or SavedVariables wiring.
23wow-api-currency-economy
Complete reference for WoW Retail Currency, Auction House, Token, Store, Trading Post, Black Market, Mail, and Player Trading APIs. Covers C_CurrencyInfo (currency data, tracking, backpack), Auction House (full listing/bidding/buying/selling/search/commodity), C_WowTokenPublic (WoW Token market), AccountStore (in-game shop), CatalogShop, C_PerksProgram (Trading Post — Trader's Tender), BlackMarket (BMAH), TradeInfo (player trading), MailInfo (mailbox), and related events. Use when working with currencies, auction house UI, WoW Tokens, the in-game store, Trading Post, black market, mail, or player-to-player trading.
15wow-api-map-navigation
Complete reference for WoW Retail Map, Navigation, Area POI, Taxi, Vignette, Minimap, Nameplate, Waypoint, Zone Ability, Fog of War, and Exploration APIs. Covers C_Map (50+ functions for map data, coordinates, map IDs, area info), C_MapExplorationInfo, C_AreaPoiInfo, C_TaxiMap (flight paths), C_Vignette, C_SuperTrackManager, C_Navigation (in-game navigation), C_ZoneAbility, C_FogOfWar, Minimap functions, C_NamePlateManager, and coordinate conversion. Use when working with maps, coordinates, waypoints, flight paths, minimap, nameplates, vignettes, exploration, zone abilities, or in-game navigation.
11wow-api-encounters
Complete reference for WoW Retail Encounter Journal, Mythic+/Challenge Mode, Instance, Scenario, Raid Lock, and Season APIs. Covers EncounterJournal (dungeon/raid boss database, loot tables, section navigation), C_ChallengeMode (M+ keystones, affixes, timers, best times), C_MythicPlus (weekly runs, seasonal data, rating), ScenarioInfo (delves/scenarios objectives and stages), InstanceLeaverInfo (deserter), RaidLocks (saved instances), C_SeasonInfo (seasonal info), and related events. Use when working with dungeon/raid encounter data, M+ keystones, mythic plus scores, scenario stages, raid lockouts, or seasonal content.
11wow-api-reputation
Complete reference for WoW Retail Reputation, Faction, Major Factions, Paragon, and Neighborhood Initiative APIs. Covers C_Reputation (faction info, standings, watched faction, headers, friendship reps, paragon), C_MajorFactions (Dragonflight+ renown factions, renown levels, rewards), C_NeighborhoodInitiative (12.0.0 housing neighborhood reputation), faction expansion data, and reputation-related events. Use when working with reputation tracking, faction standings, renown systems, paragon rewards, friendship reputations, or neighborhood initiatives.
11