doc-shard-manager

Community

Shard-based large-file management for docs.

Authoreaglhuang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Large documents (Markdown/JSON) often exceed token limits, forcing costly workarounds. This skill introduces shard groups to split big files into small, independently loadable parts and maintain a lightweight index stub for efficient reassembly and validation.

Core Features & Use Cases

  • Core tool: tools_node/shard-manager.js, with per-group configuration (.shardrc.json) to orchestrate shifting large content into shard directories, rebuilds, and validations.
  • Workflow coverage: maintenance of existing shards, creating new shard groups for new large files, and auto-splitting when shards exceed thresholds; supports scan for new files and automated partitioning.
  • Practical scenario: break a 100 KB Markdown spec into 4 shards to keep per-part size under token limits, then progressively load shards as needed.

Quick Start

Run a shard operation on a new large file to split it into shard folders and update the index.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: doc-shard-manager
Download link: https://github.com/eaglhuang/cocos_new/archive/main.zip#doc-shard-manager

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.