project-setup

A command for setting up project folders for client work, internal products, or tools. It supports creating a project, adding the standard structure to an existing folder, or reconciling project memory after a lost thread.

In plain words
What is it for?
Use it when creating or retrofitting a project folder, or when rebuilding its state and notes from available evidence.
Why use it?
It ensures the command uses the configured template and storage locations, reducing setup mistakes and keeping project files organised.

Command for Claude Code

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/16wells/claude-project-setup/project-setup
Clone the repo
git clone --depth 1 https://github.com/16wells/claude-project-setup

Made for: Claude Code.

Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,430 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00031 $0.02430
Opus 5 $0.00015 $0.01215
Sonnet 5 $0.00006 $0.00486
Haiku 4.5 $0.00003 $0.00243

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

Security

Grade A, and why

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

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.

templates/client-project/.claude/commands/project-setup.md · 136 lines

How it starts

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

Handle project setup for one of three project types: client engagement, internal product owned by the practice, or tool built for personal/team use. There are three modes (greenfield / retrofit / reconcile) — you must determine both the type and the mode before doing any work.

Step 0: Read config first

Before anything else, read $TEMPLATE_ROOT/config.local.md first — if it exists, use those values. Otherwise fall back to $TEMPLATE_ROOT/config.md at the root of the cloned claude-project-setup repo. The .local.md variant is gitignored and holds the user's real paths and identity; config.md is the generic public version.

That file defines:

  • TEMPLATE_ROOT — the absolute path to the cloned repo on this machine
  • CLIENTS_ROOT — the absolute path to the directory where client project folders live
  • INTERNAL_ROOT — the absolute path to the directory where internal-product folders live
  • TOOLS_ROOT — the absolute path to the directory where tool folders live (often the same as INTERNAL_ROOT — both paths are configurable)

Every path in this command is expressed relative to those variables. Do not hardcode anyone's home directory.

If the file that was actually read (either .local.md or .md) is missing or any required variable is empty, stop and ask the user to fill it before continuing. If the file still contains /REPLACE/WITH/... placeholders, stop and tell the user to fill it first — the repo won't work until they do.

Step 1: Determine the mode

Greenfield mode (new project): There is no existing folder at the target path. You'll create one from a template.

Retrofit mode (existing folder): A folder already exists — either a legacy project that pre-dates the template, or one the user created manually. You'll add missing template pieces without stomping existing content.

Reconcile mode (memory drift after a thread loss): A folder already conforms to the template, but 01-context/state.md is stale, missing, or out of sync with what's actually deployed/committed. You'll rebuild state.md from on-disk evidence and flag contradictions in the other memory files.

Read the full file on GitHub · 136 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 · 136 lines · 0 tokens per session scan A 625b6381719a

Subscribe to this mod's changes

project-setup is a command published in the GitHub repository 16wells/claude-project-setup (2 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 2,430 once invoked, about $0.0002 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-08-31.