/bmad-planning-orchestrator:bmad-document-projectfrom BMAD Planning & Orchestrator
Read-only codebase scanner that produces project-documentation.md — ground truth for stack, structure, flows, and conventions. Entry point for brownfield planning when existing code needs to be mapped before further planning.
Ships in BMAD Planning & Orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
BROWNFIELD entry point. When a project already has code, planning skills need
ground truth — not guesses about the stack or conventions. This skill performs a
systematic, READ-ONLY codebase scan and emits project-documentation.md, the
authoritative current-state snapshot that every downstream BMAD planning skill loads.
No code is written, modified, or executed. Allowed tools are Read, Glob, Grep, Write (for the output document only), and TodoWrite (to track scan progress).
bmad-output/project-documentation.md
(or the user-configured output folder — honor it)
Load bmad-output/project-context.md if it exists; merge any constraints already
recorded there rather than rediscovering them from scratch.
Ask which intent applies if ambiguous; never silently regenerate an existing document.
Use TodoWrite to track the six scan passes below. Complete every pass before writing the final document.
Pass 1 — Repository skeleton
Glob: **/* (depth ≤ 3, exclude node_modules, .git, dist, build, __pycache__, .venv)
Glob: *.md, *.txt, *.rst at root and docs/
Capture: directory tree shape, presence of monorepo markers (packages/,
apps/, libs/), top-level config files, documentation roots.
Pass 2 — Stack and toolchain
Read whichever of these exist (don't fail on missing files):
| File | What to extract |
|---|---|
package.json / package-lock.json | runtime + dev deps, scripts |
pyproject.toml / requirements*.txt / Pipfile | Python stack |
go.mod | Go module + dependencies |
Cargo.toml | Rust crate |
pom.xml / build.gradle | JVM stack |
Gemfile | Ruby stack |
composer.json | PHP stack |
*.csproj / *.sln | .NET stack |
Dockerfile / docker-compose*.yml | container strategy |
.github/workflows/*.yml / *.gitlab-ci.yml / Jenkinsfile | CI/CD chain |
*.tf / *.bicep / *.yaml (in infra/) | IaC / cloud provider |
Record: primary language, frameworks, major libraries, runtime version pins, test frameworks (note them — do NOT run them), build tool, package manager.
Pass 3 — Entry points and key flows
Grep: "main\|entrypoint\|app\.listen\|createServer\|handler\|router\|routes"
Grep: "export default\|module\.exports\|@app\.route\|@Controller\|@RestController"
Read the top-level entry files surfaced (max 5–8 files; skim, don't exhaustively read).
Capture: how the app starts, primary routing layer, authentication/middleware chain (names only), background workers or queues detected.
Pass 4 — Module / domain structure
Read directory names and index.* / __init__.* files one level down from src/,
app/, lib/, or the equivalent.
Glob: src/**/index.{ts,js,py,go,rb}
Glob: app/**/__init__.py
Capture: module names and inferred responsibility, layer boundaries (controllers / services / repositories / models / utils), shared utilities.
Pass 5 — Conventions and patterns
Sample 3–5 representative files per layer (prefer recently modified if discernible from file names / path depth):
Grep: "class \|interface \|type \|enum " — naming style
Grep: "async \|await \|Promise\|goroutine\|concurrent" — concurrency pattern
Grep: "import \|require\|from " — module resolution style
Grep: "console\.log\|logger\.\|log\." — logging approach
Grep: "\.env\|process\.env\|os\.environ\|config\." — config/secrets pattern
Capture: naming conventions (casing style for files, classes, functions), error handling style, logging approach, config/secrets management, test file location convention (name only — no execution).
Pass 6 — Integration points
Grep: "http[s]\?://\|fetch(\|axios\.\|requests\.\|http\.Get\|RestTemplate"
Grep: "database\|db\.\|pool\.\|prisma\.\|mongoose\.\|sqlx\.\|gorm\."
Grep: "redis\|kafka\|rabbitmq\|sqs\|pubsub\|queue\|event"
Grep: "s3\.\|storage\.\|blob\.\|bucket"
Capture: external HTTP APIs called (domains/service names, not secrets), database type and ORM/driver, message queues or event buses, object storage, third-party services (payment, email, auth providers — names only).
Write the document
Fill ${CLAUDE_PLUGIN_ROOT}/skills/bmad-document-project/templates/project-documentation.template.md
→ bmad-output/project-documentation.md.
Use the Write tool. Leave sections with a <!-- not detected --> comment rather
than inventing content. Accuracy over completeness.
project-documentation.md.Do NOT regenerate the full document from scratch if only part has changed.
Read the existing project-documentation.md and verify:
Report a pass/fail checklist. Offer to fill gaps rather than silently editing.
This skill is READ-ONLY except for its single output document. It:
If a scan reveals something worth fixing, record it as a planning note in the document — do not fix it.
Once project-documentation.md is written, it becomes the brownfield input for:
project-context.md with the detected stack and constraints.State the recommended next step when the document is ready.
This analysis role aligns with Mary (Business Analyst) in the BMAD Method — start with what exists before prescribing what should change. The document is her field notes: precise, sourced, free of conjecture.
Part of the BMAD Planning & Orchestrator plugin — a Claude Code harness for the BMAD Method by the BMAD Code Organization (https://github.com/bmad-code-org/BMAD-METHOD). Implements the spirit of
bmad-document-project. All methodology credit belongs to the BMAD Code Organization.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aj-geddes/claude-code-bmad-skills --plugin bmad-planning-orchestrator20 skills in this plugin
/bmad-architectureSolutioning skill (Winston, the Architect). Produces architecture.md with ADRs and systematic NFR coverage, mapping every FR/NFR from the PRD to a concrete design decision. ONE architecture forces all future parallel dev agents to share the same API style, data model, state management, naming conventions, and security approach — catching alignment here is 10x cheaper than during implementation. Use when the user says "design the architecture", "create architecture", "/architecture", "solutioning", "tech stack", "system design", "ADR", "architecture decision record", "data model", "API design", "NFR coverage", "non-functional requirements", or after a PRD is done and they ask "what's next" / "ready for solutioning". Supports Create (new architecture.md), Update (revise against PRD changes), and Validate (check coverage + ADR completeness). PLANS only — never writes application code, runs tests, lints, or builds.
/bmad-brainstormFacilitates structured ideation sessions using proven brainstorming techniques
(SCAMPER, SWOT, 5 Whys, Mind Mapping, Six Thinking Hats, Reverse Brainstorming,
Starbursting, Brainwriting). Produces a brainstorming-report.md of organized ideas
and actionable insights. Operates in three intents: Create (new session), Update
(add techniques or deepen coverage), Validate (confirm insights align with project goals).
Use when the user says: "brainstorm", "ideate", "generate ideas", "explore options",
"SCAMPER", "SWOT analysis", "mind map", "Six Thinking Hats", "5 Whys", "creative
session", "what if we", "let's explore", "think through possibilities", "find
alternatives", or "problem-solve".
This skill PLANS only — it never writes application code or runs tests.
/bmad-builderMeta-skill for scaffolding and validating custom PLANNING/ORCHESTRATION skills within the BMAD Planning & Orchestrator plugin. Produces the full skill directory: SKILL.md, scripts, and templates — all pre-targeted at this plugin's path conventions. Includes a scope-violation checker so newly created skills never drift into dev/lint/build/coverage territory. Use when the user says "create a skill", "scaffold a skill", "build a new planning skill", "add a skill to the orchestrator", "extend BMAD planning", "custom orchestration skill", "validate this skill", "check this skill for scope violations", "new skill for the planner", or "bmad-builder". Supports three intents: Create (new skill skeleton), Validate (check an existing SKILL.md), Scaffold (directory structure only). This skill plans and scaffolds only — it NEVER writes application code, runs tests, lints, or builds.
/bmad-correct-courseCROSS-PHASE mid-stream scope correction. Re-enters planning when requirements,
features, architecture, or constraints change after planning has started. Re-shards
affected epics/stories, re-sequences sprint-status.yaml, appends rationale to
decision-log.md. Routes to bmad-epics-and-stories, bmad-sprint-planning, or
bmad-parallel-plan as needed. Changes the PLAN, never code.
Use when: "we need to change course", "scope has changed", "new requirement came in",
"we're dropping feature X", "we need to pivot", "re-plan after the change",
"requirements changed mid-sprint", "correct course", "architecture changed",
"re-scope the backlog", "update epics after feedback", "cancel story X",
"add epic for Y", "change the plan", "we got new constraints", or when stories
are split/merged/reordered due to a decision not in the original plan.
Produces: updated epics.md (affected only), revised/new story files, updated
sprint-status.yaml, new decision-log.md entry. NEVER writes code or runs tests.
/bmad-epics-and-storiesSolutioning flagship — shards a PRD + architecture into epics.md and individual
{epic}.{story}.{slug}.story.md context objects, the LAST planning artifact before
external dev handoff. Each story is a self-contained ~8K-token compiled context object:
Dev Notes with SOURCE CITATIONS back to prd.md/architecture.md, Acceptance Criteria,
Tasks/Subtasks mapped to ACs, Testing strategy, Dependency Maps, an explicit Owned
File/Module Scope list (the lever for parallel-conflict-free scheduling), and Learnings
from Previous Stories. Sized to one dev-day; split if larger; NO story points.
Use when the user says "shard the PRD", "create epics", "break the PRD into epics",
"break this epic into stories", "create stories", "create a story", "draft story files",
"generate the story for X", "prepare stories for dev", "mark the story ready for dev",
"validate this story", or "what stories are in this epic". Three intents: Create new
epics/stories, Update an existing story, or Validate a draft against the contract.
/bmad-handoffEmits a dev-tool-agnostic handoff manifest from ready-for-dev stories so an external
dev plugin or runner can pick up and execute the work.
Use when the user says "generate a handoff", "create handoff manifest", "export stories
for dev", "hand off to dev tool", "produce handoff manifest", "ready to hand off",
"prepare handoff for external tool", "export ready-for-dev stories", or "create the
handoff package". Also trigger when the user asks "what stories are ready for dev?" and
wants an exportable artifact rather than a status report.
Produces: handoff-manifest.json listing all ready-for-dev stories with id, story file
path, status, owned file/module scope, wave/parallel_set, dependencies,
acceptance-criteria summary, locked-sections note, and a schemaVersion field.
See REFERENCE.md (bundled) for the full manifest schema and adapter notes for
git-worktree parallel development and autonomous dependency-graph orchestrators.
Other plugins' skills for the same job