Agent skill
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 this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/agent-config-maintenance
SKILL.md
Agent Config Maintenance
Scope
- Target files:
AGENTS.md, project-doc sections,skills/*/SKILL.md, and any references underskills/*/references/. - Focus on separation of concerns: global agent rules vs task-specific workflows.
Workflow
- Inventory instructions
- Use
rgto find duplicate or conflicting rules across AGENTS, project docs, and skills. - 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
SKILL.mdorreferences/. - Remove duplicated bullets after moving.
- Keep only global, always-on constraints in
- Update skill metadata
- Fill
SKILL.mdfrontmatter withnameand a trigger-readydescription. - 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
references/and link them.
- 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
SKILL.mdunder 500 lines. - Avoid duplication between
SKILL.mdand any reference files. - If adding scripts, run them once to validate behavior.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?