From phntm
Initialize AGENTS.md and CLAUDE.md project instruction files. Use when a user asks to create, bootstrap, generate, scaffold, initialize, or set up AGENTS.md, CLAUDE.md, agent instructions, project memory, repository guidance, or coding-agent context files for a project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/phntm:agents-md-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to analyze a project and create practical, current instructions
Use this skill to analyze a project and create practical, current instructions
for coding agents. Treat AGENTS.md and CLAUDE.md as equivalent instruction
files: prefer AGENTS.md as the canonical shared file and make CLAUDE.md
import it with @AGENTS.md unless the user explicitly wants another setup.
/init-style project instructions, project memory, or a
repository guide for AI coding agents.AGENTS.md or CLAUDE.md, or the user wants to
replace a starter/template file with project-specific guidance.AGENTS.md and Claude-style
CLAUDE.md instructions.If the user asks to edit an existing mature file, use the maintenance workflow instead.
Read references/instruction-file-practices.md when you need the quality rubric, recommended sections, import/symlink rules, or source links.
When phrasing rules in the file, 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 current state
AGENTS.md, CLAUDE.md, .claude/CLAUDE.md,
CLAUDE.local.md, AGENTS.override.md, .claude/rules/, nested
instruction files, and relevant .gitignore entries.CLAUDE.md imports @AGENTS.md, is a symlink, is
duplicated content, or is intentionally separate.Analyze the project
README*, package manifests, lockfiles,
Makefiles, task configs, CI files, Docker files, test configs, and existing
docs.Choose the file plan
AGENTS.md at the repository root and create CLAUDE.md
containing @AGENTS.md, followed by any Claude-specific notes.CLAUDE.md exists but AGENTS.md does not, create AGENTS.md from the
existing content plus project analysis, then reduce CLAUDE.md to an
import wrapper with any truly Claude-specific content preserved.AGENTS.md, and keep CLAUDE.md as an import wrapper unless
the user wants separate files.@AGENTS.md instead.AGENTS.md and
isolate file-specific notes in small labeled sections.Draft AGENTS.md
Project Overview,
Repository Layout, Setup, Development Commands, Testing, and
Architecture Notes. Add Security, Environment, Workflow, or
Known Gotchas only when they contain project-specific guidance.AGENTS.md-specific or
CLAUDE.md-specific notes only when the tools truly differ..claude/rules/ with paths frontmatter instead of bloating the main
file.Create the files
Write AGENTS.md.
Unless the user requested separate files, write CLAUDE.md as an import
wrapper:
@AGENTS.md
## Claude Code
[Claude-specific notes, only when needed.]
If running inside Claude Code, this skill replaces or extends the built-in
/init flow with a portable AGENTS.md-first variant. Claude Code's
built-in /init can also read an existing AGENTS.md, and
CLAUDE_CODE_NEW_INIT=1 enables its interactive multi-phase init flow.
Verify
Confirm both paths resolve and contain the intended content:
test -s AGENTS.md
test -s CLAUDE.md
grep -q '^@AGENTS.md$' CLAUDE.md || test -L CLAUDE.md
Validate every documented command as far as feasible. If a command was not run, say why.
Run git diff -- AGENTS.md CLAUDE.md or equivalent and review the result
before finalizing.
AGENTS.md or CLAUDE.md.README.md; link or summarize only what an
agent needs during code work.After initializing, 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.