agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Generate comprehensive documentation with intelligent content organization and Docusaurus integration
How it fires
How this command gets triggered: by you, by Claude, or both.
/docs-addContext preview
What this command does when you run it.
Generate comprehensive documentation with intelligent content organization and Docusaurus integration
allowed-tools: Read, Write, Edit, Bash(fd:*), Bash(rg:*), Bash(jq:*), Bash(gdate:*), WebFetch, Task name: "Docs Add" description: "Generate comprehensive documentation with intelligent content organization and Docusaurus integration" author: "wcygan" tags: ["docs","manage"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize documentation generation session
{
"sessionId": "$SESSION_ID",
"timestamp": "ISO_8601_TIMESTAMP",
"phase": "initialization",
"target_content": "$ARGUMENTS",
"project_analysis": {
"has_docusaurus": false,
"docs_directory": null,
"existing_structure": {},
"technology_stack": [],
"content_type": "unknown"
},
"generation_plan": {
"content_type": null,
"placement_strategy": null,
"template_selection": null,
"sidebar_updates": false
},
"checkpoints": {},
"artifacts": {
"generated_files": [],
"updated_configs": [],
"validation_results": {}
}
}STEP 2: Analyze existing documentation structure and requirements
Think deeply about optimal documentation organization strategy based on detected project characteristics and existing structure.
TRY:
IF $ARGUMENTS contains "guide":
ELSE IF $ARGUMENTS contains "api":
ELSE IF $ARGUMENTS contains "tutorial":
ELSE IF $ARGUMENTS contains "diagram":
ELSE IF $ARGUMENTS contains "troubleshooting":
ELSE:
CATCH (analysis_failed):
STEP 3: Determine optimal placement and generation strategy
Think harder about content organization, cross-referencing, and integration with existing documentation architecture.
IF no docs/ directory exists:
ELSE:
IF content is complex (multiple sections OR >1000 words expected):
STEP 4: Generate documentation content using intelligent templates
TRY:
CASE content_type: WHEN "guide":
# {TITLE}
## Overview
Brief description and scope
## Prerequisites
- Required knowledge
- Dependencies needed
## Step-by-Step Instructions
### Step 1: {Action}
Detailed instructions with examples
## Troubleshooting
Common issues and solutions
## Next Steps
Related documentationWHEN "api":
# {TITLE} API Reference
## Overview
API purpose and base URL
## Authentication
Security requirements
## Endpoints
### GET /endpoint
- **Description**: Functionality
- **Parameters**: Input requirements
- **Response**: Output format
- **Examples**: Sample requests/responses
## Error Handling
Status codes and error responsesWHEN "tutorial":
# {TITLE} Tutorial
## What You'll Learn
Learning objectives
## What You'll Build
End result description
## Tutorial Steps
### Part 1: Foundation
Basic concepts and setup
### Part 2: Implementation
Core functionality
### Part 3: Enhancement
Advanced features
## Summary and Next Steps
Recap and further readingWHEN "diagram":
# {TITLE}
## Overview
Context and purpose
```mermaid
graph TD
A[Component A] --> B[Component B]
B --> C[Component C]## Components Description of diagram elements ## Related Documentation Links to detailed docs
WHEN "troubleshooting":
- GENERATE problem-solution structure:
```markdown
# {TITLE} Troubleshooting
## Common Issues
### Issue: {Problem Description}
**Symptoms**: What users experience
**Cause**: Root cause explanation\
**Solution**: Step-by-stepA 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