bmad-shard-doc

Split large markdown documents into smaller files by level 2 headers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @kayvan/markdown-tree-parser.

What problem does it solve?

This skill solves the issue of managing monolithic, oversized markdown files that are difficult to navigate, edit, or maintain by automatically breaking them into smaller, modular components.

Core Features & Use Cases

  • Automated Sharding: Splits markdown files based on level 2 headers into a structured directory.
  • Index Generation: Automatically creates an index file to maintain document hierarchy after splitting.
  • Use Case: Use this when you have a massive technical specification or documentation file that needs to be broken down into individual, manageable chapters for better version control and readability.

Quick Start

Ask the assistant to perform shard document on your target markdown file and follow the prompts to select your 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?

To split a large markdown document, this skill automatically shards the file into smaller, organized components based on level 2 headers. It structures the output into a directory and generates an index file to maintain the original document hierarchy.

What is the best way to modularize long-form technical specifications for better maintainability?

Modularizing long-form technical specifications is best achieved by sharding the monolithic markdown file into individual chapters. This process breaks down oversized files into smaller, manageable components to improve version control and readability.

How does automated sharding handle document hierarchy when breaking down markdown files?

Automated sharding handles document hierarchy by splitting content at level 2 headers and automatically generating an index file. This index preserves the structural relationships of the original markdown document after it is divided into smaller files.

Do I need the markdown-tree-parser package to shard markdown documents?

Yes, you need the @kayvan/markdown-tree-parser package available in your environment to execute the sharding process. This dependency is required to parse the markdown structure and split the document by level 2 headers.

When should I break down a monolithic markdown file into a structured directory?

You should break down a monolithic markdown file when it becomes oversized and difficult to navigate, edit, or maintain. Sharding is ideal for massive technical specifications needing improved readability and modular version control.