agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Update and maintain Docusaurus documentation by analyzing codebase changes with automated content refresh
How it fires
How this command gets triggered: by you, by Claude, or both.
/docs-updateContext preview
What this command does when you run it.
Update and maintain Docusaurus documentation by analyzing codebase changes with automated content refresh
allowed-tools: Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(git:*), Bash(jq:*), Bash(gdate:*), Bash(node:*), Bash(npm:*), Task name: "Docs Update" description: "Update and maintain Docusaurus documentation by analyzing codebase changes with automated content refresh" 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 update session with state management
{
"sessionId": "$SESSION_ID",
"timestamp": "ISO_8601_TIMESTAMP",
"phase": "initialization",
"target_scope": "$ARGUMENTS",
"project_analysis": {
"has_docs_directory": false,
"has_docusaurus_config": false,
"api_specs_count": 0,
"jsdoc_files_count": 0,
"git_changes_count": 0
},
"update_sources": [],
"documentation_state": {},
"validation_results": {},
"performance_metrics": {
"start_time": "ISO_8601_TIMESTAMP",
"phase_timings": {},
"total_duration": null
},
"error_recovery": {
"failed_operations": [],
"recovery_attempts": [],
"partial_completions": []
}
}STEP 2: Project analysis and documentation scope determination
Think deeply about the optimal documentation update strategy based on the detected project characteristics and existing documentation state.
IF no documentation directory found:
ELSE:
STEP 3: Documentation source analysis and update strategy
CASE update_scope: WHEN "all" OR "codebase":
TRY:
**Codebase Analysis and Documentation Extraction:**
CATCH (codebase_analysis_failed):
WHEN "all" OR "api":
TRY: **API Documentation Integration:**
CATCH (api_documentation_failed):
WHEN "all" OR includes git analysis:
TRY: **Git History Analysis and Changelog Generation:**
CATCH (git_analysis_failed):
STEP 4: Advanced documentation processing for complex projects
IF project has >100 documentation files OR multiple API specs:
Think harder about enterprise documentation coordination strategies and optimal sub-agent delegation patterns.
1. **Codebase Documentation Agent**: Extract and process all code documentation
2. **API Documentation Agent**: Process all API specifications and generate endpoint docs
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