Get the FREE Ultimate OpenClaw Setup Guide →

Project Documentation

Scanned
npx machina-cli add skill a5c-ai/babysitter/project-documentation --openclaw
Files (1)
SKILL.md
890 B

Project Documentation

Generate comprehensive project documentation with source tree analysis and Mermaid diagrams.

Agent

Paige (Tech Writer) - bmad-writer-paige

Workflow

  1. Scan project structure and identify components
  2. Analyze source tree with annotations
  3. Generate project context for onboarding
  4. Create deep-dive component documentation
  5. Generate Mermaid architecture diagrams
  6. Build documentation index with navigation

Inputs

  • projectName - Project name
  • projectPath - Path to project root
  • documentationType - full-scan, deep-dive, or context-only

Outputs

  • Scan report with component inventory
  • Annotated source tree
  • Project overview and onboarding guide
  • Deep-dive component documentation
  • Documentation index

Process Files

  • bmad-document-project.js - Standalone documentation
  • bmad-orchestrator.js - Final documentation phase

Source

git clone https://github.com/a5c-ai/babysitter/blob/main/plugins/babysitter/skills/babysit/process/methodologies/bmad-method/skills/project-documentation/SKILL.mdView on GitHub

Overview

Project Documentation automates thorough documentation of codebases by analyzing the source tree, generating an onboarding-friendly context, and producing Mermaid architecture diagrams. It outputs a scan report, annotated tree, a project overview, deep-dive component docs, and a navigable index to help teams understand and hand off projects efficiently.

How This Skill Works

Given inputs like projectName, projectPath, and documentationType, the skill scans the project structure, annotates the source tree, and generates a project context for onboarding. It then creates deep-dive component documentation, Mermaid diagrams, and a documentation index, all orchestrated by bmad-document-project.js and bmad-orchestrator.js.

When to Use It

  • Onboarding new team members to a codebase
  • Documenting a legacy/repo with annotated source structure
  • Preparing a handover for stakeholders or new teams
  • Generating Mermaid architecture diagrams for reviews
  • Creating a searchable documentation index and onboarding guide

Quick Start

  1. Step 1: Run bmad-document-project.js to scan the project and annotate the source tree
  2. Step 2: Run bmad-orchestrator.js to generate the final documentation, diagrams, and index
  3. Step 3: Review the project overview, onboarding guide, and Mermaid diagrams before publishing

Best Practices

  • Define projectName, projectPath, and documentationType upfront to standardize outputs
  • Run a full-scan before deep-dives to ensure component inventory is accurate
  • Annotate important components and add context notes in the source tree
  • Verify Mermaid diagrams render correctly and stay in sync with the docs
  • Regularly update the documentation index after changes or releases

Example Use Cases

  • Documenting a monolithic app to onboard new engineers with an annotated tree and diagrams
  • Generating a backend service documentation suite for an API gateway project
  • Creating a developer handbook for a plugin-based project
  • Producing an architecture diagram bundle for a microservices re-architecture
  • Building a project overview and onboarding guide for a new feature area

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers