From bmad
Splits large markdown documents into smaller organized files by level 2 sections using npx @kayvan/markdown-tree-parser. Useful for managing large docs; activates on 'perform shard document'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bmad:bmad-shard-docThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Goal:** Split large markdown documents into smaller, organized files based on level 2 sections using `npx @kayvan/markdown-tree-parser`.
Goal: Split large markdown documents into smaller, organized files based on level 2 sections using npx @kayvan/markdown-tree-parser.
/path/to/architecture.md --> /path/to/architecture/[y] to confirm use of default: [suggested-path], else enter a new path)npx @kayvan/markdown-tree-parser explode [source-document] [destination-folder]Critical: Keeping both the original and sharded versions defeats the purpose of sharding and can cause confusion.
Present user with options for the original document:
What would you like to do with the original document
[source-document-name]?Options:
[d]Delete - Remove the original (recommended - shards can always be recombined)[m]Move to archive - Move original to a backup/archive location[k]Keep - Leave original in place (NOT recommended - defeats sharding purpose)Your choice (d/m/k):
d (delete)m (move)archive subfolder
/path/to/architecture.md --> /path/to/archive/architecture.md[y] to use default: [default-archive-path], or provide custom path)k (keep)npx claudepluginhub urso/claudev --plugin bmadSplits large markdown files (>1000 lines) and validates internal links. Includes scripts for splitting, link validation, and moving documents with automatic link updates.
Converts a single-file architecture document into directory-based format for better organization and targeted context loading. Useful when the doc exceeds 500 lines or 10 decision records.
Splits monolithic files over 1000 lines into focused, maintainable modules with import updates and build verification.