bmad-shard-doc

Split large Markdown documents into files by level-2 headings with an index.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher --skill bmad-shard-doc-jingyiwng
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bmad-shard-doc
Source: https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher/tree/main/_bmad/core/skills/bmad-shard-doc
Command: npx skills add https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher --skill bmad-shard-doc-jingyiwng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill splits large Markdown documents into smaller, organized files based on level 2 headings to improve navigation and maintainability.

Core Features & Use Cases

  • Shards documents by level-2 headings into separate files for each section.
  • Generates an index.md in the destination folder to list and order shards.
  • Adheres to the workflow defined in workflow.md, using npx @kayvan/markdown-tree-parser explode to perform the split.

Quick Start

Provide a source Markdown file and run the sharding workflow to generate a destination folder with shard 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 sections?▼

To split large Markdown documents into smaller organized sections, this skill shards files based on level-2 headings. It processes a .md source and generates a destination folder containing individual shard files and an index for navigation.

What is the best way to automate sharding long-form Markdown documentation?▼

The best way to automate sharding long-form Markdown documentation is using the npx @kayvan/markdown-tree-parser explode command. This skill enforces a specific workflow to automatically split files by level-2 headings and generate an index.

How does sharding a Markdown file by level-2 headings work?▼

Sharding a Markdown file by level-2 headings works by parsing the document structure and extracting each section into a separate file. It produces modular shard files organized by headings alongside an index.md to list and order them.

Do I need any dependencies to shard Markdown files into an index and organized sections?▼

You do not need external dependencies installed locally to shard Markdown files into an index and organized sections. The skill relies on running npx @kayvan/markdown-tree-parser explode to process the source file directly.

Can I use this Markdown document sharding workflow for files without level-2 headings?▼

This Markdown document sharding workflow is designed specifically for files with level-2 headings. If your source file lacks these headings, the tool cannot split it into modular organized sections or generate the corresponding index.

What output structure should I expect when breaking down a large Markdown file into shards?▼

When breaking down a large Markdown file into shards, expect a destination folder containing individual section files. The output also includes an index.md file that lists and orders the generated shard files for easy navigation.