← ClaudeAtlas

refit-agentslisted

Refit a repo for agents: lint and slim the files loaded into an agent's context (CLAUDE.md, AGENTS.md, skills, subagents, commands, hooks, MCP config), check skill structure and where each file is installed, and find where an agent cannot build, test, run or use the repo's CLIs without help, or which lines conflict or an agent will not follow. Use when asked to improve, lint, audit, debloat or clean up agent files or skills, check they will be followed, cut context load, run agnix, make a repo agent-ready, before you add a skill, a CLAUDE.md line or a CLI command (check), or when an agent had to guess or look up how to use the repo. NOT for: writing one (use write-agents).
crsmithdev/aleph · ★ 0 · AI & Automation · score 62
Install: claude install-skill crsmithdev/aleph
# Refit agents [refit-code](../refit-code/SKILL.md) for agents. refit-code asks whether the code is good; this asks whether an agent can use and change the repo without help, and what the repo costs the agent's context. Nine **lenses** each ask one question; the modes decide where and how they run. Read `PRINCIPLES.md` and `.refit.json` at the repo root when they exist: its `accepted` list, shared with refit-code, holds what the repo keeps on purpose, each `{"concept", "copies": ["file[:line]", ...], "reason"}`, and an accepted candidate is reported as accepted, not as a finding. **Agent files** are every file an agent loads as instructions: `CLAUDE.md`, `CLAUDE.local.md`, `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md`, `llms.txt`, skills (`SKILL.md` and the files it links), subagents, slash commands, `hooks.json` and settings hooks, `.mcp.json`, plugin manifests, and the output of hooks that inject context. ## Lenses | Lens | Asks | File | |---|---|---| | **valid** | Does each agent file parse and meet its spec? | [VALID.md](VALID.md) | | **load** | Does each always-loaded line earn its tokens? | [LOAD.md](LOAD.md) | | **structure** | Does each skill load in tiers, so that the agent reads only what its branch needs? | [STRUCTURE.md](STRUCTURE.md) | | **triggers** | Does each description fire on its branches, and only there? | [TRIGGERS.md](TRIGGERS.md) | | **drift** | Does each agent file agree with the code and with the other agent files? | [DRIFT.md](DR