# bmad-shard-pro

> Claude/Codex skill by [@bmad-code-org](https://omgskills.com/library/bmad-code-org/index.md) · 56k stars · Updated 2026-11-30

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

Tags: agile, ai, context-engineering, sdlc, spec-driven-development

## Install

```sh
tmp="$(mktemp -d)" && { git clone -q --filter=blob:none --no-checkout https://github.com/bmad-code-org/BMAD-METHOD "$tmp" && git -C "$tmp" checkout -q 6f79ae327c59d65be3ee502c0fd0fd625caa7978 && { [ ! -L ~/.claude/skills/bmad-shard-pro ] || rm ~/.claude/skills/bmad-shard-pro; } && { [ ! -e ~/.claude/skills/bmad-shard-pro ] || { echo "~/.claude/skills/bmad-shard-pro already exists; move it away to reinstall." >&2; false; }; } && mkdir -p ~/.claude/skills/bmad-shard-pro && cp -R "$tmp/skills/core-tools/bmad-shard-pro/." ~/.claude/skills/bmad-shard-pro/; ok=$?; rm -rf "$tmp"; [ "$ok" = 0 ]; }
```

## From README

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 {project-root} is the nearest folder containing bmad/, from the working directory upward (in a linked git worktree, fall back to walking up from the parent of git rev-parse --path-format=absolute --git-common-dir), or the working directory when standalone. {skill-root} is this skill's folder. This skill's script is uv run "{skill-root}/scripts/shardtool.py" --project-root "{project-root}"; run it with --help, or --help, for arguments. {docfolder} is the folder that holds the result.

## Links

- HTML page: https://omgskills.com/library/bmad-code-org/bmad-method/bmad-shard-pro/
- GitHub: https://github.com/bmad-code-org/BMAD-METHOD
- Author: [@bmad-code-org](https://omgskills.com/library/bmad-code-org/index.md)

## More from this repo

- [bmad-facilitate](https://omgskills.com/library/bmad-code-org/bmad-method/bmad-facilitate/index.md) — Adaptive coaching engine for creating, updating, or validating structured deliverables and visual artifacts from...
   - [@bmad-code-org](https://omgskills.com/library/bmad-code-org/index.md) · 56k stars
- [bmad-ingest](https://omgskills.com/library/bmad-code-org/bmad-method/bmad-ingest/index.md) — Turns a transcript, thread, voice memo or long document into a cited note agents can act on.
   - [@bmad-code-org](https://omgskills.com/library/bmad-code-org/index.md) · 56k stars
- [bmad](https://omgskills.com/library/bmad-code-org/bmad-method/bmad/index.md) — BMad advisor, router, and installation manager across all installed modules.
   - [@bmad-code-org](https://omgskills.com/library/bmad-code-org/index.md) · 56k stars
