bmad-shard-pro
하는 일
이 스킬은 긴 문서를 이름 붙은 부분과 목차로 나눠 AI 에이전트가 더 쉽게 탐색하도록 합니다. 명세나 PRD가 너무 길어 에이전트가 한 번에 읽을 수 없는 팀에게 맞습니다.
사용하는 경우
- ✓문서가 너무 길어 AI 에이전트가 한 번에 읽을 수 없을 때.
- ✓에이전트가 특정 섹션을 찾을 수 있도록 목차가 필요할 때.
- ✓이미 나눈 문서를 갱신해야 할 때.
스킬 링크
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-shard-pro/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 PRD는 제 에이전트가 읽기에 너무 깁니다. 에이전트가 쓸 수 있도록 목차가 있는 섹션으로 나눠 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 어디서 자를지와 각 부분의 이름을 정합니다. 그다음 스크립트가 실제로 나누므로 텍스트가 빠지거나 바뀌지 않습니다. 결과는 목차와 연결된 섹션들이 있는 메인 파일입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
자주 묻는 질문
나누면서 텍스트가 바뀌나요?
아닙니다. 자르는 작업은 스크립트가 하므로 원본의 어떤 내용도 빠지거나 바뀌지 않는다고 스킬이 말합니다.
나눈 문서를 나중에 갱신할 수 있나요?
네. 이미 나눈 문서를 위한 갱신 모드가 있습니다.
나눈 파일은 어디에 두나요?
문서 이름을 딴 폴더나 옆에 만든 새 폴더에 둡니다.
상세 정보
작성자의 원본 설명
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".
인기도
- GitHub 스타
- 55k
- 순위
- #3360
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
bmad-advanced-elicitation
55k에이전트가 초안에 비판 기법을 적용해 검토하고 수정안 하나를 제안하면, 사용자가 받아들이거나 거절할 수 있도록 돕습니다.
bmad-agent-analyst
55k에이전트가 비즈니스 분석가 Mary의 역할을 맡아 시장 조사, 경쟁 분석, 모호한 요구를 명확한 요구사항으로 정리하도록 돕습니다.
bmad-agent-architect
55k에이전트가 시스템 아키텍트 Winston의 역할을 맡아 요구사항을 실용적인 기술 설계로 옮기고 장단점을 설명하도록 돕습니다.
bmad-agent-dev
55k에이전트가 승인된 사용자 스토리를 테스트 우선 단계로 구현하고 모든 완료 기준을 확인하는 시니어 개발자 Amelia의 역할을 맡도록 합니다.
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.