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 1mo 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.
- 1mo ago Changed · +90 tokens per session e3f7b327fe1e
- 2mo 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 (21 stars, last pushed 26d 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.
setup-baseline compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-baselinewenhaochai/claude-plugins | Skill | 21 | 26d ago | MIT | A | 90 | Claude Code |
| dataladK-Dense-AI/scientific-agent-skills | Skill | 59k | 2d ago | MIT | A | 147 | Claude Code |
| manuscript-as-codeforyourhealth111-pixel/Vibe-Skills | Skill | 3.9k | 23d ago | Apache-2.0 | A | 43 | Claude Code |
| latex-diffflonat/flonat-research | Skill | 155 | 17d ago | MIT | A | 56 | Claude Code |
| template-publishdocxology/template | Skill | 25 | today | Apache-2.0 | A | 52 | Claude Code, Codex |
| refactor-research-codeShaishavMaisuria/research-paper-lifecycle-skills | Skill | 67 | 1mo ago | Apache-2.0 | A | 60 | Claude Code, Codex |
| dym-scientific-agent-skills-dong-gop-them-sua-skillRheinmir/setup | Skill | 10 | 14d ago | MIT | A | 78 | Claude Code |