setup-baseline

setup-baseline is a skill for Claude Code from wenhaochai/claude-plugins. It costs 90 tokens per session (994 once invoked), scanned A, original, MIT.

A baseline setup workflow for a PyTorch performance project. It creates a separate Git worktree, which is an additional checkout of the repository, then records the starting code, measurements, computation map, and profile.

In plain words
What is it for?
Use it to prepare the workspace shared by diagnosis and optimization, record the base commit and traces, and leave a reusable starting point without starting an automated campaign.
Why use it?
It keeps experiments away from the original checkout and gives every later change a measured reference for speed, memory, and correctness.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the who-ate-my-flops plugin — 9 skills shipped together

Good fit Use it to prepare the workspace shared by diagnosis and optimization, record the base commit and traces, and leave a reusable starting point without starting an automated campaign.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add wenhaochai/claude-plugins
Claude Code
/plugin install who-ate-my-flops

Made for: Claude Code.

Or install who-ate-my-flops, the plugin that ships this one along with the rest of its 9 skills.

Wrote 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.

agentmods badge for setup-baseline

README.md
[![agentmods](https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/setup-baseline/github.svg)](https://agentmods.dev/skills/wenhaochai/claude-plugins/setup-baseline)
Your own site
<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.

agentmods 80×15 button for setup-baseline

Your own site · 80×15
<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>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 14d ago against content hash e3f7b327fe1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

who-ate-my-flops/skills/setup-baseline/SKILL.md · 68 lines

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.

  1. Create a separate worktree and make every change there. Leave the original checkout alone.

  2. Use <worktree>/workspace-who-ate-my-flops/ as <ws>. Add /workspace-who-ate-my-flops/ to the local exclude file returned by git rev-parse --git-path info/exclude from the worktree, preserving existing entries. Create the workspace with python <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 in records/, including any planning notes. Leave contract.md, latest-report.md, and benchmark.csv at the workspace root. Put helper scripts in tools/ and run artifacts in runs/. Avoid adding ad hoc files to the workspace root.

  3. Use the extract-computation-graph skill to build the job's computation graph and execution schedule inside the workspace: records/computation_graph.json for what is computed, and records/execution_schedule.json for 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.

  4. Record the original code's speed, memory and correctness using the scripts defined in run of 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 to commits/<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. finish refuses 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 Plan section 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 is research/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 when PARITY=1 with PARITY_OUT=<file>, compared with parity 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 derive does 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.

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.

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. 14d ago Changed · +90 tokens per session e3f7b327fe1e
  2. 17d ago First seen · 68 lines · 0 tokens per session scan A 1a321eeb4139

Subscribe to this mod's changes

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.

Related

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…

K-Dense-AI/scientific-agent-skills · 147 tokens

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.

foryourhealth111-pixel/Vibe-Skills · 43 tokens

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.

flonat/flonat-research · 56 tokens

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.

docxology/template · 52 tokens

implement-experiment

Deploy experiment artifacts in an isolated git worktree following an approved experiment plan, with per-phase commits.

TalonT-Org/AutoSkillit · 24 tokens

release-doi

A release procedure for research repositories that publish versions with a DOI, a permanent identifier for scholarly work, through Zenodo.

shimo4228/claude-harness · 44 tokens