baseline: Command for Claude Code

.claude/commands/init-project.md

init-project is a command for Claude Code from friedbotstudio/baseline. It costs 108 tokens per session (4,151 once invoked), scanned A, original, Apache-2.0.

A command that prepares the baseline configuration for a specific project. It examines the codebase, gathers recommendations, updates project settings, and prepares supporting files.

In plain words
What is it for?
For first-time project setup or reconfiguration, including detecting the stack, updating project configuration, creating directories, and recording initialization steps.
Why use it?
It removes the manual work of adapting a general-purpose agent setup to a particular project's language, tools, and structure.

Command for Claude Code

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

This is friedbotstudio/baseline's own configuration. It tells Claude Code how to work on baseline itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything baseline configures →

Reuse

Borrowing it

Nothing to install: this file belongs to friedbotstudio/baseline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/friedbotstudio/baseline/main/.claude/commands/init-project.md
Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

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/friedbotstudio/baseline/init-project/github.svg)](https://agentmods.dev/commands/friedbotstudio/baseline/init-project)
Your own site
<a href="https://agentmods.dev/commands/friedbotstudio/baseline/init-project"><img src="https://agentmods.dev/badge/commands/friedbotstudio/baseline/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/friedbotstudio/baseline/init-project"><img src="https://agentmods.dev/badge/commands/friedbotstudio/baseline/init-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,151 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.00108 $0.04151
Opus 5.5 $0.00043 $0.01660
Sonnet 5.5 $0.00022 $0.00830
Haiku 4.5 $0.00011 $0.00415

Measured 1mo ago against content hash f7b54124f8b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

.claude/commands/init-project.md · 216 lines

How it starts

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

/init-project — bootstrap the baseline for THIS project

User-only command. The 9-step protocol below mirrors seed.md §13. Each step is shown to the user; nothing happens silently.

Skip steps already completed (e.g., re-runs after configured: true). Re-runs replace the §16 addendum wholesale; manual notes belong in a sibling section.

Log every step transition to .claude/state/init/<UTC-timestamp>.log so partial failures and re-runs are debuggable.

Step 1 — Welcome

  • Print one line confirming you're at the repo root: pwd, then list .mcp.json, CLAUDE.md, .claude/.
  • Read .claude/project.json → configured. Tell the user one of:
    • configured: false → "First run. The baseline is in project-agnostic mode. I'll scout your codebase, ask the recommender what to tailor, and propose a config."
    • configured: true → "Re-running init. Will re-scout and replace §16 in seed.md. Continue? (otherwise abort.)"
  • If $ARGUMENTS was provided, note it ("user hint: <...>") and feed it into Step 3 as a stack-detection prior.

Step 2 — Pre-flight deps

Verify the baseline's hard requirements + advisory ones:

Required Check command If missing
bash ≥ 4 bash --version Hard fail. The baseline cannot run.
node + npx ≥ 18.17 which npx Hard fail. Hooks and skill helpers are Node ESM; MCP servers need npx.
git repo git rev-parse --is-inside-work-tree Soft warn. Swarm worktree mode falls back to shared.
plantuml CLI which plantuml Soft warn. plantuml_syntax_guard runs in guide mode and /spec-render refuses without it.

For each soft warn, note it and proceed. For hard fails, stop here with the install command.

Step 3 — Codebase survey (whole-project, in main context)

Survey the WHOLE project — not a task slice. Do this directly with Read/Grep/Glob/Bash; do not delegate to a subagent (the only baseline subagent, swarm-worker, exists strictly for /swarm-dispatch parallelism). Capture structured findings:

Read the full file on GitHub · 216 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. 1mo ago First seen · 216 lines · 108 tokens per session scan A f7b54124f8b3

Subscribe to this mod's changes

init-project is a command published in the GitHub repository friedbotstudio/baseline (14 stars, last pushed 13d ago), licensed Apache-2.0. It adds 108 tokens to every session and 4,151 once invoked, about $0.0004 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-08-30.