agent-md-refactor

Refactor monolithic agent instruction files into a progressive disclosure hierarchy.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/TheGreatL/KanbanBoard --skill agent-md-refactor-thegreatl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-md-refactor
Source: https://github.com/TheGreatL/KanbanBoard/tree/main/.agents/skills/agent-md-refactor
Command: npx skills add https://github.com/TheGreatL/KanbanBoard --skill agent-md-refactor-thegreatl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill tackles the issue of overly long and unmanageable agent instruction files (like AGENTS.md or CLAUDE.md) by restructuring them into a more organized and efficient format.

Core Features & Use Cases

  • Progressive Disclosure: Minimizes the root file to essential information, hiding details in linked documents.
  • Contradiction Resolution: Identifies and helps resolve conflicting instructions before refactoring.
  • Intelligent Categorization: Groups related instructions into logical files (e.g., typescript.md, testing.md).
  • Use Case: You have a CLAUDE.md file that has grown to over 500 lines, making it hard to find specific rules. This Skill will split it into a concise root file and several focused .md files within a .claude/ directory, making it much easier to manage and reducing context window waste.

Quick Start

Use the agent-md-refactor skill to refactor my CLAUDE.md file.

Frequently Asked Questions about agent-md-refactor

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

FAQPage Schema
How do I refactor a CLAUDE.md file that has become too long to manage?

To refactor a long CLAUDE.md file, this Skill splits monolithic instructions into a concise root file and linked markdown documents using progressive disclosure. It extracts essential root instructions and categorizes remaining details into linked files.

What is progressive disclosure for agent instructions?

Progressive disclosure for agent instructions minimizes the root file to essential information while hiding detailed rules in linked markdown documents. This structured format reduces context window waste and makes specific rules easier to find.

How do I resolve contradictions in agent instruction files?

You can resolve contradictions in agent instruction files during the initial phases of refactoring. The process identifies conflicting instructions before restructuring, extracts essential rules, and flags redundant or vague instructions for deletion.

Does this refactoring process support AGENTS.md files?

Yes, the refactoring process supports common agent instruction file names including AGENTS.md and CLAUDE.md. It restructures these monolithic files into a new hierarchy of focused markdown files within a dedicated directory.

What is the best way to organize code organization rules in markdown?

The best way to organize code organization rules is through intelligent categorization into logical files, such as separating testing and typescript rules. This groups related instructions together and creates a new file hierarchy for efficient management.