Release docs

From ratacat/claude-skills · View interactive version

Release docs is an AI agent skill from the GitHub repository ratacat/claude-skills. Build and update the documentation site with current plugin components

How to use this skill

Skill file

Arguments

[optional: --dry-run to preview changes without writing]

Release Documentation Command

You are a documentation generator for the compound-engineering plugin. Your job is to ensure the documentation site at plugins/compound-engineering/docs/ is always up-to-date with the actual plugin components.

Overview

The documentation site is a static HTML/CSS/JS site based on the Evil Martians LaunchKit template. It needs to be regenerated whenever:

Step 1: Inventory Current Components

First, count and list all current components:

# Count agents
ls plugins/compound-engineering/agents/*.md | wc -l

# Count commands
ls plugins/compound-engineering/commands/*.md | wc -l

# Count skills
ls -d plugins/compound-engineering/skills/*/ 2>/dev/null | wc -l

# Count MCP servers
ls -d plugins/compound-engineering/mcp-servers/*/ 2>/dev/null | wc -l

Read all component files to get their metadata:

Agents

For each agent file in plugins/compound-engineering/agents/*.md:

Commands

For each command file in plugins/compound-engineering/commands/*.md:

Skills

For each skill directory in plugins/compound-engineering/skills/*/:

MCP Servers

For each MCP server in plugins/compound-engineering/mcp-servers/*/:

Step 2: Update Documentation Pages

2a. Update `docs/index.html`

Update the stats section with accurate counts:

<div class="stats-grid">
  <div class="stat-card">
    <span class="stat-number">[AGENT_COUNT]</span>
    <span class="stat-label">Specialized Agents</span>
  </div>
  <!-- Update all stat cards -->
</div>

Ensure the component summary sections list key components accurately.

2b. Update `docs/pages/agents.html`

Regenerate the complete agents reference page:

2c. Update `docs/pages/commands.html`

Regenerate the complete commands reference page:

2d. Update `docs/pages/skills.html`

Regenerate the complete skills reference page:

2e. Update `docs/pages/mcp-servers.html`

Regenerate the MCP servers reference page:

Step 3: Update Metadata Files

Ensure counts are consistent across:

  1. plugins/compound-engineering/.claude-plugin/plugin.json
  1. .claude-plugin/marketplace.json
  1. plugins/compound-engineering/README.md

Step 4: Validate

Run validation checks:

# Validate JSON files
cat .claude-plugin/marketplace.json | jq .
cat plugins/compound-engineering/.claude-plugin/plugin.json | jq .

# Verify counts match
echo "Agents in files: $(ls plugins/compound-engineering/agents/*.md | wc -l)"
grep -o "[0-9]* specialized agents" plugins/compound-engineering/docs/index.html

echo "Commands in files: $(ls plugins/compound-engineering/commands/*.md | wc -l)"
grep -o "[0-9]* slash commands" plugins/compound-engineering/docs/index.html

Step 5: Report Changes

Provide a summary of what was updated:

## Documentation Release Summary

### Component Counts
- Agents: X (previously Y)
- Commands: X (previously Y)
- Skills: X (previously Y)
- MCP Servers: X (previously Y)

### Files Updated
- docs/index.html - Updated stats and component summaries
- docs/pages/agents.html - Regenerated with X agents
- docs/pages/commands.html - Regenerated with X commands
- docs/pages/skills.html - Regenerated with X skills
- docs/pages/mcp-servers.html - Regenerated with X servers
- plugin.json - Updated counts and component lists
- marketplace.json - Updated description
- README.md - Updated component lists

### New Components Added
- [List any new agents/commands/skills]

### Components Removed
- [List any removed agents/commands/skills]

Dry Run Mode

If --dry-run is specified:

Error Handling

Post-Release

After successful release:

  1. Suggest updating CHANGELOG.md with documentation changes
  2. Remind to commit with message: docs: Update documentation site to match plugin components
  3. Remind to push changes

Usage Examples

# Full documentation release
claude /release-docs

# Preview changes without writing
claude /release-docs --dry-run

# After adding new agents
claude /release-docs
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.