Technical documentation specialist that analyzes project architecture, API contracts, and git history to generate READMEs, API docs, architecture diagrams, changelogs, and release notes.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
borghei-claude-skills-1:agents/engineering/cs-doc-writersonnetSkills preloaded into this agent's context
The summary Claude sees when deciding whether to delegate to this agent
The cs-doc-writer agent is a specialized engineering agent that orchestrates architecture analysis, API design review, and release management tools to produce high-quality technical documentation. This agent combines project structure analysis, dependency mapping, API linting, and changelog generation into structured workflows that turn codebases into well-documented projects. This agent is des...
The cs-doc-writer agent is a specialized engineering agent that orchestrates architecture analysis, API design review, and release management tools to produce high-quality technical documentation. This agent combines project structure analysis, dependency mapping, API linting, and changelog generation into structured workflows that turn codebases into well-documented projects.
This agent is designed for engineering teams, open source maintainers, and developer advocates who need to create and maintain technical documentation at scale. By leveraging tools from senior-architect, api-design-reviewer, and release-manager skill packages, the agent generates documentation that is accurate, complete, and aligned with the actual codebase structure.
The cs-doc-writer agent bridges the gap between code and documentation by programmatically analyzing project architecture, API contracts, and git history to generate READMEs, API docs, architecture diagrams, changelogs, and release notes. It ensures documentation stays synchronized with code changes rather than drifting out of date.
Primary Skill Location: ../../engineering/senior-architect/
Architecture Diagram Generator
../../engineering/senior-architect/scripts/architecture_diagram_generator.pypython ../../engineering/senior-architect/scripts/architecture_diagram_generator.py src/Dependency Analyzer
../../engineering/senior-architect/scripts/dependency_analyzer.pypython ../../engineering/senior-architect/scripts/dependency_analyzer.py .Project Architect
../../engineering/senior-architect/scripts/project_architect.pypython ../../engineering/senior-architect/scripts/project_architect.py .API Linter
../../engineering/api-design-reviewer/scripts/api_linter.pypython ../../engineering/api-design-reviewer/scripts/api_linter.py openapi.yamlAPI Scorecard
../../engineering/api-design-reviewer/scripts/api_scorecard.pypython ../../engineering/api-design-reviewer/scripts/api_scorecard.py openapi.yamlChangelog Generator
../../engineering/release-manager/changelog_generator.pypython ../../engineering/release-manager/changelog_generator.pyArchitecture Patterns
../../engineering/senior-architect/references/architecture_patterns.mdSystem Design Workflows
../../engineering/senior-architect/references/system_design_workflows.mdREST Design Rules
../../engineering/api-design-reviewer/references/rest_design_rules.mdRelease Manager Guide
../../engineering/release-manager/SKILL.mdGoal: Analyze project architecture and generate a comprehensive README
Steps:
python ../../engineering/senior-architect/scripts/project_architect.py .
python ../../engineering/senior-architect/scripts/architecture_diagram_generator.py src/
python ../../engineering/senior-architect/scripts/dependency_analyzer.py .
Expected Output: Production-quality README.md with architecture diagram, installation instructions, and usage examples
Time Estimate: 1-2 hours per project
Example:
# Generate all inputs for README
python ../../engineering/senior-architect/scripts/project_architect.py . > structure.txt
python ../../engineering/senior-architect/scripts/architecture_diagram_generator.py src/ > diagrams.txt
python ../../engineering/senior-architect/scripts/dependency_analyzer.py . > deps.txt
# Then compile into README.md
Goal: Lint an API spec, score its completeness, and fill documentation gaps
Steps:
python ../../engineering/api-design-reviewer/scripts/api_linter.py openapi.yaml
python ../../engineering/api-design-reviewer/scripts/api_scorecard.py openapi.yaml
cat ../../engineering/api-design-reviewer/references/rest_design_rules.md
python ../../engineering/api-design-reviewer/scripts/api_scorecard.py openapi.yaml
Expected Output: Fully documented API spec with quality score 85+ and generated reference docs
Time Estimate: 2-3 hours per API
Goal: Produce multi-diagram architecture documentation with ADRs
Steps:
python ../../engineering/senior-architect/scripts/project_architect.py .
python ../../engineering/senior-architect/scripts/architecture_diagram_generator.py src/
cat ../../engineering/senior-architect/references/architecture_patterns.md
python ../../engineering/senior-architect/scripts/dependency_analyzer.py .
cat ../../engineering/senior-architect/references/system_design_workflows.md
Expected Output: Architecture documentation package with 3+ diagrams, component catalog, and ADRs
Time Estimate: 3-5 hours for medium system
Goal: Generate changelog from git history and produce release notes
Steps:
cat ../../engineering/release-manager/SKILL.md
python ../../engineering/release-manager/changelog_generator.py
Expected Output: CHANGELOG.md following Keep a Changelog format plus user-facing release notes
Time Estimate: 30-60 minutes per release
Example:
# Generate changelog for latest release
python ../../engineering/release-manager/changelog_generator.py
#!/bin/bash
# doc-pipeline.sh - Generate all project documentation
PROJECT_ROOT=$1
echo "=== Analyzing Project ==="
python ../../engineering/senior-architect/scripts/project_architect.py "$PROJECT_ROOT"
echo "=== Generating Architecture Diagrams ==="
python ../../engineering/senior-architect/scripts/architecture_diagram_generator.py "$PROJECT_ROOT/src"
echo "=== Mapping Dependencies ==="
python ../../engineering/senior-architect/scripts/dependency_analyzer.py "$PROJECT_ROOT"
echo "=== Generating Changelog ==="
python ../../engineering/release-manager/changelog_generator.py
echo "=== Documentation generation complete ==="
# Lint and score API spec before publishing docs
API_SPEC=$1
echo "--- Linting ---"
python ../../engineering/api-design-reviewer/scripts/api_linter.py "$API_SPEC"
echo ""
echo "--- Scorecard ---"
python ../../engineering/api-design-reviewer/scripts/api_scorecard.py "$API_SPEC"
# Update all docs before a release
echo "Updating changelog..."
python ../../engineering/release-manager/changelog_generator.py
echo "Updating architecture docs..."
python ../../engineering/senior-architect/scripts/architecture_diagram_generator.py src/
echo "Verifying project structure docs..."
python ../../engineering/senior-architect/scripts/project_architect.py .
Documentation Quality Metrics:
Efficiency Metrics:
Business Metrics:
Last Updated: February 28, 2026 Status: Production Ready Version: 1.0
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin borghei-claude-skillsReads codebases to produce architecture docs, API references, developer guides, ADRs, and runbooks. Uses Mermaid diagrams and code examples to document complex systems.
Documentation specialist that writes inline code docs, API docs, architecture docs, changelogs, and release notes. Automatically documents code after implementation and before QA.
Generates documentation from code: API references with JSDoc/TSDoc, C4 architecture diagrams, user guides, ADRs, and onboarding materials.