bmad-shard-doc

Split large Markdown documents into level-2 section files via npx markdown-tree-parser.

36|16|Updated May 1, 2026
One-click install
npx skills add https://github.com/tronghieu/lumina-wiki --skill bmad-shard-doc-tronghieu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bmad-shard-doc
Source: https://github.com/tronghieu/lumina-wiki/tree/main/.agents/skills/bmad-shard-doc
Command: npx skills add https://github.com/tronghieu/lumina-wiki --skill bmad-shard-doc-tronghieu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Large Markdown files are hard to navigate, search, and maintain, especially when they need to be reorganized into smaller knowledge units.

Core Features & Use Cases

  • Section-based sharding: Splits a Markdown document into smaller files based on level 2 sections (default behavior).
  • Deterministic tool execution: Uses npx @kayvan/markdown-tree-parser explode to generate an index.md and section outputs.
  • Cleanup control for the original: Lets you delete, move to an archive folder, or keep the original with explicit warnings.

Quick Start

Ask the agent to shard your large file architecture.md into a new folder at /path/to/architecture/.

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 sections?

You can shard large Markdown files by running the markdown-tree-parser explode command via npx, which generates an index.md file and breaks the document into level-2-based section files within a new folder.

What is the best way to break down long wiki-style documentation for easier indexing?

The best way to break down long wiki-style documentation is document sharding, which splits the content into level-2-based chunks. This process generates an index.md file and individual section outputs, significantly improving navigation and maintenance.

Can I control what happens to the original Markdown file after sharding it?

Yes, you can control the original file after sharding by choosing to delete it, move it to an archive folder, or keep it in place. The Skill enforces explicit warnings during this cleanup control process.

Do I need to install any dependencies to split Markdown files into sections?

No dependencies are required because the Skill executes the markdown-tree-parser explode package dynamically via npx. It validates inputs and verifies index.md creation without requiring prior package installations.

Why split Markdown documentation into level-2-based chunks instead of keeping one file?

Splitting Markdown documentation into level-2-based chunks solves the problem of large files being hard to navigate, search, and maintain. It transforms a single long document into smaller knowledge units, enabling easier indexing and reuse across wiki-style content.