agent-md-refactor

Refactor bloated agent instruction markdown into a minimal progressive-disclosure structure.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of oversized, tangled agent instruction files that are hard to navigate, maintain, and reliably follow.

Core Features & Use Cases

  • Progressive disclosure refactoring: reorganizes bloated AGENTS.md, CLAUDE.md, and similar docs into a minimal root plus linked, categorized sections.
  • Contradiction detection: identifies conflicting instructions and prompts the user to resolve precedence before proceeding.
  • Actionable restructuring: produces a clear file hierarchy with self-contained linked topics and a pruning pass for redundant or vague guidance.

Quick Start

Refactor your AGENTS.md by extracting only universal essentials into the root file, linking the remaining categorized guidelines into separate topic files, and flagging redundant or non-actionable instructions for deletion.

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 large AGENTS.md file into linked sections?

To refactor large agent instruction markdown, extract universal essentials into a minimal root file, move categorized guidelines into linked topic files, and prune redundant, vague, or outdated instructions.

What is progressive disclosure for agent instructions?

Progressive disclosure for agent instructions separates root-only essentials from topic-specific guidance, generating a linked file hierarchy that prevents AI agents from being overwhelmed by oversized markdown documents.

How do I handle contradictions in CLAUDE.md or COPILOT.md files?

Handling contradictions in agent instruction markdown requires identifying conflicting instructions and prompting the user to resolve precedence before proceeding with the file restructuring.

When should I restructure my AI agent documentation?

You should restructure AI agent documentation when markdown files become too long, inconsistent, or hard to maintain, causing agents to unreliably follow tangled configuration guidance.

What is the best way to clean up bloated agent configuration markdown?

The best way to clean up bloated agent configuration markdown is performing a pruning pass that flags non-actionable, default, or redundant instructions for deletion while reorganizing the remaining content into self-contained linked topics.