agent-md-refactor

Refactor monolithic agent instruction files into linked Markdown hierarchies.

6|47|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/Neko-Protocol/Neko-DApp --skill agent-md-refactor-neko-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-md-refactor
Source: https://github.com/Neko-Protocol/Neko-DApp/tree/main/.agents/skills/agent-md-refactor
Command: npx skills add https://github.com/Neko-Protocol/Neko-DApp --skill agent-md-refactor-neko-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill tackles the issue of overly long and disorganized agent instruction files (like AGENTS.md or CLAUDE.md) by restructuring them according to progressive disclosure principles.

Core Features & Use Cases

  • Progressive Disclosure: Moves detailed instructions out of the main file into linked, categorized sub-files, keeping the root file concise and focused.
  • Contradiction Resolution: Identifies and flags conflicting instructions for user review before refactoring.
  • Use Case: You have a massive CLAUDE.md file with hundreds of lines covering code style, testing, Git workflow, and more. This Skill will split it into a clean CLAUDE.md with links to separate files like code-style.md, testing.md, and git-workflow.md, making it much easier to manage and understand.

Quick Start

Refactor my CLAUDE.md file to follow progressive disclosure principles.

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 monolithic agent instruction files to follow progressive disclosure?

To refactor monolithic agent instructions using progressive disclosure, move detailed instructions into linked, categorized sub-files. This keeps the root file concise while categorizing details into separate Markdown files to improve clarity and maintainability.

What is the best way to organize a massive CLAUDE.md file with hundreds of lines?

Organizing a massive CLAUDE.md file involves splitting it into a clean root file with links to separate files like code-style.md, testing.md, and git-workflow.md. This restructuring categorizes details to make configurations easier to manage.

How does contradiction resolution work when refactoring agent configurations?

Contradiction resolution in agent configuration refactoring identifies and flags conflicting instructions for user review. This ensures that contradictory content is caught and resolved before the file is restructured into linked Markdown files.

Can I use this approach to clean up AGENTS.md files for better maintainability?

Yes, you can clean up AGENTS.md files for better maintainability by identifying essential root-level instructions and moving remaining details into a structured hierarchy of linked Markdown files, keeping the root configuration focused.

What are the limitations of progressive disclosure for agent instructions?

A limitation of progressive disclosure for agent instructions is that it requires manual review when redundant or contradictory content is flagged. Users must evaluate these flagged conflicts before the restructuring process can be safely completed.

Why does my agent instruction file need to be split into linked Markdown files?

Your agent instruction file needs to be split into linked Markdown files because overly long configurations reduce clarity. Progressive disclosure principles move details out of the main file to improve overall agent configuration management and understanding.