bmad-shard-pro
Skill này làm gì
Skill này giúp các tài liệu dài dễ điều hướng hơn cho agent AI, bằng cách chia thành các phần có nhãn kèm mục lục. Skill dành cho các nhóm có đặc tả hoặc PRD quá dài để agent đọc một lần.
Khi nào nên dùng
- ✓Khi một tài liệu quá dài để agent AI đọc một lần.
- ✓Khi bạn muốn có mục lục để agent tìm được các phần cụ thể.
- ✓Khi bạn cần cập nhật một tài liệu đã được chia trước đó.
Liên kết skill
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-shard-pro/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“PRD này quá dài để agent của tôi đọc. Hãy chia nó thành các phần với một mục lục để agent có thể dùng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chọn chỗ cắt và đặt tên cho từng phần, sau đó một script thực hiện việc chia để không mất hay thay đổi nội dung nào. Kết quả là một file chính có mục lục và các phần được liên kết.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Shard Pro
You make a long document cheap and safe for an agent to read later. That reader may or may not search, and may see only the first 200 lines of a file before deciding what else to open. From what it sees there, it must be able to tell where any fact lives. Nothing in the source may be lost or changed on the way: you choose where to cut and what to call things, and the script does the cutting. The user maintains the result afterwards, so it must also be easy to update.
Conventions
{skill-root}is this skill's folder;{project-root}is the nearest folder containing_bmad/.- This skill's script is
uv run {skill-root}/scripts/shard_tool.py; run it with--help, or<command> --help, for arguments. The memlog script isuv run {project-root}/_bmad/scripts/memlog.py; without_bmad/, skip memlog writes and say so once. {doc_folder}is the folder that holds the result. For a split, it is the input's own folder when that folder is named after it (prd-x/prd-x.md), otherwise a new folder beside the input, named after its stem; the main file is named after the folder. For a contents list, it is the file's own folder.
On activation
- The document's main file opens with the sharded-document note, or the document has a contents list this skill made (it starts with
<!-- shard-pro:contents -->): readreferences/update.mdfully and follow it. - A transcript, chat export, email thread or pile of meeting notes: this is input to process into decisions, actions and notes, not a document to shard. Say so and invoke the
bmad-ingestskill on it when it is installed; otherwise tell the user it needs processing first. Then stop. - Any other file that is not markdown or plain text (.docx, PDF, HTML): ask the user to convert it to markdown first, with a tool they use or by asking you to, then go on from the converted file.
- Any other document: go to Assess.
Assess
Run outline on the input. Recommend one outcome with one line on why:
- Leave it as it is. It is short enough to read whole, or already well signposted.
- Contents list. The file stays one file and gains a detailed contents list near the top. It is the smaller change, and the one to choose when readers search or follow line ranges, when tools or skills expect the document as one file, or when you cannot tell how it will be read.
- Faithful split. The source is cut word for word into shards with a map. Choose it when readers load whole files, so each one should load only a part, or when the document will be maintained piece by piece. It loses nothing and is checked by script.
Splitting costs every later reader a hop through the map, so recommend it only when a reader would otherwise pay more. When the user asked for a particular outcome ("shard this", "add a table of contents"), recommend that one unless the outline shows it would make the document worse to read, and then say why.
For Leave it as it is, tell the user why and stop. The other two go on to Plan.
Plan from the outline
Plan from the outline and read only the ranges you need. Holding a long document whole in your context is the expensive mistake. Start from the proposed cut and change it where the content asks:
- Shards run about 3 to 14 KB, measured in characters, because line lengths vary too much to measure by lines. A shorter shard on one subject beats a merged one that joins unrelated subjects.
- Never cut inside a table, a step list or a diagram.
buildrefuses cuts inside fenced blocks, tables and numbered lists; watch for the rest yourself. - Name each shard from what it covers, in kebab-case. Never start a name with the document type's prefix, because a
prd-*glob would load it as another PRD. - When a heading is a bare identifier (
## 3,### C-2), name the shard from its content (the outline shows the first line under each such heading) and keep the identifier in the title. - Before you use the source's own index or numbering rules, check them against the body. They are often from an older edition.
- Keep an aggregate view (a matrix, a register, a glossary) whole, because a reader counting rows needs it in one place. Small ones may share a shard.
- Write each map summary so a reader with a question can tell this is the shard. When a shard's content is later superseded in the source, its summary says so.
- When the source states two values for one thing, the summary of each shard holding one says so and names the other shard. Never p
Câu hỏi thường gặp
Việc chia có thay đổi nội dung nào không?
Không. Skill cho biết không có gì trong nguồn bị mất hoặc thay đổi, vì một script thực hiện việc cắt.
Có thể cập nhật việc chia sau này không?
Có. Skill có chế độ update cho các tài liệu đã được chia.
Các file đã chia được đặt ở đâu?
Chúng được đặt trong một thư mục mang tên tài liệu, hoặc trong một thư mục mới cạnh tài liệu.
Chi tiết
Mô tả gốc của tác giả
Makes long documents easy for agents to navigate. Use when the user says "shard this document", "this file is too long for agents", "turn this document into a wiki", "add a table of contents so agents can find things", or "update the sharded document".
Độ phổ biến
- Sao GitHub
- 55k
- Vị trí xếp hạng
- #3360
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
bmad-advanced-elicitation
55kGiúp agent của bạn cải thiện một bản nháp bằng cách đưa nó qua các phương pháp phê bình và đề xuất một bản sửa, bạn có thể chấp nhận hoặc từ chối.
bmad-agent-analyst
55kGiúp agent của bạn đóng vai Mary, một chuyên viên phân tích kinh doanh làm nghiên cứu thị trường, phân tích cạnh tranh và biến nhu cầu mơ hồ thành yêu cầu rõ ràng.
bmad-agent-architect
55kGiúp agent của bạn đóng vai Winston, một kiến trúc sư hệ thống biến yêu cầu thành thiết kế kỹ thuật thực tế và giải thích các đánh đổi.
bmad-agent-dev
55kGiúp agent của bạn đóng vai Amelia, kỹ sư phần mềm cao cấp, xây dựng user story đã duyệt theo hướng viết test trước và kiểm tra từng tiêu chí.
Skill tương tự
technical-documentation
394kGiúp agent của bạn viết và rà soát tài liệu kỹ thuật cùng file hướng dẫn cho agent, rõ ràng để mọi người và công cụ AI đều dễ làm theo.
architecture-decision-records
280kGiúp agent của bạn ghi lại các quyết định quan trọng về cấu trúc dự án, giúp hiểu lý do đằng sau các lựa chọn và giữ lịch sử thay đổi rõ ràng.
code-tour
280kGiúp agent của bạn tạo các hướng dẫn đọc code từng bước, có tham chiếu chính xác đến file và dòng, hữu ích cho phần giới thiệu, giải thích và rà soát.