instruction-file-splitting
CommunityKeep agent rules intact by splitting long instruction files.
Software Engineering#markdown#context compression#agent workflows#rule enforcement#prompt routing#documentation governance#instruction splitting
Authortykhoncode
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents instruction-heavy markdown files from exceeding model context thresholds where later rules get silently compressed or dropped, causing agents to miss important constraints.
Core Features & Use Cases
- Rule-preserving splitting: Breaks long instruction content into a short parent plus topic-owned sub-files so every rule is honored.
- Hard-rule placement: Ensures MUST/NEVER/ALWAYS “iron rules” stay in the parent at the very top, never duplicated in sub-files.
- On-demand detail routing: Creates a concrete “read when” pointer table so the agent loads the right depth only when a specific situation occurs.
- Trigger-based refactoring: Splits when files are 280+ lines, edits would push past 300, nesting gets too deep, or duplicated hard rules appear.
- Safety checklist: Verifies the parent stays under 150 lines and sub-files remain under 300 while avoiding vague pointers and duplicated rules.
Quick Start
Use the instruction-file-splitting skill to split your instruction markdown into a short router SKILL.md and topic-specific references when the file is near or above 300 lines.
Dependency Matrix
Required Modules
None requiredComponents
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: instruction-file-splitting Download link: https://github.com/tykhoncode/dicekit/archive/main.zip#instruction-file-splitting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.