init-project

init-project is a command for Claude Code from travisjneuman/.claude. It costs 16 tokens per session (1,135 once invoked), scanned A, original, MIT.

A project setup command that creates a CLAUDE.md file with rules suited to the detected or selected technology stack.

In plain words
What is it for?
Use it when starting a new project or adding agent guidance to an existing React, Next.js, static, Python, or automation project.
Why use it?
It gives the coding agent project-specific instructions without requiring you to write the setup file from scratch.

Command for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it when starting a new project or adding agent guidance to an existing React, Next.js, static, Python, or automation project.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/travisjneuman/.claude/init-project
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.

Clone the repo
git clone --depth 1 https://github.com/travisjneuman/.claude

Made for: Claude Code.

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/travisjneuman/.claude/init-project/github.svg)](https://agentmods.dev/commands/travisjneuman/.claude/init-project)
Your own site
<a href="https://agentmods.dev/commands/travisjneuman/.claude/init-project"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/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/travisjneuman/.claude/init-project"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/init-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,135 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.00016 $0.01135
Opus 5 $0.00008 $0.00567
Sonnet 5 $0.00003 $0.00227
Haiku 4.5 $0.00002 $0.00113

Measured 6d ago against content hash cbb11ab35ca1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

init-project 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 6d 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.

commands/init-project.md · 169 lines

How it starts

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

Initialize Project CLAUDE.md

Creates a properly configured CLAUDE.md file using the optimized template with global toolkit integration.


Execution Flow

Step 1: Check Current State

# Check if CLAUDE.md already exists
[ -f "./CLAUDE.md" ] && echo "EXISTS" || echo "NOT_EXISTS"

If EXISTS: Stop and suggest running /standardize-claude-md instead.


Step 2: Detect or Ask Stack

If {{stack}} argument provided: Use that stack directly.

If no argument: Check for project files:

# Detection priority
[ -f "package.json" ] && grep -q '"next"' package.json && echo "nextjs"
[ -f "package.json" ] && grep -q '"react"' package.json && echo "react"
[ -f "pyproject.toml" ] || [ -f "requirements.txt" ] && echo "python"
[ -f "index.html" ] && ! [ -f "package.json" ] && echo "static"

If no files detected: Use AskUserQuestion to ask:

  • "What tech stack will this project use?"
  • Options: React + TypeScript, Next.js + NestJS, Static HTML/CSS/JS, Python, Automation/Scripts

Step 3: Stack → Rules Mapping

Detected Stack Type Related Global Rules
react React app react-typescript.md, ui-visual-changes.md
nextjs Next.js fullstack-nextjs-nestjs.md, react-typescript.md, ui-visual-changes.md
static Static site static-sites.md, ui-visual-changes.md
python Python python.md, automation-scripts.md
automation Scripts automation-scripts.md

Step 4: Generate CLAUDE.md

Read template from ~/.claude/templates/project-CLAUDE.md.

Fill in the Related Global Rules section based on detected stack:

Read the full file on GitHub · 169 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. 6d ago First seen · 169 lines · 16 tokens per session scan A cbb11ab35ca1

Subscribe to this mod's changes

init-project is a command published in the GitHub repository travisjneuman/.claude (97 stars, last pushed 4d ago), licensed MIT. It adds 16 tokens to every session and 1,135 once invoked, about $0.0001 per session on Opus 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-03.