Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add wenhaochai/claude-plugins/plugin install who-ate-my-flopsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wenhaochai/claude-plugins/setup-baseline)<a href="https://agentmods.dev/skills/wenhaochai/claude-plugins/setup-baseline"><img src="https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/setup-baseline/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wenhaochai/claude-plugins/setup-baseline"><img src="https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/setup-baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.00994 |
| Opus 5.5 | $0.00036 | $0.00398 |
| Sonnet 5.5 | $0.00018 | $0.00199 |
| Haiku 4.5 | $0.00009 | $0.00099 |
Grade A, and why
setup-baseline 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 14d 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.
What it actually says
setup-baseline
In: contract.md, as init settled it.
Out: a workspace whose base row is recorded in records/candidates.jsonl and
benchmark.csv, and whose base commit carries a trace and a diagnosis.
-
Create a separate worktree and make every change there. Leave the original checkout alone.
-
Use
<worktree>/workspace-who-ate-my-flops/as<ws>. Add/workspace-who-ate-my-flops/to the local exclude file returned bygit rev-parse --git-path info/excludefrom the worktree, preserving existing entries. Create the workspace withpython <plugin root>/tools/workspace.py init <ws> <contract>. The plugin root is the directory two levels above this SKILL.md, and Claude Code also exposes it as${CLAUDE_PLUGIN_ROOT}. Every tool this plugin ships resolves from there, because you are standing in the target's worktree and never in the plugin. Read workspace.py first: it defines the file formats everything downstream uses, and the workspace is the common ground the skills coordinate through. Keep process records inrecords/, including any planning notes. Leavecontract.md,latest-report.md, andbenchmark.csvat the workspace root. Put helper scripts intools/and run artifacts inruns/. Avoid adding ad hoc files to the workspace root. -
Use the extract-computation-graph skill to build the job's computation graph and execution schedule inside the workspace:
records/computation_graph.jsonfor what is computed, andrecords/execution_schedule.jsonfor when and where it is computed and what moves between devices. Both get read against the profile results later, to locate the performance problems and find fixes for them. -
Record the original code's speed, memory and correctness using the scripts defined in
runof contract.md, and diagnose it. The baseline covers all four, and all four get written down:- Diagnosis: run the torch-profile skill on the unmodified code, in full.
Its traces go under
commits/<base sha>/trace/and its report tocommits/<base sha>/report.md. This is the one diagnosis of the user's own code: every later profile only says whether a change removed something from it, and the handover points back to it.finishrefuses a campaign without it. - Speed: by default measure the warm-up cost, which is paid once, and the steady step time, which is paid many times over.
- Memory: measure CPU and GPU memory, and watch how each moves across the warm-up phase and the steady-step phase.
- Correctness:
a. Read the
## Correctness Instrumentation Plansection of contract.md for where the checkpoints go and which recorder it names. b. Use the recorder the repo already has. In imp_genai that isresearch/core/probe, the same code vendored under its own name. Install one only when the repo has none, and then install parity (https://github.com/OpenPerfAgent/parity):import parity, recorded whenPARITY=1withPARITY_OUT=<file>, compared withparity compare. c. Read its README first, then put the planned calls in. d. Smoke run it 3 times, and work out the tolerance its numbers actually hold to.parity derivedoes this, and it needs three runs of unmodified code.
Record the result with
workspace.py add --verdict base, and carry the tolerance forward: every later comparison is read against it. - Diagnosis: run the torch-profile skill on the unmodified code, in full.
Its traces go under
The questions ended with init, but setup can still fail in a way worth handing back: a runner that does not run, a node that is busy, a tolerance that will not hold. Say what failed and stop, rather than working around it.
Arm nothing here. What keeps a campaign turning for hours belongs to the caller, and a diagnosis has no loop to keep turning.
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.
- 14d ago Changed · +90 tokens per session e3f7b327fe1e
- 17d ago First seen · 68 lines · 0 tokens per session scan A 1a321eeb4139
setup-baseline is a skill published in the GitHub repository wenhaochai/claude-plugins (17 stars, last pushed 2d ago), licensed MIT. It adds 90 tokens to every session and 994 once invoked, about $0.0004 per session on Opus 5.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-10-01.
Other skills, from other repositories
datalad
Retrieves, versions, and publishes scientific datasets with DataLad and git-annex, and captures computational provenance with datalad run, rerun, and containers-run. Use when cloning or fetching data from OpenNeuro, DANDI, datasets.datalad.org, or any DataLad dataset; when a file in a dataset reads as a broken symlink…
manuscript-as-code
Treat manuscripts as software: version control, reproducible builds, figure pipelines, CI, and structured repo layout. Helps teams avoid 'finalv7' chaos and ensures submission-ready artifacts.
latex-diff
Compare two LaTeX files, project directories, or Git revisions and produce human-readable plus machine-readable severity-graded semantic changes. Use when determining what changed between manuscript versions or preparing a revision audit bundle. Not for proofreading one version; use $proofread.
template-publish
Publishing scripts for DOI-bearing project releases, optional mirror uploads, PyPI release validation, post-publish verification, and publication export. Use with docs/guides/publication-runbook.md for standalone GitHub + Zenodo release workflows.
implement-experiment
Deploy experiment artifacts in an isolated git worktree following an approved experiment plan, with per-phase commits.
release-doi
A release procedure for research repositories that publish versions with a DOI, a permanent identifier for scholarly work, through Zenodo.