init-project

init-project is a command for Claude Code from anilcancakir/claude-code. It costs 52 tokens per session (12,928 once invoked), scanned C, original, MIT.

A command for investigating a project and writing its standing instructions into CLAUDE.md and related rule files. These files tell coding agents how to work in a project.

In plain words
What is it for?
Use it to inspect a project, create or update CLAUDE.md, optionally create personal instructions, and split path-specific guidance into separate rule files.
Why use it?
It gathers project facts first so the instructions reflect the repository’s tools, languages, conventions, and existing agent setup.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ac plugin — 10 skills, 3 commands, 11 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it to inspect a project, create or update CLAUDE.md, optionally create personal instructions, and split path-specific guidance into separate rule files.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add anilcancakir/claude-code
Claude Code
/plugin install ac

Made for: Claude Code.

Or install ac, the plugin that ships this one along with the rest of its 10 skills, 3 commands, 11 agents, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for init-project

README.md
[![agentmods](https://agentmods.dev/badge/commands/anilcancakir/claude-code/init-project/github.svg)](https://agentmods.dev/commands/anilcancakir/claude-code/init-project)
Your own site
<a href="https://agentmods.dev/commands/anilcancakir/claude-code/init-project"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code/init-project/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for init-project

Your own site · 80×15
<a href="https://agentmods.dev/commands/anilcancakir/claude-code/init-project"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code/init-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 12,928 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.12928
Opus 5.5 $0.00021 $0.05171
Sonnet 5.5 $0.00010 $0.02586
Haiku 4.5 $0.00005 $0.01293

Measured today against content hash 186521f0555d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

init-project scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**CAN**: Use `Read`, `Write`, `Edit`, `Grep`, `Glob`, `Bash`, `LSP`, `AskUserQuestion`. Spawn `Agent` with `subagent_type: "ac:explore"` for codebase fan-out, and one `ac:oracle` at Phase 3e to review the drafts. Invoke

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

prompt: "Discovery agent 4 of 4 for `/ac:init-project`. Target project: <PATH_ARG>. Predict the standard agent-infra footprint and report only deviations.\n\nCONTEXT: We are deciding whether the new CLAUDE.md should impo
plugins/ac/commands/init-project.md · 374 lines

How it starts

The opening of the file, as written. The whole thing — 374 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ac:init-project

Deep project investigation followed by an optimized CLAUDE.md, optional CLAUDE.local.md, up to five path-scoped .claude/rules/*.md files, permission rules that keep secrets unreadable and routine commands unprompted, a lint or format hook that provably fires, and a language server that provably answers. Everything is shown as one proposal and approved once before anything is written, and the drafts pass one ac:oracle review before they land. Drives the ac:claude-md-rules-creator skill as the writing playbook.

Request: $ARGUMENTS

Do NOT call EnterPlanMode or ExitPlanMode. This command runs on the main thread and uses no plan mode; the plugin's PreToolUse hook steers native plan mode to /ac:plan anyway.

Phase 0: Identity, Arguments, Primer, and Existing-File Branch

You are the /ac:init-project orchestrator. You investigate a target project, decide what standing instructions belong in which file shape, and leave the project with those files plus working tooling. You run on the main thread; the four discovery agents in Phase 1 and the Phase 3e reviewer are subagents you spawn.

CAN: Use Read, Write, Edit, Grep, Glob, Bash, LSP, AskUserQuestion. Spawn Agent with subagent_type: "ac:explore" for codebase fan-out, and one ac:oracle at Phase 3e to review the drafts. Invoke the ac:claude-md-rules-creator skill at Phase 3 entry (see the exact call in section 3a). Write <target>.proposed sidecar files when an existing target would be overwritten. Write one hook script under .claude/hooks/ and merge its entry, plus the approved permissions.deny and permissions.allow rules, into the target project's .claude/settings.json or .claude/settings.local.json as the 2d proposal named (Phase 4). Merge one enabledPlugins key into ~/.claude/settings.json after the 2d proposal is approved.

CANNOT: Spawn ac:librarian, or ac:oracle anywhere but 3e. ac:explore cannot spawn anything, because its tools: allowlist omits Agent; every discovery agent returns to this orchestrator before the next step. Author CLAUDE.md prose without first invoking ac:claude-md-rules-creator. Edit files outside the target project directory, with three exceptions: the enabledPlugins key of ~/.claude/settings.json in Phase 5, ~/.claude/<PROJECT_SLUG>-instructions.md in 3c for sibling worktrees, and the 3e scratch directory under ${TMPDIR:-/tmp}. Interview the user about MCP servers or about settings keys generally, or write any settings key other than one hooks.PostToolUse entry, permissions.deny and permissions.allow in the project and one enabledPlugins key in ~/.claude/settings.json. Write permissions.defaultMode in particular: auto and bypassPermissions are ignored in project and local settings since 2.1.257, and a mode is the user's choice, not the project's. Write anything to .claude/settings.json that the approved 2d proposal did not place there. Repair a pre-existing malformation in a settings file this command did not create.

Read the full file on GitHub · 374 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +6 lines 186521f0555d
  2. 22d ago Changed · +57 lines · -279 tokens per session scan B → C bbd2469cb2f2
  3. 1mo ago Changed · +74 lines · +56 tokens per session scan A → B 70c53410285f
  4. 1mo ago First seen · 237 lines · 275 tokens per session scan A fe943a468dca

Subscribe to this mod's changes

init-project is a command published in the GitHub repository anilcancakir/claude-code (3 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 12,928 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (reads agent configuration directories, reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.