Housekeeping (AGENTS/CLAUDE Architecture)
Use this skill when work is about organizing or modernizing AGENTS.md/CLAUDE.md context systems.
Operating rules
- Keep root
AGENTS.mdconcise: critical guardrails, task router, canonical commands, and links. - Prefer scoped instruction files in dense areas (
apps/frontend,infra,apps/agent, etc.). - Move deep or volatile details into
.agents/repo-context/*, not rootAGENTS.md. - Curate continuously: deduplicate, resolve contradictions, and remove stale guidance.
- Preserve behavior intent during migrations; change structure first, then tighten wording.
Workflow
- Assess current state (concise router vs mixed/legacy monolith).
- Select target architecture from references.
- Migrate content into scoped
AGENTS.mdfiles and deep docs. - Rewrite root
AGENTS.mdas a short router. - Add freshness metadata for volatile facts where feasible.
- Verify links/routes and remove conflicting duplicate rules.
- If work includes both AGENTS.md and CLAUDE.md, apply parity checks in the same pass.
Canonical ownership
instructions/global.md: trigger registration, precedence, escalation, and lifecycle policy.skills/housekeeping/SKILL.md: workflow sequence and reference selection for housekeeping execution.skills/housekeeping/references/*: deep guidance and operating patterns; AGENTS and CLAUDE are references.
Reference triggers (open when clearly relevant)
- AGENTS/CLAUDE architecture, progressive disclosure, or context-memory organization ->
skills/housekeeping/references/agents-architecture.md - Legacy monolithic AGENTS cleanup, contradiction pruning, or migration planning ->
skills/housekeeping/references/migration-playbook.md
References
skills/housekeeping/references/index.md- References index for this skillskills/housekeeping/references/agents-architecture.md- Target architecture, file tree, and root templateskills/housekeeping/references/migration-playbook.md- Legacy-to-modern migration workflow and checklist