.agents/skills/refactor-agents-markdown/SKILL.md
Refactor an AGENTS.md file to follow progressive disclosure principles. Use when the user wants to restructure, clean up, or optimize their AGENTS.md (or similar agent instruction files) for clarity and maintainability. Triggers on: "refactor AGENTS.md", "clean up AGENTS.md", "split AGENTS.md", "organize agent instructions", "progressive disclosure", "AGENTS.md is too long", "simplify AGENTS.md".
npx skillsauth add kentoje/dotfiles refactor-agents-markdownInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Restructure agent instruction files using progressive disclosure: keep the root file minimal and link out to focused documents for specific topics.
Follow these steps in order. Do NOT skip steps or combine them.
Read the entire file. If there are linked files, read those too.
Scan for instructions that conflict with each other. Present each contradiction to the user and ask which version to keep before proceeding.
Examples of contradictions:
any" vs "Use any for legacy API responses"If no contradictions are found, state that clearly and move on.
Identify instructions that should be removed entirely. Present these to the user for approval before deleting. Categories:
Redundant - Things the agent already knows without being told:
Too vague to be actionable - Instructions that give no concrete guidance:
Overly obvious - Instructions any competent developer would follow:
Present these as a list and ask the user to confirm which to remove.
Extract ONLY what belongs in the root AGENTS.md. This should be a small file. The root file should contain:
Everything else goes into linked files.
Organize the surviving instructions into logical categories. Common groups (use only the ones that apply):
| Group | Example content |
|---|---|
| typescript.md | Strict types, import style, naming conventions |
| testing.md | Test runner, patterns, coverage requirements |
| api-design.md | REST/GraphQL conventions, error formats |
| git-workflow.md | Branch naming, commit messages, PR process |
| components.md | Component structure, styling approach |
| architecture.md | Project structure, module boundaries |
| database.md | Schema conventions, migration patterns |
| auth.md | Authentication/authorization patterns |
Choose group names that match the project's actual concerns. Don't create groups with fewer than 3 instructions - merge them into a related group.
Create the restructured files:
# Project Name
One-sentence description.
## Quick Reference
- Package manager: pnpm
- Build: `pnpm build`
- Test: `pnpm vitest`
## Conventions
Detailed conventions are split by topic:
- [TypeScript](docs/agents/typescript.md)
- [Testing](docs/agents/testing.md)
- [Git Workflow](docs/agents/git-workflow.md)
docs/agents/ directory (or another location if the
project already has a docs structure). Each file should:
Present a summary of changes:
tools
Autonomous design critique mode using the Agentation annotation toolbar. Use when the user asks to "critique this page," "add design annotations," "review the UI," "self-driving mode," "auto-annotate," or wants an AI agent to autonomously add design feedback annotations to a web page via the browser. Requires the Agentation toolbar to be installed on the target page and agent-browser skill to be available.
development
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
development
Browse Aircall staging or local dev URLs with automatic authentication. USE THIS skill (not the generic agent-browser skill) whenever the target URL contains "aircall" in the hostname (e.g. dev.aircall-staging.com, localhost running Aircall).
tools
Design and implement web animations that feel natural and purposeful, based on Emil Kowalski's "Animations on the Web" course. Use proactively when the user asks about easing, timing, springs, transitions, animation performance, or how to animate specific UI elements. Covers CSS transitions, Framer Motion, GSAP, accessibility (prefers-reduced-motion), and common patterns like modals, tooltips, page transitions, hover states, and microinteractions.