run-evals
Run the eval suite of one skill of this repository with a chosen agent model, record the results in the plugin's evals README (tables from scripts/eval_tables.py) and open a PR. Use when the user asks to "run the evals", "run the <skill> evals with <model>", "add <model> to the eval findings" or invokes /run-evals.
- License 许可
- LGPL-2.1
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- run-evals
- description
- Run the eval suite of one skill of this repository with a chosen agent model, record the results in the plugin's evals README (tables from scripts/eval_tables.py) and open a PR. Use when the user asks to "run the evals", "run the <skill> evals with <model>", "add <model> to the eval findings" or invokes /run-evals.
03 SKILL.md 正文
Goal: one skill's evals run with one agent model, the findings README updated with that model's final run, and a PR opened. Follow the repository README ("Evals" and "Table Generation") and the rules below.
1. Ask what to run
Skip any question the user already answered.
- Skill: list the skills that have evals with
ls plugins/*/evals/*/ -d(skipresults). Each folder isplugins/<plugin>/evals/<skill>/; the case prefix is the start of its case names (e.g.sns-,sip-,dbg-). - Model(s): the agent model, as a full model ID (e.g.
claude-opus-5-5,claude-sonnet-5-5,claude-haiku-5-5,claude-haiku-4-5-20251001), never an alias. Label it with its version ("Opus 5.5"). - Judge: default
sonnet; useopuswhen the agent is Sonnet. The judge must differ from the agent model.
Use AskUserQuestion for what is missing.
2. Preflight
python -c "import pylops; print(pylops.__file__)"(andpyproximalfor thepyproximalplugin) must print a path insidesite-packages(regular, not editable, install); otherwise stop and tell the user.- Never run
mpiexec/mpirunlocally. Plugins whose evals need MPI: tell the user to run them themselves. git status: note unrelated untracked files (leave them out of the commit).
3. Run
From plugins/<plugin> (cwd does not persist: use cd in the same command), in the background:
claude plugin eval . --case '<prefix>-*' --model <full-model-id> --ablation with-without \
--judge-model <sonnet|opus> --allow-tools "Write,Bash" -j 4 --no-publish
- Always
--no-publish: the report stays local, nothing is uploaded unless the user asks. - Several models: launch each at least 5 s apart (same-second starts share a results
folder and one run is lost). Map folders to models from each run's own
Report: …/results/<timestamp>/report.htmlline, never by "newest folder". - Wait for the completion notification, do not poll. Exit code 1 only means some graders failed. If a run errored or was partial, tell the user before recording it.
4. Tables
Use scripts/eval_tables.py, never hand-transcribed numbers:
python scripts/eval_tables.py "<Model X.Y>=<results dir>" ...
Give the new run first, then every model already in the README (folders are in its
"Reports" list), all of the same suite. Check the printed --model values match the
labels.
5. Update plugins/<plugin>/evals/README.md
Only the section of the chosen skill. The README shows one final run per model: no run history, no intermediate runs, no run numbers in prose.
- Add the model's columns (or replace them if the model is already there) in the results, fire-runs grader-count and cost tables, copying the script's tables.
- Update the "Results" intro (number of models, judge), the "never fired on the
negative cases (n/N runs…)" sentence, the Reports list (model,
--model,--judge-model, report link) and the cost notes (judge cost per run, with-plugin overhead, suite cost with judge = agent + judge cost from the script). - Add a Findings paragraph for the model. Ground every claim in the data: grader
counts from the script, and for solver/method/SNR specifics read the answers in
aggregate-result.json(cases[].arms.with|without[].graders[].evidence). Do not claim what you did not check. - If a replaced model's old results folder is no longer linked, ask the user before deleting it.
- If the repository README's eval section lists models or counts that changed, fix it.
6. Branch and PR
git checkout -b eval-<skill>-<model-slug> main(stash nothing; leave unrelated untracked files alone).- Commit the README and the new results folder only (
aggregate-result.json,report.html), message ending with the Co-Authored-By line from the session attribution reminder. git push -u origin <branch>andgh pr create --base mainwith a short body: the Δ per case, fire-case mean with vs without, negative-case firing, and the PR attribution footer from the session reminder.- Report the PR link and any caveats (failed graders, errors, unchecked details).
04 同仓库更多 Skills
solve-nonsmooth-problem
Use this skill whenever the user wants to solve an inverse problem on PyLops operators with a non-smooth, constrained or non-convex term - load it before writing the objective, choosing a solver or writing optimisation code, even when a SciPy bounded solver or a hand-written FISTA/ADMM loop would also work. Covers total variation, L1/sparsity in a transform, joint sparsity across signals sharing the same components, bounds/positivity/ball/affine constraints, low-rank matrix completion (nuclear norm) and plug-and-play priors with a denoiser (median filter, BM3D), solved with PyProximal (ProximalGradient, ADMM, PrimalDual, ...), step sizes from operator norms. E.g. "add TV regularisation", "keep the model within physical bounds", "recover several signals that share their components", "fill in missing entries of a low-rank matrix", "use PyProximal". Not for purely quadratic regularisation (Tikhonov, damping, derivative smoothing), which is plain least squares - use the pylops skill solve-inverse-problem.
wrap-operator
Wrap a user's own forward model as a PyLops linear operator inside their project (not inside the PyLops library), with a verified adjoint, a dot-test and a small test suite. Use when the user wants to turn existing forward/adjoint code, a script at a URL, or a mathematical description into a PyLops operator they can pass to PyLops solvers (e.g. "make my blurring function a PyLops operator", "wrap this forward model so I can invert it with lsqr", "I have a forward and adjoint, plug them into PyLops").
tune-regularization
Choose regularisation weights and thresholds for a PyLops inversion (epsRs in regularized_inversion, damp in cgls/lsqr, eps in ista/fista, epsRL1s in splitbregman, sigma/tau in spgl1, niter as implicit regularisation) with a principled, reproducible sweep - L-curve, discrepancy principle, GCV for small problems, or a synthetic test with a known model. Use when the user asks "how do I choose epsilon / lambda / damping", "my inversion is too smooth / too noisy", "make an L-curve", or after solve-inverse-problem produced a working but untuned inversion.
solve-inverse-problem
Use this skill whenever the user has (or can build) a PyLops operator and data and wants to invert it - load it before choosing a solver or writing any inversion code, even when the right solver or regularisation seems obvious. It sets up and runs the inversion in the user's project - choose the solver (lsqr, cgls, cg, regularized_inversion, preconditioned_inversion, fista, spgl1, omp, irls, splitbregman), the regularisation and the stopping parameters, and write a runnable script that reports convergence. E.g. "invert my data with this operator", "which PyLops solver should I use", "add Tikhonov / smoothness / sparsity regularisation to my inversion", "solve y = Op x". Not for an inversion that already misbehaves (use debug-inversion) or for choosing regularisation weights with an L-curve or sweep (use tune-regularization).
sliding-patch-processing
Set up PyLops windowed operators - Sliding1D, Sliding2D, Sliding3D, Patch2D, Patch3D - to apply a local transform or operator over overlapping windows of 1-D/2-D/3-D data, choosing window size, overlap, taper and model size with the *_design and *_pad_to_next helpers, checking coverage and the dot-test, and using them for local denoising, interpolation or inversion. Use when the user asks "apply FFT/Radon/any operator in overlapping windows", "local transform / patching with PyLops", "Patch2D gives artefacts at the edges", "how do I pick nwin, nover, nop".
pick-sparsifying-transform
Choose a sparsifying transform for a signal or image in a PyLops sparsity-promoting inversion (FFT/FFT2D/FFTND, DCT, DWT/DWT2D/DWTND, DTCWT, Seislet, curvelets via UDCT, Radon/FourierRadon/ChirpRadon, windowed versions with Sliding/Patch), check its optional dependencies and frame properties, compare candidates quantitatively with a best-k-term compressibility test, and wire the winner into fista/spgl1 in synthesis or analysis form. Use when the user asks "which transform should I use for sparsity", "wavelets or curvelets for my data", "make my model sparse for fista/spgl1", "compressive sensing / interpolation with PyLops".