/who-ate-my-flops:publish-prfrom who-ate-my-flops
Writes PR description and issue drafts for a finished cleanup campaign into proposed-pr-description.md and proposed-issue.md, following a strict structure for maintainers.
Ships in who-ate-my-flops. 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.
In: a campaign that clean-up has delivered (delivery branch, benchmark.csv, records/candidates.jsonl,
commits/<sha>/{report.md,trace/}, latest-report.md), and the target repo checkout.
Out: proposed-pr-description.md and proposed-issue.md next to latest-report.md. The user uploads traces,
pushes, opens the PR and files the issue.
The reader is a maintainer who has never heard of you, the campaign or its tools. They open the PR wanting three
answers, in this order: what was wrong, what this PR changes, and what it costs or risks. Everything else is
evidence, and evidence goes lower down or into a collapsed block. The filled example is
template/pr-description.example.md (https://github.com/modelscope/FunASR/pull/3705).
Before writing, sort every shipped change:
git blame it and read the PR that added it. Code that
looks useless often guards a case the benchmark does not exercise (mixed data, other devices, other launchers).
If you cannot show the case is covered, do not ship the removal.Every number comes from benchmark.csv, records/candidates.jsonl, commits/<sha>/report.md, latest-report.md or a
re-verification run. Nothing predicted, nothing remembered, nothing carried over from an earlier baseline without
saying so.
Fill template/pr-description.md. The description has three parts of its own, then whatever the repo's template
asks for, then a collapsed block. Nothing else is added by default.
### under Summary). First line: Measured on <n> <GPU>. Then one table,
| | baseline | this PR | change |: the headline metric (mean and median if the step time is bimodal), what
disappeared (slow steps, launches, stalls), peak memory, the one-time cost (first step, compile), and one
of which: row per change when they were measured separately. When there are several commits with their own
measured effect, add the per-commit table | commit | change | measured effect |, and mark numbers that were
measured against a different baseline. Nothing after the tables.| recorded | baseline vs this PR | tolerance |, end-of-run rows first (validation loss, final
weights), per-step rows after, each exceedance counted inside its cell ("2 steps above 0.01"). No pass/fail
column, no bold..github/PULL_REQUEST_TEMPLATE.md (and
CONTRIBUTING.md for required statements) and add its sections in its order, with its headings and checkboxes.
Skip any heading whose content is already covered by the three parts above (a "Summary", "Purpose" or "What does
this PR do?" heading is the Summary; a "Test Result" heading is Speedup Result plus Correctness Verification).
Fill the rest truthfully and briefly, using these rules where the heading asks for them:
<details><summary>Details: hardware, model, full command, traces</summary> with
hardware and environment, the model and job, data preparation, the measurement setup (base commit, what both
versions share, data size, seed, number of interleaved runs), the full command for both versions, settings tried
and rejected, and the trace links (<share link> placeholders plus the local commits/<sha>/trace/ folder until
the user uploads). </details>.Title on the first line as a level-one heading: [perf] <job> on <hardware>: <t0> s to <t1> s per <unit> at <world size>, mostly from <largest cause>, following the repo's title rule if it has one.
Not in the description: sections the repo's template does not ask for (no default Validation, User impact or Notes for reviewers), an "experimental PR" callout, a revision note or history of earlier versions, a "generated with" footer or session link (unless the repo requires an AI-assistance statement), an Observations essay (profile findings go into the issue), campaign vocabulary (baseline arms, candidates, exp names), test function names, the same number in two sections.
Fill template/issue.md into proposed-issue.md: one issue per campaign, on the observation that most needs to
reach the maintainers whether or not the PR is merged, usually the largest cost or the one invisible in the logs.
Three paragraphs: what I ran and what the profile showed as the largest cause, with the file and the number
before and after that one change; what the logs or docs said at the time and the one line that would have made the
profile unnecessary; I opened #<PR> to record my experiment: setup, measurements, traces and some potential fixes. A different fix may also well suit the codebase. Title names what was observed with the job and the GPU, no
speed-up factor, no prefix of your own. If the repo has issue forms, pick a performance or question form before a
bug form and put the paragraphs under its headings.
Run the humanizer skill over both bodies. Then check:
Paths of both files, both titles, the placeholders still in them (trace links, the fork's verify branch, the PR number in the issue), and anything you could not verify.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/clean-upDeliver a finished optimization run as a branch the user can merge. Cherry-pick the commits that changed the workload onto the base, hardcode the A/B flags, re-verify on the shipped code, strip the checkpoint calls in a last commit, and leave the user standing on that branch with a handover./convert-to-benchmark-scriptTurn the script a user really runs into a benchmark script an optimization loop can run over and over. Same shape as the real job, a few minutes long, repeatable, and leaving nothing behind. It produces the script and a table of what changed, and it does not run it./diagnoseProfile the job defined in contract.md, name the one thing it loses most time to, and propose a single fix with a measured number behind it. It stops at the first finding. optimize is this same work repeated until nothing worth doing is left./extract-computation-graphRead a PyTorch job's code into two files in the workspace’s records/ directory. records/computation_graph.json says what is computed: the module tree down to op level, with a code anchor and a repeat count on every entry. records/execution_schedule.json says when and where it is computed and what moves between devices: phases, the data path onto the GPU, host to device copies and their sync points, the collectives between GPUs, and which overlaps are intended. It reads code and runs nothing. Use it to build either file, and to rebuild one when the code has moved under it./initWork with the user to pin down which PyTorch job gets optimized, write contract.md, and put the correctness instrumentation in place. The optimize skill later reads the contract.md written here and optimizes on its own. Every piece of alignment with the user happens in init, all of it./optimizeOptimize the torch job defined in contract.md with no further input. Profile, edit, and check correctness in a loop, then hand back one clean optimized branch.npx claudepluginhub openperfagent/who-ate-my-flops --plugin who-ate-my-flopsOther plugins' skills for the same job