* Make every documented command runnable under our own python shims
The modern-python plugin ships PATH shims that refuse `python <script>`,
`pip install`, `python -m pip` and `uv pip install`. Twelve other plugins
in this marketplace issued exactly those forms, so installing our own
plugin broke our own skills — and CI was green throughout.
The worst case was not theoretical. c-review and rust-review both call
their Phase 4 planner as `python3 "${PLUGIN_ROOT}/scripts/build_run_plan.py"`,
so with the shim installed every run died before spawning a worker.
Verified both directions: the new form exits 0 with the shim on PATH, the
old form exits 1.
Phase 1's reading pass named 16 skills. A mechanical sweep found 96
candidate lines across 44 files, and scanning shell scripts as well as
markdown found 10 more the docs sweep had missed. That gap is the reason
the check below exists.
The fix is not one substitution. Four classes needed different treatment:
- Our own scripts become `uv run --no-project <script>`. Not bare `uv run`,
because these execute inside the *target* repo, which may be a Python
project that cannot resolve; verified against a broken pyproject.toml and
against validate_artifacts.py's sibling import of generate_sarif.
- Package installs become `uv add` for a dependency, `uv tool install` for a
CLI, `uv sync` for a project's own editable install.
- Third-party CLIs we merely document — OSS-Fuzz's infra/helper.py, yarGen —
become `uv run --no-project python <script>`, which keeps upstream's exact
semantics rather than handing their script an environment we manage.
- atheris's instrumented build keeps its source build, as
`uv add --no-binary-package cbor2`. Dropping that flag would silently
produce an uninstrumented fuzzer, which is worse than a visible failure.
Its prose was updated to name the flag it now uses.
Two factual corrections fell out. `pip install caracal` was wrong twice
over: caracal is a Rust tool (Cargo.toml at its root), so it is now
upstream's own `cargo install --git`, not a uv equivalent that would fetch
an unrelated PyPI package. And `pip install uv` cannot bootstrap uv under
a shim that intercepts pip, so culture-index now points at the official
installer.
Thirteen lines stay as they are, each deliberately: Dockerfile `RUN` lines
and oss-fuzz's build.sh run in containers where our shims are absent;
codeql's pip calls install the *analysed* project's dependencies, and that
project is arbitrary; trailmark's dispatch skills must keep saying "Do NOT
run `pip install`"; and modern-python documents what it intercepts.
`make shell-suites` passes again as a result — exit 0 with the 1.6.0 shim,
where AGENTS.md previously recorded it as broken by variant-analysis.
The guardrail: check_python_invocations scans 698 markdown and shell files
and fails on the four refused forms, with structural exemptions for
dockerfile fences and an `allow-legacy-python: <reason>` marker that scopes
to its code block. Eleven self-test fixtures cover it, four asserting it
fires and seven asserting it stays quiet on the compliant forms. It was
mutation-tested in both languages, and it caught its own worst bug during
development: unanchored patterns first flagged `uv run --no-project python
fuzz.py`, the very form the advice recommends. Self-test goes 45 -> 56.
* Review pass: fix the atheris flow, drop a stray exemption, trim comments
Three corrections from reviewing the branch diff:
- atheris's install now opens with `uv init --bare`, without which the
documented `uv add atheris` errors in a bare harness directory. The old
pip form assumed an activated venv, so setup was always implicit; now
it is one explicit line.
- ossfuzz carried an allow-legacy-python marker on a C++ build block that
contains no python at all — yesterday's insertion matched the first of
three "Build in build.sh" headings instead of the python one. The
exemption now sits only on the block that needs it.
- The anti-vacuity message said "read no markdown" for a scan that also
covers shell scripts.
The rest is weight: the new check's comment blocks, the hardcoded-path
constants' commentary, the AGENTS.md bullets and the three exemption
markers all said the same things at two to three times the length. Each
keeps its one-line why; the narratives are gone. No behavioural change —
self-test still passes 56 assertions and the full scan is unchanged.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Address the review: fix where packages land, widen the check to match the shim
The review's core insight was right twice over. Several substitutions had
changed WHERE a package lands, breaking the documented next step, and the
checker enforced a narrower invariant than the shim it exists to mirror.
Where packages land:
- trailmark is imported as a library from five skills, and a `uv tool
install` environment is not importable — the retry loop at
trailmark/SKILL.md:47-51 would have spun forever on the exact error it
names. The CLI install stays `uv tool install`; the import snippets now
run under `uv run --with trailmark python -`.
- `uv add` writes to the manifest of whatever project you are standing
in, which for sarif-parsing is the audited repo. Its scripting rows,
ijson comment and jsonschema example now use `uv run --with <pkg>`,
which leaves no trace. atheris keeps `uv add` deliberately: the fuzzing
harness is the user's own project, made explicit by `uv init --bare`.
- `uv sync` leaves ct-analyzer in .venv/bin, so the README's very next
line failed with command not found. Now `uv tool install .`, verified
end to end: the console script lands on PATH and --help runs.
- yarGen needs pefile/lxml/yara-python, which `--no-project` had detached;
now `uv run --with-requirements requirements.txt`.
- The cbor2 source-build preference now persists via
`no-binary-package = ["cbor2"]` under [tool.uv] (field verified against
uv's accepted-settings list), so a later `uv sync` cannot silently swap
in an uninstrumented wheel.
The checker, widened to the shim's actual behaviour:
- `python3 --version` and `python3 -u foo.py` are refused by the shim but
passed the old patterns; one live instance (constant-time-analysis
README) proved it. Both forms are now caught.
- Every `uv pip` subcommand is refused, not just install; `-t` joins the
allowed tool-managed flags.
- .py files are scanned too: usage strings and error messages told users
to run refused commands from ten scripts, including the --help of the
very planner this PR fixed. All rewritten.
- The evals/tests exemption now tests path parts relative to plugins/, so
a checkout under a directory named tests no longer exempts every file.
- An allow-marker's scope ends at a blank line as well as a fence, so one
marker cannot blanket a whole file; quality-assessment.md gains the
second marker that scoping made necessary.
Also from the review: zeroize's preflight gets `which python3` back (a
helper script still needs the binary; the shim never required removing
it), the Makefile's shell-suites note no longer describes an interception
that is gone, and the cairo CI example warns that it rebuilds caracal
from source each run.
Self-test 56 -> 63; every new pattern and exemption is fixture-covered
and was mutation-probed against the real tree. Full scan: 0 findings over
773 files.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Address the second review: prerequisite probe, checker parity, package placement
The review's P2 was a regression this PR introduced for a population the
first fix ignored: c-review and rust-review now require uv, and a box
with python3 but no uv would die at Phase 4 exactly the way shimmed boxes
died before. Phase 1 (Prerequisites) in both skills now probes
`command -v uv` and aborts with install guidance. zeroize-audit's
preflight already checked uv. The four converted shell suites gain the
same guard with a clear message instead of a bare 127 mid-run.
Checker parity with the shims, second pass:
- pipx and the non-install pip subcommands are refused by catch-all shim
arms and passed the checker; both get named-subcommand patterns.
- A script named by variable or path (`python3 "$MERGE"`) has no `.py`
token; a new pattern covers it and immediately caught one live
instance — a codeql test stub that fakes uv itself, now carrying an
allow-marker with its reason.
- finditer everywhere: a compliant `uv run` earlier on a line no longer
masks a refused command later on it, which was exactly the table-cell
case the unanchored design exists for.
- Prohibition phrases now test the text BEFORE the match, so
"Use `pip install semgrep` instead of the tarball" is flagged while
"Do NOT run `pip install`" stays exempt.
- The uv-pip allowance matches whole flags after the command, so
`--target-dir` no longer counts as `--target` and a trailing `-t /tmp`
does; `uv pip` precedes `pip` in the pattern order so its lines get
the right advice; a pip match directly after `uv ` defers to the
uv-pip verdict instead of double-reporting.
Package placement, continued from the same insight as round one:
- yarGen regains --no-project alongside --with-requirements, plus a cd
into the checkout so requirements.txt resolves where it lives.
- sarif-parsing's jsonschema example no longer names a script that does
not exist, and the table's run-forms show a concrete script.py.
- culture-index's two messages now agree and name the actual remedy
(`uv run --project` on the scripts directory) instead of re-adding a
dependency its pyproject already declares.
- merge_sarif's usage line gains --no-project; the generator plugin's
install section stops prescribing a venv its own runner never uses.
- generate_poc declared requires-python >=3.9 while using `str | None`
in a signature, a TypeError on 3.9 that uv's interpreter selection
made reachable; now >=3.10.
- The GitLab CI example exports ~/.local/bin onto PATH, without which
`uv tool install` warns and the next line dies command-not-found.
Self-test 63 -> 71; the masking, prohibition-direction, flag-position
and pipx cases are all fixtures, and each new pattern was probed live
against the tree (plant, error, remove, clean — 0 findings over 773
files).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Address the third review: importable trailmark, honest probes, sturdier scan
The P2 was the residue of round two's own fix, applied to the siblings
but not the flagship: trailmark/SKILL.md told the model to cure an import
error with `uv tool install`, which cannot cure it — a tool env is not
importable — while forbidding every fallback. The install block now says
what each remedy is for: `uv tool install` for the CLI, `uv run --with
trailmark python -` for the snippets, and the other five library-first
docs carry the same one-line annotation next to their install command.
Empirically settled rather than taken from the review: `uv run python3
<script>` works fine under the shims — uv prepends its environment's bin
directory, so python3 resolves to a real interpreter, not the shim. The
review's claim to the contrary would have meant rewriting the Makefile
and a bats suite; a two-minute transcript said no. Also declined: a
zeroize uv-prerequisite (its preflight already lists uv and uvx; the
C/C++ `which` line now names uv too).
Real and fixed:
- ct-analyzer's availability probe ran `python3 --version` by subprocess
— the one refused form — so under the shims it reported "Python is not
available" on machines where it plainly is. It now probes
sys.executable, the interpreter the analyzer itself runs under.
Verified under the shim: probe returns True.
- The flag step-over in both script patterns handles long and
value-taking flags (`python3 -W ignore harness.py`, `--verbose
tool.py`), matching the shim's two-slot consumption.
- A bare `allow-legacy-python:` with no reason no longer exempts
anything; the reason the docs demand is now enforced.
- `uv run {baseDir}/...` gets --no-project at the ten semgrep and
culture-index call sites that round two missed, and the culture-index
remediation strings now name that same runnable command instead of a
--project mechanism nothing uses.
- pip gains cache/config; the pattern comment now says the subcommand
list is deliberately a subset.
- Both filesystem scans skip .venv/node_modules-style directories, after
a stray local .venv (left by this session's own uv probe, and invisible
to CI) turned the path scan red.
Smaller review items: the uv-probe prose says "Phase 4 onward" rather
than a wrong phase range, run_fixtures' comment stops claiming PEP 723
headers its stdlib-only helpers do not have, the yarGen one-liners say
to run from the checkout, `uv tool install` sites note or export the
tool bin dir the way a fresh container needs, and sarif-parsing's table
column says Install / run and stops naming a file that does not exist.
Self-test 71 -> 74. Full scan: 0 findings over 773 files.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
18 KiB
Contributing Skills
Resources
Official Anthropic documentation (always check these first):
- Claude Code Plugins
- Agent Skills
- Best Practices
- Skill Authoring Best Practices — progressive disclosure, degrees of freedom, workflow checklists
- The Complete Guide to Building Skills (text) — evaluation-driven development, iterative testing
Reference skills - learn by example at different complexity levels:
| Complexity | Skill | What It Demonstrates |
|---|---|---|
| Basic | git-cleanup | Single self-contained SKILL.md, allowed-tools scoping |
| Intermediate | constant-time-analysis | Python package, references/, language-specific docs |
| Advanced | culture-index | Scripts, workflows/, templates/, PDF extraction, multiple entry points |
When in doubt, copy one of these and adapt it.
Deep dives on skill authoring:
- Claude Skills Deep Dive - Comprehensive analysis of skill architecture
Example plugins worth studying:
- superpowers - Advanced workflow patterns, TDD enforcement, multi-skill orchestration
- compound-engineering-plugin - Production plugin structure
- getsentry/skills — Production Sentry skills;
security-reviewis a standout routing + progressive disclosure example
For Claude: Use the claude-code-guide subagent for questions about official Claude
Code behaviour that you cannot answer from this repository — it has access to the
official documentation. For anything answerable by reading the files here, read them;
delegating a lookup you could do directly costs a round trip and buys nothing.
Technical Reference
Codex Compatibility
This repository uses Claude plugin marketplace metadata as the canonical source for both Claude Code and Codex. Codex supports .claude-plugin/marketplace.json and plugins/<name>/.claude-plugin/plugin.json directly, so do not add duplicate Codex-only sidecar metadata.
Rules:
-
Do not add
.agents/plugins/marketplace.json,.codex/,.opencode/, orplugins/<name>/.codex-plugin/. The validator enforces this — sidecars drift out of sync with the canonical metadata, which is why the last set was removed in #173. -
Keep plugin components at the plugin root using Codex-compatible default paths:
skills/,hooks/hooks.json,.mcp.json, and.app.json. -
If a plugin needs MCP configuration, put it in
.mcp.jsonat the plugin root rather than embedding an object in.claude-plugin/plugin.json. -
Both loadability checks run in CI, not in
make check— they need the Claude Code and Codex CLIs installed, which is not a reasonable local prerequisite. Run them by hand if you are changing plugin metadata:python3 .github/scripts/check_claude_loadability.py python3 .github/scripts/check_codex_loadability.pyIf one fails, update the canonical Claude marketplace or the plugin root components so Codex can load them through Claude marketplace compatibility — do not add a sidecar to work around it.
Plugin Structure
plugins/
<plugin-name>/
.claude-plugin/
plugin.json # Plugin metadata (name, version, description, author)
commands/ # Optional: slash commands
agents/ # Optional: autonomous agents
workflows/ # Optional: dynamic workflows (*.js), ships as /<plugin>:<workflow>
evals/ # Optional: `claude plugin eval` cases + graders
skills/ # Optional: knowledge/guidance
<skill-name>/
SKILL.md # Entry point with frontmatter
references/ # Optional: detailed docs
workflows/ # Optional: step-by-step guides (prose, not scripts)
scripts/ # Optional: utility scripts
hooks/ # Optional: event hooks
tests/ # Optional: run_*.sh suites (CI runs these — keep them free)
README.md # Plugin documentation
Important: Component directories (skills/, commands/, agents/, hooks/) must be at the plugin root, NOT inside .claude-plugin/. Only plugin.json belongs in .claude-plugin/.
Two different workflows/. A dynamic workflow is a JavaScript file at the plugin
root under workflows/; it exports a meta object, orchestrates subagents in code, and
ships through the marketplace as /<plugin-name>:<workflow-name> (from meta.name, not the
filename). The older skills/<skill>/workflows/ holds prose step-by-step guides. If a
SKILL.md has "Phase 1", "for each finding", or "repeat until" sections, the plan belongs in
a script at the plugin root, not in prose. See plugins/variant-analysis/workflows/ for a
worked example, and note that ${CLAUDE_PLUGIN_ROOT} is not available inside a workflow
script — it is not a hook, MCP, or LSP subprocess.
Frontmatter
Skills and commands declare tools with allowed-tools, space-delimited:
---
name: skill-name # kebab-case, max 64 chars
description: "Third-person description of what it does and when to use it"
allowed-tools: Read Grep # Optional: restrict to needed tools only
---
Agent files under agents/ use a different key — tools, as a YAML list:
---
name: agent-name
description: "What this agent does and when the coordinator should dispatch it"
tools:
- Read
- Grep
---
The keys are inverted between the two file types, and the loader silently ignores the wrong one — the frontmatter still parses, the restriction simply does not apply and the agent inherits everything. The validator checks this.
Naming Conventions
- kebab-case:
constant-time-analysis, notconstantTimeAnalysis - Gerund form preferred:
analyzing-contracts,processing-pdfs(notcontract-analyzer,pdf-processor) - Avoid vague names:
helper,utils,tools,misc - Avoid reserved words:
anthropic,claude
Path Handling
- Use
{baseDir}for paths, never hardcode absolute paths - Use forward slashes (
/) even on Windows
Python Scripts
When skills include Python scripts with dependencies:
-
Use PEP 723 inline metadata - Declare dependencies in the script header:
# /// script # requires-python = ">=3.11" # dependencies = ["requests>=2.28", "pydantic>=2.0"] # /// -
Use
uv run- Enables automatic dependency resolution:uv run {baseDir}/scripts/process.py input.pdf -
Include
pyproject.toml- Keep inscripts/for development tooling (ruff, etc.) -
Document system dependencies - List non-Python deps (poppler, tesseract) in workflows with platform-specific install commands
Hooks
PreToolUse hooks run on every Bash command—performance is critical:
- Prefer shell + jq over Python—interpreter startup (Python + tree-sitter) adds noticeable latency
- Fast-fail early - exit 0 immediately for non-matching commands so most invocations are instant
- Favor regex over AST parsing - accept rare false positives if performance gain is significant and Claude can rephrase
- Anticipate false positive patterns - diagnostic commands (
which python), search tools (grep python), and filenames (cat python.txt) shouldn't trigger interception - Document tradeoffs in PR descriptions so reviewers understand deliberate design choices
Quality Standards
These are Trail of Bits house standards on top of Anthropic's requirements.
Description Quality
Your skill competes with 100+ others. The description must trigger correctly.
- Third-person voice: "Analyzes X" not "I help with X"
- Include triggers: "Use when auditing Solidity" not just "Smart contract tool"
- Be specific: "Detects reentrancy vulnerabilities" not "Helps with security"
Value-Add
Skills should provide guidance Claude doesn't already have, not duplicate reference material.
- Behavioral guidance over reference dumps - Don't paste entire specs; teach when and how to look things up
- Explain WHY, not just WHAT - Include trade-offs, decision criteria, judgment calls
- Document anti-patterns WITH explanations - Say why something is wrong, not just that it's wrong
Example: The DWARF skill doesn't include the full DWARF spec. It teaches Claude how to use dwarfdump, readelf, and pyelftools to look up what it needs, plus judgment about when each tool is appropriate.
Scope Boundaries
Prescriptiveness should match task risk:
- Strict for fragile tasks - Security audits, crypto implementations, compliance checks need rigid step-by-step enforcement
- Flexible for variable tasks - Code exploration, documentation, refactoring can offer options and judgment calls
Security Skills
For audit/security skills, also include:
## Rationalizations to Reject
[Common shortcuts or rationalizations that lead to missed findings]
Content Organization
- Keep SKILL.md under 500 lines - split into
references/,workflows/ - Use progressive disclosure - quick start first, details in linked files
- One level deep - SKILL.md links to files, files don't chain to more files
Note: Directory depth is fine (references/guides/topic.md). Reference chains are not (SKILL.md → file1.md → file2.md where file1 references file2). The problem is chained references, not nested folders.
Progressive Disclosure Pattern
## Quick Start
[Core instructions here]
## Advanced Usage
See [ADVANCED.md](references/ADVANCED.md) for detailed patterns.
## API Reference
See [API.md](references/API.md) for complete method documentation.
Before committing
make check
That runs the validator self-test, ruff, shellcheck, shfmt, bats, the plugin Python suites, and the plugin validator.
It is most of CI, not all of it. Three things run only in CI, so a green make check
is strong evidence and not a guarantee:
- the two loadability checks, which need the Claude Code and Codex CLIs installed
- the rest of pre-commit — actionlint, zizmor, check-yaml/json/toml,
detect-private-key, end-of-file-fixer, trailing-whitespace. Run
prek run -a(orpre-commit run -a) to cover those locally. - the version-increment check, which needs a base ref to diff against and so has no meaning outside a PR.
make shell-suites, a target but not part ofcheck— slow, not broken. It passes with modern-python ≥ 1.6.0 installed; the 1.5.3 shim still refuses thepython3 -that zeroize-audit's suite uses.
Both scan every plugin; the validator is not scoped down in CI. Only the version-increment check is limited to the plugins a branch touched, and it is the one check CI runs that local cannot. Do not add a scoping flag to the local run — the zero-reference guard only arms on a full scan.
make fix applies the formatting CI would otherwise reject. make help lists the rest.
What the validator enforces, so you do not have to
Each of these fails the build. There is no value in checking any of it by hand:
plugin.jsonexists, parses, and hasname,description, and a semverversionplugin.json'snameequals the plugin's directory name- Plugin directory name is kebab-case and ≤64 characters
- Plugin has a
README.md(exact case —Readme.mdpasses on macOS and fails on CI) - Registered in
.claude-plugin/marketplace.json, the rootREADME.md, andCODEOWNERS - The marketplace entry's
sourceis exactly./plugins/<name>and itsdescriptionmatchesplugin.json versionmatches betweenplugin.jsonandmarketplace.json, and increases when you change a plugin — clients only pull an update when the number goes up, so a fix shipped without a bump reaches nobody. Apply theno-version-bumplabel for typo-only changes and CI skips the check.SKILL.mdhas frontmatter, and no top-level value is an unquoted YAML scalar containing:or#. Either one makes the whole block unparseable, and the loader then drops every field and loads the skill with empty metadata — so a skill whosedescription:line reads perfectly well ships with no description and never triggers. Quote any description containing a colon.- Agent files use
tools:; skills and commands useallowed-tools: subagent_typevalues are namespaced<plugin>:<agent>— a bare name is unregistered and the dispatch fails at runtime, whether it names this plugin's own agent, another plugin's, or nothing at all- No hardcoded
/Users/…or/home/…paths, in any.md,.py,.json,.sh,.bats,.ymlor.tomlfile underplugins/.*-shim.batsis exempt because those fixtures need literal paths, and/path/toand/home/vscodeare treated as placeholders rather than somebody's home directory. - No documented command uses a form the
modern-pythonshims refuse:python <script>,pip install,python -m pip, oruv pip installwithout--project/--directory/--target/-t. Useuv run --no-project <script>,uv run --with <pkg>,uv add, oruv tool install. Exempt: prose forbidding the command,dockerfilefences,plugins/modern-python/itself,.md/.pyunder atests/evals*directory (quoted expectations), and code blocks carryingallow-legacy-python: <reason>— the reason is required. - No
.codex/,.opencode/,.agents/, orplugins/*/.codex-plugin/sidecars - A committed
uv.lockfor every uv directory listed in.github/dependabot.yml - Both loadability checks pass under the real Claude Code and Codex CLIs
Two more are reported as warnings, so they will not stop a merge and do still
need your eye: SKILL.md over 500 lines, and references that do not resolve. A dangling
references/setup.md link 404s for every user of the skill, and CI will not stop you
shipping it.
What no tool can check — this is the part that needs you
- The description actually triggers. Third person, names the situation, uses the words a user would actually type. This is the single highest-leverage line in a skill: a skill that never triggers may as well not exist.
- Examples are concrete — real input, real output, not a shape.
- It explains why, including the trade-off and when not to do the thing.
- The version bump is the right size. The validator confirms the number went up;
only you know whether the change was substantive.
MAJOR.MINOR.PATCH, MINOR for features, PATCH for fixes. - CODEOWNERS lists the right people:
/plugins/<name>/ @you @dguido. Find your username withgh api user --jq .login. - The entry is in the right section of the root
README.md. The validator only checks that the plugin appears somewhere in that file, so a row appended to whichever table you scrolled to first passes CI and stays filed under the wrong category indefinitely.
Scripts a plugin ships
A checker that inspects zero items must fail, not pass. This is the single most expensive class of bug in a repo like this one, because it is invisible on every read and in every review. Real examples, all of which were green for months:
- a validator using
grep -oP(rejected by BSD grep) with stderr sent to/dev/null, so it printed "all valid" on every run without ever matching anything - an eval grader that judged the response text rather than the artifact, so a run that skipped the actual work still scored a pass
- a citation gate that validated only the citations that were present, so a document with zero citations passed
If your script counts, filters, or matches, make it exit non-zero when the count is
zero, and give it a fixture proving it still detects its target. The validator's
--self-test is the worked example: it builds a known-bad plugin in a tempdir and
asserts each checker rejects it, and it fails if it runs fewer assertions than it
should — because the self-test is itself a checker.
Otherwise: set -euo pipefail, POSIX ERE rather than PCRE (grep -oP is not portable
to macOS), and never send a tool's stderr to /dev/null unless you have handled the
failure it would have reported.
Working effectively in this repo
- Effort. Start at
xhighfor coding and agentic work andhighelsewhere, then sweep downward on your own evals —lowandmediumare unusually strong on current models and often match what an older model neededxhighto do. Defaults carried over from a previous model are rarely the right setting. - Subagents. Delegate work that is large and genuinely independent — a wide multi-file investigation, several unrelated tracks. Do not spawn subagents to verify or double-check your own work, and do not split one modest job across several: each one re-establishes context, re-explores, and reports back, and then you re-read the report. One well-briefed agent beats three vague ones.
- Do not add verification scaffolding to prompts. "Double-check your answer", "add a
final verification step", and similar make output worse on current models rather than
better — they cause over-verification, and removing them costs no capability. This
inverts older advice, so it is worth stating explicitly. Put the check in
make checkor the validator, where it runs deterministically and cannot be talked out of firing. This applies to skills you write or edit; existing skills carrying the pattern are not a cleanup backlog, so strip it when you are already in the file rather than as its own sweep. - Do not tell a reviewer to pre-filter. "Only report high-severity issues" is
followed literally: the model investigates just as thoroughly, finds the bugs, and
then declines to report what it judges below the bar. Precision rises, recall appears
to collapse, and the regression looks like a capability problem when it is a prompt
problem. Ask for everything with a severity attached and filter in a separate pass —
c-reviewandrust-reviewdo this correctly if you want a model to copy.