agent-md-refactor

Refactor bloated agent instruction files into minimal root and linked documentation.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/misha-jatt/Personal-AI-Employee-Hackathon-0 --skill agent-md-refactor-misha-jatt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-md-refactor
Source: https://github.com/misha-jatt/Personal-AI-Employee-Hackathon-0/tree/main/.agents/skills/agent-md-refactor
Command: npx skills add https://github.com/misha-jatt/Personal-AI-Employee-Hackathon-0 --skill agent-md-refactor-misha-jatt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bloated agent instruction files like AGENTS.md, CLAUDE.md, or COPILOT.md tend to grow into unwieldy documents. This skill introduces progressive disclosure to keep essential guidelines in the root and relocate detailed, task-specific instructions into organized, linked documentation, improving maintainability and clarity.

Core Features & Use Cases

  • Progressive disclosure minimizes root content while preserving universal rules and project context.
  • Structured organization groups related instructions into categorized, linked documents (e.g., TypeScript conventions, testing guidelines, architecture patterns).
  • Safe refactoring workflow detects contradictions, extracts essentials, and flags obsolete or vague content for deletion.

Quick Start

Refactor my AGENTS.md 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 a bloated AGENTS.md file to improve maintainability?

Refactoring a bloated AGENTS.md involves applying progressive disclosure principles to minimize root content and relocate detailed instructions into organized, linked topic-specific files. This workflow detects contradictions, extracts essentials, and flags obsolete content for deletion.

What is progressive disclosure for agent instruction files?

Progressive disclosure is an organizational approach that keeps universal rules and project context in a minimal root file while moving task-specific guidelines into categorized, linked documents. This improves clarity and maintainability for large instruction sets.

Can I use this refactoring workflow on CLAUDE.md or COPILOT.md files?

Yes, the refactoring workflow is applicable to projects with CLAUDE.md, COPILOT.md, AGENTS.md, or similar root documentation files. It restructures large instruction sets into topic-specific linked files using a five-phase workflow.

How do I organize linked documentation files when splitting up large agent instructions?

Organize linked documentation by categorizing related instructions into topic-specific files, such as TypeScript conventions, testing guidelines, or architecture patterns. The five-phase workflow enforces grouping related instructions and linking them from a minimal root file.

What's the best way to handle vague or obsolete instructions during an agent documentation refactor?

The best way to handle vague or obsolete instructions is to use a safe refactoring workflow that detects contradictions, extracts essential guidelines, and explicitly flags obsolete or vague content for deletion during the restructuring process.

When should I restructure my root agent docs into separate linked files?

You should restructure root agent docs into separate linked files when the instruction set grows unwieldy, making it difficult to maintain. Progressive disclosure minimizes root content while preserving universal rules and relocating detailed instructions for better clarity.