Bmad Document Project 标志

Bmad Document Project

社区
aj-geddes
bmad-document-project

存量项目规划输入。以只读方式扫描现有代码库,并生成 project-documentation.md,记录技术栈、结构、关键流程、惯例和集成点的真实情况,让后续 BMAD 规划技能从实际情况出发。不会修改代码,只生成文档工件。用户说“为此代码库编写文档”“记录项目文档”“为我的应用编写文档”“扫描现有代码”“存量项目规划”“我们已有代码,从规划开始”“梳理已完成的部分”“记录当前状态”“梳理当前架构”“规划前了解现有系统”“编写 project-documentation.md”,或用户已有代码、需要编写 PRD 或架构文档前,均可使用。支持三种意图:Create(初次扫描)、Update(重新扫描已变更区域)、Validate(检查完整性)。仅负责规划:会读取代码,但绝不写入代码;不运行测试、lint、构建工具或应用代码。

Add to TypingMind

概览

发布者aj-geddes
代码仓库claude-code-bmad-skills
技能名称bmad-document-project
星标数
492
复刻数
77
附带文件
1
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 aj-geddes 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Bmad Document Project AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/aj-geddes/claude-code-bmad-skills/tree/main/bmad-planning-orchestrator/skills/bmad-document-project
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aj-geddes/claude-code-bmad-skills.git /tmp/claude-code-bmad-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-bmad-skills/bmad-planning-orchestrator/skills/bmad-document-project .claude/skills/bmad-document-project
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Bmad Document Project,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Bmad Document Project。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Bmad Document Project 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

BMAD Document Project

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).


Output

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.


Three Intents

Ask which intent applies if ambiguous; never silently regenerate an existing document.

Create — initial scan

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):

FileWhat to extract
package.json / package-lock.jsonruntime + dev deps, scripts
pyproject.toml / requirements*.txt / PipfilePython stack
go.modGo module + dependencies
Cargo.tomlRust crate
pom.xml / build.gradleJVM stack
GemfileRuby stack
composer.jsonPHP stack
*.csproj / *.sln.NET stack
Dockerfile / docker-compose*.ymlcontainer strategy
.github/workflows/*.yml / *.gitlab-ci.yml / JenkinsfileCI/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.


Update — re-scan changed areas

  1. Read existing project-documentation.md.
  2. Ask the user which areas changed (new module? new dependency? refactor?).
  3. Re-run only the relevant passes above for those areas.
  4. Edit the document surgically with precise rewrites of changed sections.
  5. Append a dated update note at the bottom of the document.

Do NOT regenerate the full document from scratch if only part has changed.


Validate — check completeness

Read the existing project-documentation.md and verify:

  • All six scan areas have content (not blank or "not detected" for everything)
  • Stack section names the primary language, framework, and major deps
  • Entry points section names at least one bootstrap/start file
  • Module structure lists recognizable domain names
  • Conventions covers naming style and error handling
  • Integration points lists external dependencies (or explicitly states "none")
  • No fabricated file paths (cross-check one or two with Glob)

Report a pass/fail checklist. Offer to fill gaps rather than silently editing.


Scope Boundary

This skill is READ-ONLY except for its single output document. It:

  • Does NOT modify any source file.
  • Does NOT run tests, build scripts, linters, or coverage tools.
  • Does NOT generate application code, migration files, or fixtures.
  • Does NOT implement features or review diffs.

If a scan reveals something worth fixing, record it as a planning note in the document — do not fix it.


Handoff

Once project-documentation.md is written, it becomes the brownfield input for:

  • bmad-init — seed project-context.md with the detected stack and constraints.
  • bmad-prd — ground truth for existing capabilities and integration constraints.
  • bmad-architecture — baseline architecture to evolve rather than design from scratch.
  • bmad-tech-spec (Quick Flow) — concrete starting point for a focused spec.

State the recommended next step when the document is ready.


Persona Note

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.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Bmad Document Project AI 技能有什么作用?

存量项目规划输入。以只读方式扫描现有代码库,并生成 project-documentation.md,记录技术栈、结构、关键流程、惯例和集成点的真实情况,让后续 BMAD 规划技能从实际情况出发。不会修改代码,只生成文档工件。用户说“为此代码库编写文档”“记录项目文档”“为我的应用编写文档”“扫描现有代码”“存量项目规划”“我们已有代码,从规划开始”“梳理已完成的部分”“记录当前状态”“梳理当前架构”“规划前了解现有系统”“编写 project-documentation.md”,或用户已有代码、需要编写 PRD 或架构文档前,均可使用。支持三种意图:Create(初次扫描)、Update(重新扫描已变更区域)、Validate(检查完整性)。仅负责规划:会读取代码,但绝不写入代码;不运行测试、lint、构建工具或应用代码。

为什么在 TypingMind 中使用 Bmad Document Project?

因为您只需安装一次,就能搭配任何模型使用。Bmad Document Project 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Bmad Document Project?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/aj-geddes/claude-code-bmad-skills/tree/main/bmad-planning-orchestrator/skills/bmad-document-project。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Bmad Document Project?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Bmad Document Project 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Bmad Document Project 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Bmad Document Project AI 技能免费吗?

aj-geddes 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇