bmad-shard-doc

Split large markdown documents into level 2 section shards.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns oversized markdown documents into smaller, easier-to-manage files organized by section, reducing navigation friction and making large docs simpler to maintain.

Core Features & Use Cases

  • Section-Based Splitting: Breaks a markdown source document into separate files using level 2 headings by default.
  • Structured Output: Creates an indexed destination folder so each shard is easy to find and reuse.
  • Workflow Support: Guides the user through source selection, destination setup, execution, verification, and handling of the original document.
  • Use Case: Ideal for product specs, architecture notes, long research docs, and planning artifacts that need cleaner modular organization.

Quick Start

Ask me to shard a markdown document by providing the source file path and letting me create the destination folder.

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 files by section?

To split a large markdown document into smaller files by section, you provide a source markdown file and a writable destination folder. The process uses level 2 headings to break the document into organized shards while preserving section order.

What is the best way to break down long technical planning documents for easier navigation?

The best way to break down long technical planning documents for easier navigation is sharding. This process separates oversized markdown files into modular, indexed files based on level 2 headings, reducing maintenance friction and making sections easy to find.

How do I shard a markdown file using npx @kayvan/markdown-tree-parser?

To shard a markdown file using npx @kayvan/markdown-tree-parser, you need a source markdown file and a destination folder. The parser generates indexed output, creating separate files for each level 2 section while maintaining the original document order.

Can I split markdown documents into level 2 section shards without losing the original heading order?

Yes, you can split markdown documents into level 2 section shards without losing the original heading order. The sharding process generates indexed output in the destination folder that preserves the exact sequence of sections from the source document.

Does splitting markdown files into separate shards require any specific dependencies or setup?

Splitting markdown files into separate shards requires npx @kayvan/markdown-tree-parser to generate the indexed output. You also need a source markdown file to read from and a writable destination folder to store the resulting section files.

When should I not use level 2 heading based sharding for my markdown files?

You should not use level 2 heading based sharding for markdown files that lack structured headings or contain short content. This approach is designed for long technical, planning, and reference documents that require modular organization for easier review and maintenance.