bmad-shard-doc

Split large markdown documents into section files by level 2 headings.

Updated May 5, 2026
One-click install
npx skills add https://github.com/devalexanderdaza/bmad-any --skill bmad-shard-doc-devalexanderdaza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bmad-shard-doc
Source: https://github.com/devalexanderdaza/bmad-any/tree/main/.agents/skills/bmad-shard-doc
Command: npx skills add https://github.com/devalexanderdaza/bmad-any --skill bmad-shard-doc-devalexanderdaza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Large markdown documents become unwieldy to navigate, edit, and collaborate on as they grow in size, leading to slow load times, merge conflicts, and difficulty locating specific sections for team members.

Core Features & Use Cases

  • Automatic Section Sharding: Splits markdown files into smaller, organized files based on level 2 headings using a reliable parsing tool.
  • Index Generation: Creates a central index.md file that links to all sharded sections for easy navigation.
  • Use Case: If your team maintains a 100-page product requirements document in markdown, use this skill to split it into individual section files (e.g., user-stories.md, acceptance-criteria.md) so contributors can edit only the sections they own without loading the entire document.

Quick Start

Use the bmad-shard-doc skill to split your large product requirements markdown file into organized section files.

Frequently Asked Questions about bmad-shard-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split a large markdown document into smaller organized files?

To split a large markdown document, this skill parses level 2 headings using the npx @kayvan/markdown-tree-parser tool to generate individual section files. It breaks down unwieldy project documentation into manageable, editable chunks to prevent slow load times and merge conflicts.

What is document sharding for markdown and when do I need it?

Markdown document sharding is the process of dividing a large file into smaller organized files based on section headings. You need it when extensive product requirements or technical specifications become unwieldy to navigate, edit, and collaborate on.

Do I need npx to parse markdown structure for section splitting?

Yes, you need npx to run the @kayvan/markdown-tree-parser tool, which automatically parses the markdown structure. This dependency is required to generate indexed section files without any manual formatting.

How do I navigate a sharded markdown project after splitting it?

You navigate a sharded markdown project using the central index.md file that is automatically generated during the splitting process. This index file links to all sharded sections, providing easy navigation across the newly created individual files.

Can I split markdown files based on headings other than level 2?

No, this skill specifically splits markdown files into organized files based on level 2 section headings. It does not mention support for parsing other heading levels for document sharding.