Technical documentation specialist that analyzes project architecture, API contracts, and git history to generate READMEs, API docs, architecture diagrams, changelogs, and release notes.
Ships in borghei-claude-skills. Installing the plugin adds it to Claude Code.
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
What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
@agent-borghei-claude-skills:engineering:cs-doc-writerfrom borghei-claude-skills
borghei-claude-skills@cascade-code-general-misc-2 is listed by joshuarweaver/cascade-code-general-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin borghei-claude-skills77 agents in this plugin
business-growth:cs-competitive-intel-analystcs-competitive-intel-analystCompetitive intelligence analyst for competitor tracking, battlecards, comparison content, and SWOT / market mappingbusiness-growth:cs-customer-experience-leadcs-customer-experience-leadCustomer experience lead spanning onboarding, activation, success, and churn prevention across the customer lifecyclebusiness-growth:cs-partnership-managercs-partnership-managerPartnership / channel / BD manager for partner enablement, joint POCs, RFP responses, and competitive positioningCLAUDEAgent Development GuideThis guide provides comprehensive instructions for creating **cs-* prefixed agents** that seamlessly integrate with the 42 production skills in this repository.c-level:cs-board-secretarycs-board-secretaryBoard secretary for board-meeting preparation, decision tracking, complexity scoring, and decision-quality measurementc-level:cs-ceo-advisorcs-ceo-advisorStrategic leadership advisor for CEOs covering vision, strategy, board management, investor relations, and organizational cultureOther plugins' agents for the same job