본문으로 건너뛰기
Skillpedia
문서화55k · #3360

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-shard-pro/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 is uv 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 -->): read references/update.md fully 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-ingest skill 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. build refuses 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".

repo: bmad-code-org/BMAD-METHOD

인기도

GitHub 스타
55k
순위
#3360
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬