claude-code-setup CLAUDE.md

A CLAUDE.md instruction file for the w2ur/claude-code-setup project. It defines rules for coding language, planning larger changes, diagnosing bugs, and using sub-agents.

In plain words
What is it for?
Use it to guide agent work on that project, especially for planning multi-file changes, handling bugs, and coordinating sub-agents.
Why use it?
It gives coding agents consistent project guidance, including when to plan first, how to investigate likely environmental causes, and where plans should be stored.

Instructions file

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 instructions/w2ur/claude-code-setup/claude-md
Clone the repo
git clone --depth 1 https://github.com/w2ur/claude-code-setup
Per session 4,510 This file is loaded in full into every session.
When invoked 4,510 The same file — it is already loaded in full.
Security scan A 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.04510 $0.04510
Opus 5 $0.02255 $0.02255
Sonnet 5 $0.00902 $0.00902
Haiku 4.5 $0.00451 $0.00451

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

Security

Grade A, and why

claude-code-setup CLAUDE.md scanned grade A 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Network posture is deliberately open (blanket WebFetch/WebSearch/curl) — this is a solo-owner machine, not a scoping oversight.
CLAUDE.md · 139 lines

How it starts

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

CLAUDE.md — Global Instructions

Project-level CLAUDE.md overrides anything here.

Language

All code, comments, identifiers, commit messages → English. User-facing content follows the project's target language (defined in the project CLAUDE.md).

Planning and execution

  • Single-file / small fix: execute directly.
  • Multi-file / architecture / feature work: propose a plan first and wait for approval. Plan subtasks must be atomic with explicit "done when…" criteria so any sub-agent can pick them up.
  • Plans never live in the repo. They go in ~/.claude/plans/ only. If you find plan files inside a repo, git rm -r --cached them and add to .gitignore.

Bug handling

  1. Triage first: one concise question about the most likely environmental cause (stale cache, service worker, stale build, local state). Skip for obvious code bugs.
  2. Escalation cascade — one-way, no retries at the same level:
    • L1: direct fix with a stated root-cause hypothesis.
    • L2: superpowers:systematic-debugging skill.
    • L3: troubleshooter agent.
  3. No edit without a stated hypothesis. "Try a different approach" without a new hypothesis is banned.

Sub-agents

Default to parallel dispatch for any 2+ independent tasks. Specify the model when dispatching:

  • haiku — passive audits (portfolio-audit). docs-checker is sonnet: it edits files and verifies URLs, so it is not a passive audit.
  • sonnet — default implementation, single-file changes, clear scope.
  • opus — 4+ files across layers, architecture analysis, retry after failed sonnet. Supports fast mode for latency-sensitive loops.

Escalation order is Fable > Opus > Sonnet > Haiku (aliases resolve to current releases). The session default is Opus [1m] — a deliberate cost choice, not the top of the lattice. Fable is manual escalation for the hardest work, invoked explicitly rather than assumed. L3/troubleshooter always inherits the session model (model: inherit), so it is never weaker than the caller regardless of which tier the session is running.

Read the full file on GitHub · 139 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 · 139 lines · 4,510 tokens per session scan A dcf17ac9fbb5

Subscribe to this mod's changes

claude-code-setup CLAUDE.md is an instructions file published in the GitHub repository w2ur/claude-code-setup (2 stars, last pushed 9d ago), licensed MIT. It adds 4,510 tokens to every session, about $0.0226 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories