Logo Bmad Document Project

Bmad Document Project

Cộng đồng
aj-geddes
bmad-document-project

Đầu vào lập kế hoạch cho dự án BROWNFIELD. Quét READ-ONLY mã nguồn hiện có và tạo project-documentation.md — tài liệu chuẩn về stack, cấu trúc, luồng chính, quy ước và điểm tích hợp — để các kỹ năng lập kế hoạch BMAD tiếp theo dựa trên thực tế. KHÔNG sửa đổi mã; chỉ tạo artifact tài liệu. Dùng khi người dùng nói: "document this codebase", "document the project", "document my app", "scan the existing code", "brownfield planning", "we have existing code, start planning", "map what's already built", "document current state", "capture the current architecture", "understand the existing system before planning", "write project-documentation.md", hoặc trước khi tạo PRD hay tài liệu kiến trúc nếu người dùng đã có mã. Có ba ý định: Create (quét ban đầu), Update (quét lại các phần đã thay đổi), Validate (kiểm tra tính đầy đủ). Chỉ lập kế hoạch — đọc mã nhưng không bao giờ ghi vào mã, không chạy kiểm thử, linter, công cụ build hay mã ứng dụng.

Add to TypingMind

Tổng quan

Nhà phát hànhaj-geddes
Kho mãclaude-code-bmad-skills
Tên kỹ năngbmad-document-project
Sao
492
Bản fork
77
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được aj-geddes công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Bmad Document Project trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/aj-geddes/claude-code-bmad-skills/tree/main/bmad-planning-orchestrator/skills/bmad-document-project
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Bmad Document Project trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Bmad Document Project ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Bmad Document Project với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Bmad Document Project làm được gì?

Đầu vào lập kế hoạch cho dự án BROWNFIELD. Quét READ-ONLY mã nguồn hiện có và tạo project-documentation.md — tài liệu chuẩn về stack, cấu trúc, luồng chính, quy ước và điểm tích hợp — để các kỹ năng lập kế hoạch BMAD tiếp theo dựa trên thực tế. KHÔNG sửa đổi mã; chỉ tạo artifact tài liệu. Dùng khi người dùng nói: "document this codebase", "document the project", "document my app", "scan the existing code", "brownfield planning", "we have existing code, start planning", "map what's already built", "document current state", "capture the current architecture", "understand the existing system b...

Vì sao nên dùng Bmad Document Project trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Bmad Document Project là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Bmad Document Project trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/aj-geddes/claude-code-bmad-skills/tree/main/bmad-planning-orchestrator/skills/bmad-document-project. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Bmad Document Project?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Bmad Document Project với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Bmad Document Project với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Bmad Document Project có miễn phí không?

Kỹ năng này được aj-geddes phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇