project-init

project-init is a command for Claude Code from mturac/everything-openai-codex. It costs 22 tokens per session (926 once invoked), scanned A, original, MIT.

A project setup command that examines a code repository and prepares a reviewable onboarding plan for coding-agent tools.

In plain words
What is it for?
It helps identify the project's programming stack, existing agent configuration, and suitable install or merge steps.
Why use it?
It shows what would be added or changed before modifying project guidance, settings, or installation files.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Codex; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/install-apply.js --target <target> --dry-run --json <language-or-profile-args>.

Good fit It helps identify the project's programming stack, existing agent configuration, and suitable install or merge steps.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mturac/everything-openai-codex
agentmods
npx agentmods add commands/mturac/everything-openai-codex/project-init

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mturac/everything-openai-codex/project-init/github.svg)](https://agentmods.dev/commands/mturac/everything-openai-codex/project-init)
Your own site
<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/project-init"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/project-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 project-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/project-init"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/project-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 926 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.00022 $0.00926
Opus 5.5 $0.00009 $0.00370
Sonnet 5.5 $0.00004 $0.00185
Haiku 4.5 $0.00002 $0.00093

Measured 1mo ago against content hash d878af3cc8c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-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 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.

commands/project-init.md · 87 lines

How it starts

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

/project-init

Create a safe, reviewable ecc onboarding plan for the current project. This command should start in dry-run mode and only write files after explicit user approval.

Usage

/project-init
/project-init --dry-run
/project-init --target codex
/project-init --target cursor
/project-init --skills continuous-learning-v2,security-review
/project-init --config ecc-install.json

Safety Rules

  1. Default to dry-run. Do not modify CODEX.md, settings files, rules, skills, or install state until the user approves the concrete plan.
  2. Preserve existing project guidance. If CODEX.md, .codex/settings.local.json, .cursor/, .codex/, .gemini/, .opencode/, .codebuddy/, .joycode/, or .qwen/ already exists, inspect it and propose a merge/append plan instead of overwriting.
  3. Use ecc's installer and manifest tooling. Do not hand-copy files or clone arbitrary remotes as an install shortcut.
  4. Keep permissions narrow. Any generated settings should match detected build/test/lint tools and avoid broad shell access.
  5. Report exactly what would change before applying anything.

Detection Inputs

Read the current project root and detect stack signals from:

  • package manager files: package.json, package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lockb
  • language manifests: pyproject.toml, requirements.txt, go.mod, Cargo.toml, pom.xml, build.gradle, build.gradle.kts
  • framework files: next.config.*, vite.config.*, tailwind.config.*, Dockerfile, docker-compose.yml
  • ecc config: ecc-install.json
  • optional stack map: config/project-stack-mappings.json in the ecc repo

When the ecc checkout is available, use config/project-stack-mappings.json as the stack-to-rules/skills reference. If the file is unavailable, fall back to the installed ecc manifests and explicit user choices.

Planning Flow

  1. Identify the target harness. Default to codex unless the user asks for cursor, codex, gemini, opencode, codebuddy, joycode, or qwen.
  2. Detect stacks from project files and show the evidence for each match.
  3. Resolve the smallest useful ecc plan:
    • project has an ecc-install.json: node scripts/install-plan.js --config ecc-install.json --json
    • user named a profile: node scripts/install-plan.js --profile <profile> --target <target> --json
    • user named skills: node scripts/install-plan.js --skills <skill-ids> --target <target> --json
    • only language stacks are detected: use the legacy language install dry-run with those language names
  4. Run a dry-run apply command before writing:

Read the full file on GitHub · 87 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 · 87 lines · 22 tokens per session scan A d878af3cc8c2

Subscribe to this mod's changes

project-init is a command published in the GitHub repository mturac/everything-openai-codex (86 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 926 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-03.