bmad-shard-pro
Ce qu’il fait
Cette compétence rend les longs documents plus faciles à parcourir pour les agents d'IA, en les découpant en parties étiquetées avec une table des matières. Elle s'adresse aux équipes dont les spécifications ou les PRD sont trop longs pour qu'un agent les lise d'un seul coup.
Quand l’utiliser
- ✓Quand un document est trop long pour qu'un agent d'IA le lise d'un seul coup.
- ✓Quand vous voulez une table des matières pour que les agents trouvent des sections précises.
- ✓Quand vous devez mettre à jour un document qui a déjà été découpé.
Lien du skill
https://github.com/bmad-code-org/BMAD-METHOD/blob/main/skills/bmad-shard-pro/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Ce PRD est trop long pour que mon agent le lise. Découpe-le en sections avec une table des matières qu'il peut utiliser.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent choisit où couper et comment nommer chaque partie, puis un script fait le découpage pour que rien ne soit perdu ni modifié. Le résultat est un fichier principal avec une table des matières et des sections liées.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Le découpage modifie-t-il le texte ?
Non. La compétence indique que rien de la source n'est perdu ni modifié, car c'est un script qui effectue la coupe.
Le découpage peut-il être mis à jour plus tard ?
Oui. La compétence dispose d'un mode de mise à jour pour les documents qu'elle a déjà découpés.
Où vont les fichiers découpés ?
Ils vont dans un dossier qui porte le nom du document, ou dans un nouveau dossier à côté de lui.
Détails
Description originale de l’auteur
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".
Popularité
- Étoiles GitHub
- 55k
- Position au classement
- #3360
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
bmad-advanced-elicitation
55kAide votre agent à améliorer un brouillon en le soumettant à des méthodes de critique, puis à proposer une seule révision, que vous pouvez accepter ou refuser.
bmad-agent-analyst
55kPermet à votre agent de jouer Mary, une analyste d'affaires qui s'occupe de l'étude de marché, de l'analyse concurrentielle et qui transforme les besoins flous en exigences claires.
bmad-agent-architect
55kPermet à votre agent de jouer Winston, un architecte système qui transforme les exigences en conceptions techniques pratiques et explique les compromis.
bmad-agent-dev
55kPermet à votre agent de jouer Amelia, une ingénieure logicielle senior qui construit les user stories approuvées avec des étapes de test d'abord et vérifie chaque critère d'acceptation.
Skills similaires
technical-documentation
394kAide votre agent à rédiger et relire une documentation technique claire et les fichiers d'instructions pour agents, faciles à suivre pour tous.
architecture-decision-records
280kPermet à votre agent de consigner les décisions importantes sur la structure du projet. Cela aide à comprendre les raisons des choix et à garder un historique clair.
code-tour
280kPermet à votre agent de créer des visites guidées du code, étape par étape, avec références exactes aux fichiers et lignes. Utile pour présenter, expliquer ou relire.