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.
npx agentmods add instructions/petekp/claude-code-setup/claude-mdgit clone --depth 1 https://github.com/petekp/claude-code-setupWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00816 | $0.00816 |
| Opus 5 | $0.00408 | $0.00408 |
| Sonnet 5 | $0.00163 | $0.00163 |
| Haiku 4.5 | $0.00082 | $0.00082 |
Grade B, and why
claude-code-setup 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.
- `~/.claude/settings.json` must remain a symlink to this repo's `settings.json`. Editing it in place can silently replace the symlink with a regular file — after any settings change, confirm the symlink is intact and re What it actually says
This repo is my version-controlled configuration for Claude Code and Codex: skills, hook scripts, settings, and the symlink setup that wires them into ~/.claude and ~/.codex. It is bash and markdown only — no application code, build step, or test suite.
- Shell scripts live in
scripts/andsetup.sh. Keep scripts with a#!/bin/shshebang POSIX-compatible (no bashisms). - After changing skills or scripts, run
./scripts/validate.sh(frontmatter checks) and./setup.sh --verify(symlink health). ~/.claude/settings.jsonmust remain a symlink to this repo'ssettings.json. Editing it in place can silently replace the symlink with a regular file — after any settings change, confirm the symlink is intact and restore it if not.- Entries in
skills/are a mix of real directories and symlinks out to~/.agents/skillsand other repos. Edit symlinked skills at their source; never dereference a symlink into a copy. - Symlinked skills are not committed — their targets are absolute paths on one machine, so committing them hands anyone else a dangling link. They are recorded in
SKILLS.mdand ignored viaskills/.gitignore, both generated. After adding or removing a skill, run./scripts/gen-skills-manifest.sh;--checkverifies they are current without rewriting. scripts/skill-doctor.shruns on every SessionStart (--quiet) and is the safety net for skill wiring. It auto-fixes what cannot be got wrong — relative symlinks rewritten absolute, a staleSKILLS.mdregenerated, dangling store links that point at deleted repo skills pruned — and only reports things needing judgment: dangling links inskills/, a repo skill shadowed by an enabled plugin, and~/.claude/settings.jsonhaving stopped being a symlink. Run it with no arguments for the full report. It never repairs the settings symlink; that needs a diff first.scripts/skill-manager.shis the on-demand counterpart to skill-doctor: doctor answers "is the wiring intact," this answers "is the skill set still worth carrying." Subcommands:report(full audit, runs all the checks below),usage [--top N],dupes,check(availability across Claude/Codex/agent dirs),sync,update(pendingnpx skillsupdates),prune(removal candidates). It reads~/.claude/skill-usage.jsonl, which is written byskill-usage-tracker.sh(wired toPostToolUseandUserPromptSubmitinsettings.json) — not by this script. Its ownlog <name>subcommand has no callers and is vestigial. Note that the usage log misses Codex and cloud sessions, so a zero there is not proof a skill is unused.- Removing a skill installed by
npx skillsmeans clearing four things, not one: theskills/entry, the~/.agents/skillscontent copy, the~/.agents/.skill-lock.jsonkey, and any links in other agent directories (~/.codex,~/.config/goose, …). The lockfile key matters most —skills update -giterates keys rather than scanning disk, so a leftover key reinstalls the skill everywhere on the next update.skills remove <name>cannot clear a key whose files are already gone; usejqfor those.sync-codex-skills.shcleans up its own links; the other agent directories need a manual sweep. - Hook scripts referenced by
settings.jsonrun on every session. Test changes to them before committing (they fail silently in the harness).
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.
- 2d ago First seen · 12 lines · 816 tokens per session scan B e904bfa1f598
claude-code-setup CLAUDE.md is an instructions file published in the GitHub repository petekp/claude-code-setup (45 stars, last pushed 26d ago), licensed MIT. It adds 816 tokens to every session, about $0.0041 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-31.
Other instructions, from other repositories
agentmemory AGENTS.md
AGENTS.md instructions for rohitg00/agentmemory, covering agentmemory — agent instructions, architecture, consistency rules, code patterns and function registration.
clicodelog CLAUDE.md
Instructions for monk1337/clicodelog, covering claude.md, commands, run the app, or without installing and common flags.
AutoAgents AGENTS.md
Instructions for liquidos-ai/AutoAgents, covering autoagents repository guidelines, project structure & module organization, code quality, naming conventions and error handling.
claude-code-karma CLAUDE.md
Instructions for JayantDevkar/claude-code-karma, covering claude.md, project overview, quick start, clone (no submodule init needed — this is a monorepo) and start api (terminal 1).
hatch3r CLAUDE.md
Instructions for hatch3r/hatch3r, covering hatch3r — development instructions, architecture, development commands, two-axis pillar framework (2.0.0) and orchestrator self-discipline (bypass protection).
ken CLAUDE.md
Instructions for townsendmerino/ken, covering claude.md, what this is, repository ownership (read this first), commands and embedding parity & golden fixtures (now in aikit).