shard-document

Split large documents into navigable shards with preserved cross-references and metadata.

2|2|Updated Oct 28, 2025
One-click install
npx skills add https://github.com/adolfoaranaes12/BMAD-ENHANCED --skill shard-document
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shard-document
Source: https://github.com/adolfoaranaes12/BMAD-ENHANCED/tree/main/.claude/skills/shard-document
Command: npx skills add https://github.com/adolfoaranaes12/BMAD-ENHANCED --skill shard-document

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Breaks large documents into smaller shards while preserving relationships and navigation.

Core Features & Use Cases

  • Supports logical, size-based, and semantic sharding strategies
  • Maintains cross-references and dependencies
  • Generates index/navigation shard and rich shard metadata

Quick Start

Example: shard a large PRD into a shards directory with an index.md and individual shard files.

Frequently Asked Questions about shard-document

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split large documents like PRDs and specs into manageable pieces?

Document sharding breaks large documents (over 5,000 words) into logical, navigable pieces while preserving cross-references and dependencies. This Skill splits PRDs, specs, architecture docs, and API references using multiple strategies—logical, size-based, hierarchical, or semantic—and generates an index shard plus metadata for each piece.

What happens to links and references when I shard a document?

Sharding preserves all cross-references and dependencies between document pieces. The Skill validates internal links and generates rich per-shard metadata so relationships remain intact across shards, plus produces a navigation index to guide readers through the fragmented content.

Can I choose how documents are split into shards?

Yes. The Skill supports multiple sharding strategies: logical (by section structure), size-based (by word count), hierarchical (by document outline), and semantic (by meaning). You select the strategy that fits your document type and navigation needs.

What output do I get after sharding a document?

Sharding produces a directory with an index shard (navigation guide), individual shard files for each document section, and per-shard metadata. The index and metadata preserve document structure and enable readers to navigate between related pieces.

Is document sharding suitable for API reference documentation?

Yes. Sharding is designed for long-form technical documents including API references. It breaks them into navigable sections while maintaining endpoint relationships and cross-references, making large reference docs easier to explore and maintain.

When should I use sharding instead of keeping documents whole?

Sharding works best for documents exceeding 5,000 words where navigation becomes difficult—PRDs, detailed specs, architecture docs, and API references. It's unnecessary for short documents but improves usability and maintainability for lengthy technical content.