bmad-shard-doc

Split large Markdown documents into files by level 2 sections.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/mschuerig/peach-ios --skill bmad-shard-doc-mschuerig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bmad-shard-doc
Source: https://github.com/mschuerig/peach-ios/tree/main/_bmad/core/skills/bmad-shard-doc
Command: npx skills add https://github.com/mschuerig/peach-ios --skill bmad-shard-doc-mschuerig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Splits large Markdown documents into smaller, organized files based on level 2 sections using a deterministic parsing workflow.

Core Features & Use Cases

  • Splits content by level 2 headers into a structured folder for easier navigation and reuse.
  • Builds an index.md that references all generated shards for quick overview.
  • Supports reuse in large docs, knowledge bases, and long-form technical notes.

Quick Start

Run the shard workflow on a Markdown document to generate a folder of sectioned files and an index.

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 modular files?

Splitting Markdown documents into modular files involves parsing level 2 headers and separating content into an organized folder. This Skill processes long-form technical notes or knowledge bases, generating an index.md file to reference all sharded sections for quick navigation and reuse.

What is the best way to organize a Markdown knowledge base for easier navigation?

Organizing a Markdown knowledge base for easier navigation is achieved by sharding long documents into structured, modular files based on level 2 sections. This approach creates individual files for each section and builds an index.md that references all generated shards for quick overview and reuse.

Do I need any external tools to shard Markdown files by section?

To shard Markdown files by section, you need the external tool npx @kayvan/markdown-tree-parser explode. The workflow requires a valid Markdown input file and a writable destination folder, halting on errors and reporting results if these prerequisites are not met.

How does Markdown document sectioning work for technical specifications?

Markdown document sectioning for technical specifications works by deterministically parsing level 2 headers to split the content. The workflow takes a source Markdown file, separates the text at each level 2 section, and outputs individual modular files into a structured destination folder.

What happens if the Markdown sharding workflow encounters an error?

If the Markdown sharding workflow encounters an error, it halts immediately and reports the results. It requires a valid Markdown input and a writable destination folder to execute the deterministic parsing and file generation without interruption.