cc-settings CLAUDE.md

Repository instructions for cc-settings, a TypeScript and Bun configuration project that installs shared coding standards and Claude Code settings.

In plain words
What is it for?
Use them when changing shared agent rules, Claude-specific settings, skill limits or the Bun-based tooling and checks.
Why use it?
They explain which files are the source of truth and how generated configuration is organized, avoiding edits that get overwritten or apply in the wrong place.

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/darkroomengineering/cc-settings/claude-md
Clone the repo
git clone --depth 1 https://github.com/darkroomengineering/cc-settings
Per session 699 This file is loaded in full into every session.
When invoked 699 The same file — it is already loaded in full.
Security scan B 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.00699 $0.00699
Opus 5 $0.00349 $0.00349
Sonnet 5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade B, and why

cc-settings CLAUDE.md scanned grade B 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

fragments that are *composed* into `~/.claude/settings.json` at install time
CLAUDE.md · 45 lines

How it starts

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

cc-settings

Darkroom Engineering Claude Code configuration repository.

Important

This repo contains two config files installed globally:

  • AGENTS.md~/.claude/AGENTS.md (portable coding standards, reference copy)
  • CLAUDE-FULL.md~/.claude/CLAUDE.md (Claude-Code-specific config)

The AGENTS.md file is the source of truth for coding standards and guardrails. It works across all AI coding tools (Codex, Cursor, Copilot, Windsurf, etc.).

CLAUDE-FULL.md contains only Claude-Code-specific settings (edit strategy, delegation guidance, model config, profiles, hooks). It points to AGENTS.md for standards.

About This Repo

TypeScript on Bun (migrated from bash in April 2026; see git log for history). Runtime: bun >=1.2.21. Skill count and the soft cap of 40 are enforced by bun run lint:skills — provenance and the cap rule live in CLAUDE-FULL.md ("Skill library soft cap"), not here. Deps: zod (only — yaml and @inquirer/confirm were dropped for Bun.YAML and node:readline). Dev: @biomejs/biome, typescript, @types/bun.

Two directories aren't what their names suggest: config/ holds settings fragments that are composed into ~/.claude/settings.json at install time (edit those, never the installed file), and schemas/*.schema.json is generated from the zod sources in src/schemas/ — don't hand-edit it.

Development

  • Install: bash setup.sh (macOS/Linux) or .\setup.ps1 (Windows)
  • Light install: bash setup.sh --light (raw Claude Code + statusline + share-learning skill only; permanent beginner tier — re-run without --light to upgrade)
  • Rollback: bun src/setup.ts --rollback (restores newest backup)
  • Fresh install: bash setup.sh --fresh (reinstall as if from scratch — settings.json, prior-install state, and local approvals reset; login/history/memory untouched; recover via rollback)
  • Dry-run: bun src/setup.ts --dry-run
  • Tests: bun test
  • Typecheck: bun run typecheck
  • Lint: bun run lint / bun run lint:fix
  • Deliberate-shortcut markers: bun run lint:shortcuts (add -- --ledger for the /audit debt view). Convention lives in AGENTS.md → Laziness Ladder.
  • Schemas (regenerate JSON Schema from zod sources): bun run schemas:emit
  • Preview composed settings.json: bun run compose
  • Dry-run a Bash command against the permission rules: bun run permissions:check "<cmd>" (--installed to check against ~/.claude/settings.json instead of config/)
  • Upstream drift scan: bun run upstream:scan
  • Commits: conventional — feat:, fix:, refactor:, docs:, chore:, test:.

Read the full file on GitHub · 45 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 · 45 lines · 699 tokens per session scan B ba5c4fe5a7a8

Subscribe to this mod's changes

cc-settings CLAUDE.md is an instructions file published in the GitHub repository darkroomengineering/cc-settings (42 stars, last pushed 4d ago), licensed MIT. It adds 699 tokens to every session, about $0.0035 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.