Claude-skill-registry agent-config-maintenance
Refactor Codex configuration files and Agent Skills by splitting concerns, deduplicating instructions, and reorganizing guidance across AGENTS.md, project docs, and skills. Use when asked to clean up AGENTS.md, move instructions into skill bundles, or standardize agent setup rules.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/agent-config-maintenance" ~/.claude/skills/majiayu000-claude-skill-registry-agent-config-maintenance && rm -rf "$T"
manifest:
skills/data/agent-config-maintenance/SKILL.mdsource content
Agent Config Maintenance
Scope
- Target files:
, project-doc sections,AGENTS.md
, and any references underskills/*/SKILL.md
.skills/*/references/ - Focus on separation of concerns: global agent rules vs task-specific workflows.
Workflow
- Inventory instructions
- Use
to find duplicate or conflicting rules across AGENTS, project docs, and skills.rg - Note which rules are global constraints vs task-specific procedures.
- Use
- Decide the split
- Keep only global, always-on constraints in
.AGENTS.md - Move task-specific procedures into the relevant skill
orSKILL.md
.references/ - Remove duplicated bullets after moving.
- Keep only global, always-on constraints in
- Update skill metadata
- Fill
frontmatter withSKILL.md
and a trigger-readyname
.description - Keep the description explicit about when to use the skill.
- Fill
- Write the skill body
- Use imperative form.
- Keep core workflow in
.SKILL.md - Move large checklists or detailed examples into
and link them.references/
- Validate consistency
- Ensure AGENTS and skills do not contradict each other.
- Verify naming conventions (lowercase + hyphen).
- Confirm only necessary files exist; avoid extra docs.
Quality gates
- Keep
under 500 lines.SKILL.md - Avoid duplication between
and any reference files.SKILL.md - If adding scripts, run them once to validate behavior.