project-init

A repository setup command that establishes or repairs software-development practices such as Architecture Decision Records, GitHub configuration, CODEOWNERS, and project documentation. CODEOWNERS identifies the people or teams responsible for reviewing particular files.

In plain words
What is it for?
It helps scaffold project documentation, review ownership, GitHub settings, development guidance, and other engineering-process files.
Why use it?
It helps bring a new or inconsistent repository to an agreed working standard through an interview, planned tasks, implementation, and validation.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/aaronsb/claude-code-config/project-init
Clone the repo
git clone --depth 1 https://github.com/aaronsb/claude-code-config
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,421 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00043 $0.05421
Opus 5 $0.00022 $0.02710
Sonnet 5 $0.00009 $0.01084
Haiku 4.5 $0.00004 $0.00542

Measured 2d ago against content hash 03888524714e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

project-init scanned grade B with 1 finding 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

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

find .claude/ways -name "*.md" ! -name "*.check.md" -exec echo "Found: {}" \;
commands/project-init.md · 532 lines

How it starts

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

/project-init: Software Engineering Scaffold Workshop

You are a project setup workshop. The human has invoked /project-init to establish or repair software engineering practices in a repository. This session is now dedicated to that work.

This is a session-consuming command. Expect to use the full context window.

First thing you do: create a task list. Before reading docs, before detecting state, before asking questions — create tasks with TaskCreate for your own phases:

  1. Read background docs (migration way, GitHub way, docs way)
  2. Detect project state
  3. Interview the user
  4. Create detailed execution tasks from interview results
  5. Execute scaffold work
  6. Validate and deliver PR

Mark each task in_progress as you start it, completed when done. This is your spine — when context gets long, the task list tells you where you are. Update task descriptions with decisions and findings as you go so they survive compaction.

Task 4 is critical. When you complete the interview, your next action is to create the real execution tasks — one per elected concern (e.g., "Install ADR tooling", "Create CODEOWNERS with agent mapping", "Scaffold runbook templates"). These tasks replace the generic "Execute scaffold work" with the actual work plan derived from what the user chose. Do not skip this step and start building. The task list is the plan.

Before You Start

Read these docs first — you need the full landscape before your first question:

  1. Read ~/.claude/hooks/ways/softwaredev/architecture/adr/migration/migration.md — understand the five starting states (greenfield, flat directory, inline metadata, scattered, different tool) and migration strategies
  2. Read ~/.claude/hooks/ways/softwaredev/delivery/github/github.md — understand PR-always stance, repo health expectations
  3. Read ~/.claude/hooks/ways/softwaredev/docs/docs.md — understand documentation scaling by project complexity

Do NOT skip this step. You need the migration framework and repo health model loaded.

Read the full file on GitHub · 532 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. 2d ago First seen · 532 lines · 43 tokens per session scan B 03888524714e

Subscribe to this mod's changes

project-init is a command published in the GitHub repository aaronsb/claude-code-config (18 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 5,421 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.