bmad-shard-doc

Split large markdown documents into level 2 section files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @kayvan/markdown-tree-parser, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of breaking down large markdown documents into smaller, more manageable files based on their section structure, improving organization and accessibility.

Core Features & Use Cases

  • Automated Document Splitting: Divides large markdown files into smaller files, each representing a level 2 section.
  • Organized Output: Creates a dedicated folder for the sharded files, including an index.md for easy navigation.
  • Use Case: You have a lengthy technical specification document. Use this Skill to shard it into individual sections, making it easier for team members to find and reference specific parts of the documentation.

Quick Start

Use the bmad-shard-doc skill to shard the document located at /path/to/large_document.md.

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?

You can split a markdown document into smaller files by using this Skill to parse the file structure and explode level 2 sections into individual files within a specified destination folder. It creates a dedicated output folder including an index.md for easy navigation.

What is the best way to break down a lengthy technical specification for easier team access?

The best way to break down a lengthy technical specification is to shard the markdown document by its level 2 sections. This process creates organized, smaller files that make it easier for team members to find and reference specific parts of the documentation.

Do I need a markdown parser to shard documents by section?

Yes, you need the markdown-tree-parser tool to shard documents by section. This dependency is required to parse the markdown document structure and explode it into individual files within a specified destination folder.

Does this document splitting tool create an index for the sharded files?

Yes, the document splitting tool creates an index.md file for the sharded files. When it divides the large markdown document into smaller files based on level 2 sections, it organizes them in a dedicated folder with an index for easy navigation.

Can I divide markdown content based on level 3 headings instead of level 2?

No, you cannot divide markdown content based on level 3 headings. The Skill specifically splits large markdown documents into smaller, organized files based exclusively on their level 2 section structure to ensure consistent document sharding.

Why shard markdown files instead of keeping them as a single large document?

You shard markdown files to improve content organization and manageability. Dividing large documents into smaller files based on section structure makes it significantly easier to navigate, reference, and access specific parts of the documentation.