Agent Instruction Refactor

•
2
•

Refactors monolithic agent instruction files into organized, linked documentation using progressive disclosure principles.

The Agent Instruction Refactor skill solves the problem of 'context bloat' by transforming oversized AGENTS.md or CLAUDE.md files into a streamlined documentation hierarchy. It follows a five-phase process: identifying contradictions, extracting essential root instructions, categorizing specialized rules (like testing or architecture), building a linked file structure, and pruning redundant content. By applying progressive disclosure, this skill ensures your AI agent receives high-density, relevant context without wasting tokens on unnecessary or vague instructions.

Key Features

01Prunes redundant and vague instructions to optimize token usage
02Extracts core project essentials into a minimal root file
03Creates a 'Progressive Disclosure' hierarchy with organized links
04Automatically categorizes rules into domain-specific modules like testing and style
052 GitHub stars
06Identifies and resolves conflicting logic within instruction files

Use Cases

01Optimizing agent performance by removing default behaviors and redundant rules
02Migrating legacy agent instructions into a modern, modular file structure
03Organizing a multi-hundred line CLAUDE.md file that has become unmanageable