From phntm
Maintain, update, audit, refactor, clean up, merge, or synchronize AGENTS.md and CLAUDE.md project instruction files. Use when a user asks to add a rule, remove stale guidance, improve project memory, review agent instructions, manage CLAUDE.md, manage AGENTS.md, or keep both files in sync.
How this skill is triggered — by the user, by Claude, or both
Slash command
/phntm:agents-md-maintainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to improve existing coding-agent instruction files while
Use this skill to improve existing coding-agent instruction files while
preserving their intent. Treat AGENTS.md and CLAUDE.md as equivalent
instruction files: prefer shared universal content, keep AGENTS.md canonical
when possible, and keep CLAUDE.md as an @AGENTS.md import wrapper unless the
user wants separate files.
AGENTS.md, CLAUDE.md, or project memory.AGENTS.md and CLAUDE.md to be reconciled or converted to a
canonical import setup.If the project has no instruction file and the user wants one created from scratch, use the initialization workflow instead.
Read references/maintenance-rubric.md when you need the quality rubric, cleanup rules, report format, or source links.
When evaluating phrasing quality or rewriting rules, also use the prompt-craft
skill for general prompting principles: motivating constraints, "when X, do Y"
rules, output contracts, and anti-patterns. AGENTS.md and CLAUDE.md are
additions to the system prompt, so prompting guidance applies.
Discover instruction files
AGENTS.md, AGENTS.override.md, CLAUDE.md,
.claude/CLAUDE.md, .claude/rules/, and CLAUDE.local.md./Library/Application Support/ClaudeCode/CLAUDE.md,
/etc/claude-code/CLAUDE.md, or
C:\Program Files\ClaudeCode\CLAUDE.md), project files,
~/.claude/CLAUDE.md, and local gitignored CLAUDE.local.md.CLAUDE.md imports @AGENTS.md, is a symlink, is
duplicated content, divergent, or intentionally separate.Classify the request
AGENTS.md and make
CLAUDE.md import @AGENTS.md when appropriate.Ground changes in the project
Edit conservatively
AGENTS.md and CLAUDE.md.Claude Code Notes or Codex Notes..claude/rules/ with paths
frontmatter when that keeps the main file smaller.Synchronize files
Preferred state:
AGENTS.md
CLAUDE.md # contains @AGENTS.md plus optional Claude-specific notes
If both files contain useful divergent content, merge universal guidance
into AGENTS.md, preserve truly Claude-specific notes under ## Claude Code, then reduce CLAUDE.md to an import wrapper.
Use a symlink only when the user explicitly prefers it, there is no
Claude-specific content, and the OS supports symlinks without elevated
privileges. On Windows, use @AGENTS.md instead.
Verify
When the user asks for a review or audit, report findings before edits unless they explicitly asked you to directly fix the file.
Use this compact format:
## Instruction File Audit
### Summary
- Files found: X
- Canonical state: AGENTS.md / CLAUDE.md imports @AGENTS.md / separate files
- Score: N/100, grade A-F
- Main risks: ...
### Findings
- [critical|important|minor] [file]: [problem] -> [specific fix]
### Proposed Changes
- [target file]: [change and why it helps future sessions]
After making changes, report:
CLAUDE.md imports @AGENTS.md, is a symlink, or is separate;Good:
Near miss:
npx claudepluginhub phntm7/skills --plugin phntmGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.