/jig:perffrom jig
Turns 'make it faster' into measured, reproducible results. Profiles before choosing what to change, ships only what measures as a win. For builds, test suites, CI pipelines, endpoints, or batch jobs.
Ships in jig. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
PURPOSE: Turn "make it faster" into measured, reproducible results. Fix the protocol before the first run, profile before choosing what to change, and ship only what still measures as a win in the final combination.
CONFIGURATION: Reads plans-directory and filename-format from
jig.config.md. Writes the results doc as kind perf (e.g.
docs/plans/2026-05-27-test-suite-perf.md) and a .csv with the same stem
beside it.
kickoff offers it during DISCOVER for work with a speed or cost goal, and
after debug on a speed or cost regression; verify sends you back here
before any "faster" or "cheaper" claimDo NOT use when:
debug, then come
back to measure the fixperformance specialist in review
covers thatNO LEVER WITHOUT A PROFILE. NO CLAIM WITHOUT A PAIRED MEASUREMENT.
Ask what is off limits before measuring anything: "as close to real use as possible", "no assertion changes", "no removing checks from the pipeline", "no new runtime dependencies". Constraints rule out options; learning them after the probes ran wastes the probes.
If team memory is on (the memory skill), search it for perf results and
traps on this pipeline before planning probes; a lever someone already
measured is a starting point, to be checked, not a result.
/usr/bin/time -l on macOS,
/usr/bin/time -v on Linux. For work that runs in containers (databases,
services), add the containers' CPU from their cgroup or docker stats.
Report wall time too, labelled "noisy" on a shared machine.Example: before runs were gated on an idle machine, one arm's CPU ranged 400–610 s across rounds; gated rounds stayed within 6%.
Take one CPU profile of the slow path and rank where time goes. Choose levers from the top of that list.
Example: a faster compiler/transform looked attractive but was 1–3% of test time; a UI library's runtime style generation was 22%. One profile redirected the whole effort.
Log what the run actually used: real concurrency, resolved versions, cache hits and misses. Settings fail silently. Traps seen in practice:
verify)Fixes that attack the same cost overlap; their gains don't add. Measure the combination you intend to ship, then remove each fix in turn. Drop any fix whose removal costs nothing.
Example: a change that won on its own measured neutral once later changes landed, and had to be dropped mid-stack.
From per-task timings (task-runner run summaries, CI step timings), find what finishes last. After each fix, recompute it: the bottleneck moves, and with it what is worth doing next.
date,experiment,arm,round,cpu_user_s,cpu_sys_s,wall_s,max_rss_mb,notes.
Record machine load in notes. /usr/bin/time -l (macOS) reports max RSS
in bytes and GNU /usr/bin/time -v in KB; convert to MB before recording
max_rss_mb.*-perf.md): what changed, methodology, results,
learnings.pr-create links the results doc from the PR
description once the levers ship.perf-result note (the memory skill,
Saving): the levers that won or lost, with their measured numbers and a
link to the results doc.Summarize in conversation which levers measured as wins in the combination,
with their numbers and the *-perf.md path, then return control to kickoff
or the invoking skill (or the user, if invoked directly).
Do NOT go on to implement the levers. They go through the rest of the
pipeline as kickoff routes the work, with the results doc as evidence.
When several agents probe in parallel, put this protocol and the CSV schema
in the shared context doc, gate heavy runs as team-dev's lead-playbook.md
describes, and run timing-sensitive benchmarks one at a time.
| Mistake | Fix |
|---|---|
| Comparing runs taken at different times of day | Interleave A/B pairs; compare within a pair |
| Wall time as the headline number | CPU time first; wall time labelled noisy |
| "The flag made no difference" | Check the run used the flag: log concurrency, versions, cache hits |
| Optimizing what is easy instead of what is slow | Profile first; pick levers from the top of the profile |
| Shipping five fixes each measured alone | Measure the combination, then ablate each fix |
| Chasing the old bottleneck | Recompute the critical path after every fix |
| Results scattered across chat and scratch files | One CSV schema plus a *-perf.md in plans-directory |
Called by:
kickoff during DISCOVER, for work with a speed or cost goal, or after debug on a speed or cost regression/perfReferenced by:
verify -- its "faster" or "cheaper" claims follow this protocol (Steps 5 and 7)pr-create -- links the results doc from the PR descriptionTerminal state:
kickoff, the invoking skill or the user. No auto-invoked implementation.Related skills:
debug -- root cause first when something regressedteam-dev / sdd -- shared context doc and heavy-run gating for parallel probesreview -- the performance specialist reviews diffs for slow codeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub duronext/jig --plugin jig26 skills in this plugin
/brainstormUse when exploring ideas, comparing approaches, or refining an unclear problem — at any point in the workflow. A discovery-time tool, not a pipeline stage. Invokable directly via /brainstorm or offered by kickoff during DISCOVER. Produces understanding, not artifacts.
/buildUse when you have an implementation plan and want to execute it. Analyzes the plan's task graph, determines the best execution strategy (parallel via team-dev or serial via sdd), and orchestrates the full build with quality gates. The single entry point for plan execution — you don't need to choose between team-dev and sdd yourself.
/debugUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Enforces root cause investigation through four phases: investigation, pattern analysis, hypothesis testing, and implementation. Prevents guess-and-check thrashing.
Other plugins' skills for the same job