agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Generate comprehensive API documentation with OpenAPI specs and interactive sites
How it fires
How this command gets triggered: by you, by Claude, or both.
/api-docsContext preview
What this command does when you run it.
Generate comprehensive API documentation with OpenAPI specs and interactive sites
allowed-tools: Read, Write, Bash(fd:*), Bash(rg:*), Bash(jq:*), Bash(gdate:*), Task name: "Api Docs" description: "Generate comprehensive API documentation with OpenAPI specs and interactive sites" author: "wcygan" tags: ["docs","generate"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize API documentation session
{
"sessionId": "$SESSION_ID",
"phase": "discovery",
"target": "$ARGUMENTS",
"frameworks_detected": [],
"endpoints_found": [],
"documentation_strategy": "auto",
"output_formats": []
}STEP 2: Determine documentation scope and strategy
Think hard about the optimal documentation approach based on project complexity and framework diversity.
**Extended Thinking Areas:**
IF $ARGUMENTS provided: IF $ARGUMENTS is file:
ELSE IF $ARGUMENTS is directory:
ELSE:
STEP 3: Framework detection and analysis
TRY:
**Framework Analysis Logic:**
CASE framework_indicators from Context: WHEN contains "express" OR "fastify":
WHEN contains "axum" OR "actix":
WHEN contains "spring" OR framework indicators show Java:
WHEN contains "gin" OR "echo":
WHEN API files > 20 AND multiple frameworks detected:
CATCH (framework_detection_failed):
STEP 4: Documentation generation strategy selection
BASED ON detected frameworks and project complexity:
FOR comprehensive projects (>50 endpoints OR multiple frameworks):
**Use parallel sub-agents for optimal performance:**
Analyze this API codebase using 5 parallel agents: 1. Schema Analysis Agent: Extract data models, types, and validation rules 2. Endpoint Discovery Agent: Map all API routes, methods, and parameter patterns 3. Authentication Analysis Agent: Document auth flows, middleware, and security patterns 4. Response Analysis Agent: Analyze response schemas, status codes, and error handling 5. Integration Documentation Agent: Create deployment guides, testing frameworks, and CI/CD integration Each agent should focus exclusively on their domain and provide structured output for synthesis.
FOR targeted projects (<50 endpoints, single framework):
STEP 5: Execute documentation generation workflow
FOR EACH detected framework:
STEP 6: State management and checkpoint creation
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies