claude-init

claude-init is a command for Claude Code from dsnger/dev-workflow-kit. It costs 21 tokens per session (3,912 once invoked), scanned A, original, MIT.

A command that creates one CLAUDE.md file containing general working rules for Claude Code, an agent that works on software projects.

In plain words
What is it for?
Use it to start a project's agent instructions, covering practices such as thinking before coding, making small changes, and not guessing.
Why use it?
It gives a project a basic set of instructions without adding review processes or extra files.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/ana/projects/atlas/CLAUDE.md.

Part of the dev-workflow plugin — 4 skills, 3 commands, 1 agent, 3 hooks shipped together

Good fit Use it to start a project's agent instructions, covering practices such as thinking before coding, making small changes, and not guessing.

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 dsnger/dev-workflow-kit
Claude Code
/plugin install dev-workflow

Made for: Claude Code.

Or install dev-workflow, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 1 agent, 3 hooks.

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 claude-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/dsnger/dev-workflow-kit/claude-init/github.svg)](https://agentmods.dev/commands/dsnger/dev-workflow-kit/claude-init)
Your own site
<a href="https://agentmods.dev/commands/dsnger/dev-workflow-kit/claude-init"><img src="https://agentmods.dev/badge/commands/dsnger/dev-workflow-kit/claude-init/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 claude-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/dsnger/dev-workflow-kit/claude-init"><img src="https://agentmods.dev/badge/commands/dsnger/dev-workflow-kit/claude-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,912 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00021 $0.03912
Opus 5.5 $0.00008 $0.01565
Sonnet 5.5 $0.00004 $0.00782
Haiku 4.5 $0.00002 $0.00391

Measured 21d ago against content hash 314daa81c2a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

claude-init scanned grade A with 0 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 21d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-workflow/commands/claude-init.md · 292 lines

How it starts

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

Write a CLAUDE.md of general working rules into the current project: think before coding, simplicity, surgical changes, goal-driven execution, and not guessing. This is the lighter entry point beside /dev-workflow:workflow-init — it installs no review gates and writes no other file.

Target model: Claude via Claude Code. This command is a prompt artifact and follows the dev-workflow prompt checklist (docs/prompt-standards.md in the dev-workflow-kit repository).

Context

  • The only file this command writes is CLAUDE.md, in the current directory. No marker, no README note, no AGENTS.md, no .context/, no commit — the user asked for one file, and every extra file is something they did not ask to own.
  • It needs nothing a directory does not have, with one exception. No git repository, no plugin, no MCP server, no package manager. Reading and proposing work anywhere. Creating the file needs a Python 3 that is already installed, because that is where the one safe create operation lives (see Writing). Where it is missing, the command stops instead of writing some weaker way.
  • It is an entry point, never an exit. Where a CLAUDE.md already carries review gates — a Cross-Model Review section, Gate A / Gate B — they stay exactly as they are. This command never removes, disables, weakens or renumbers a gate, because a project that has gates chose them.

Done means

  • Exactly one report state from Report below was printed, and it describes what you observed, not what you expected.
  • At most one file changed on disk: CLAUDE.md, and only when it did not exist before.
  • An existing CLAUDE.md is byte-for-byte what it was before the command ran.

Step one — what kind of path is CLAUDE.md?

Ask this before looking at any content: a path that cannot be classified safely must never reach a content decision. Run:

ls -ld CLAUDE.md
test -L CLAUDE.md && echo symlink
test -r CLAUDE.md && echo readable

Test for a symlink first. test -e and test -f follow links, so a dangling link would read as "absent" and the create would write through it into another place.

Read the full file on GitHub · 292 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. 21d ago First seen · 292 lines · 21 tokens per session scan A 314daa81c2a7

Subscribe to this mod's changes

claude-init is a command published in the GitHub repository dsnger/dev-workflow-kit (6 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 3,912 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.