/marekkirejczyk-skills:refactor-evals [suite | pr <number|url|branch> | path | failing]from marekkirejczyk-skills
Refactors eval suites by splitting bundled cases, merging duplicates, moving checks to cheaper graders, and diagnosing failures. Run with a file, PR, or `failing`.
Ships in marekkirejczyk-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bring the eval cases in a scope up to the rules below. Arguments: $ARGUMENTS. If your agent does not fill that in, take them from the user's message.
The scope is what the user names: the whole suite, a PR or branch's cases, a file or folder of cases, or failing (the cases red or marked in the latest run). With no scope given, use the whole suite.
Start by learning the suite: read its README, its case format, its runner and one case file, and map this skill's words onto the project's. Where the project has written its own eval rules, those win, and the conflict goes in the report. An example in its README is not a rule.
Change only the cases in scope, plus the suite's shared files (its list for every reply, shared fixtures) when a move needs them. Search the whole suite for duplicates of what is in scope, and report those outside it.
A suite is worth running only while a red case means one known thing broke and a green case means its requirement held. Three things wear that away:
You are done when all five hold:
Then the project's format, lint and test commands pass, and every changed case passes every trial or carries a mark.
Before the first change, write the ledger in your working notes: one row per expectation in scope.
| Requirement (source, section) | Scenario | Grader | Case | Where |
|---|
Write "none found" for an expectation no source backs. Leave out what the runner adds to every case by itself. Then sort by requirement and scenario. The ledger finds the work:
At the end, rebuild the ledger from the files and compare it with the first one, pair by pair. That comparison is goal 4.
examples.md, next to this file, shows each rule broken and kept. Read it before your first round.
Cases
Checks
Judge statements
Marks
Changing an expectation
Both ways. Every expectation you write, reword, or rely on to remove another is shown green on a good reply and red on a bad reply. An expectation moved unchanged needs none. Write the two replies in the shape the runner grades (the words, the tools run, what was shown), and grade them with the project's own check function and judge from a scratch file you never commit. This calls the judge at most; the subject isn't needed. For a must-never-say pattern, the good reply contains the innocent use: a refusal that names the thing.
Removal. A case or an expectation goes only when, for each requirement it held, a remaining expectation is red on that requirement's bad reply.
When the runner can't grade a reply you give it, or there is no key for the judge, that is a finding (harness.md). Until it can, prove by reading each expectation against the two replies, and say so in the report.
The subject answers differently each time, so one pass proves little.
A split multiplies subject calls. Report the case count and the calls per run, before and after.
With no key for the subject's model, make the moves Proof covers without it and report the trials as not run.
Read the transcript before anything else: the baseline's, or the latest report's. A mark's note is not a transcript. Then give each failing expectation one verdict:
| Verdict | The transcript shows | What you do |
|---|---|---|
| Harness | A model error, a timeout, a judge's answer that couldn't be read | Run it again. If it repeats, report it as a finding (harness.md) |
| Case | A reply that keeps the requirement and still fails: the case asks more than the requirement, a pattern catches a good reply, a fixture is wrong | Fix the case under rule 17, and say why in the commit |
| Subject | A reply that breaks the requirement | Leave the case as written and report it with the transcript. Mark it (rule 15) only if it was already red at baseline |
| Requirement | Sources that are unclear, contradict each other, or say nothing of the failing expectation | Ask |
A case at 0 of n is suspect before the subject is: look for a fixture typo or an expectation no reply could meet. For an unsteady case, read the failing trials, name the expectation that fails, and give the verdict for that one.
Work on a new branch, in rounds: one move on one case or one cluster, then the project's checks that need no model (the case schema, lint, unit tests), then a commit. Leave the branch unpushed.
Order: the baseline, the ledger, verdicts for red cases, Trace, Split, Merge, Hoist, Regrade, Pair and Shorten, then the trials.
The runner and the fake world have their own rules in harness.md. Read it when the scope is the whole suite or includes the runner's files, or when a move needs something the runner can't do. When a rule needs a kind of expectation the case format lacks (the order of calls, a call that must never carry an argument), write the nearest the format has and report the lack as a finding.
Run everything above without asking. Then present these in one batch, numbered, each with its cases as file:line and your recommendation:
harness.mdApply the answers in the same session, one commit each. What the user doesn't answer stays as it is.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/baby-sittingBaby-sit the current branch's pull request until it is merged. With nothing or manual it keeps the PR rebased, green and answered, working through the review bot's comments you pick, and leaves the merge to you; with auto it turns on GitHub auto-merge./dont-repeat-yourselfFind every concept implemented more than once in a scope (a repository, a PR, a directory, a concept) and give it one well-tested implementation. Identical copies are extracted automatically; behaviour differences and high-stakes code are brought to you for a decision at the end./eval-reportRun a repository's evals and turn the results into one static HTML report for fast review, with pass/fail counts, collapsible files, filters for failed and for new or changed cases, and links to the code. Run it with nothing for the whole repository, with commit or pr to mark what changed, or with only commit|pr to run just what changed./eval-report-install-ciSet up eval-report on GitHub Actions, so every pull request gets an HTML eval report linked at the top of its description and in one comment, built by a script without model tokens. Adds it to the existing eval job, or proposes a lean eval job of its own. Needs the eval-report skill installed next to it./explain-with-slidesBuild a slide deck that walks through a repository, the current one or one at a URL, (architecture and features) or through one pull request (its changes, before/after screenshots, diagrams, key files, diffs, tests and review risks), with screenshots taken from the code actually running. Published as a Claude Slides artifact or as a standalone HTML deck. Use only when the user asks for a repo presentation, onboarding deck or PR walkthrough deck./explain-with-videoMake a narrated explainer video of a repository or a pull request, as an MP4 with captions on a shareable video page. Scenes reveal and highlight item by item while a synthetic voice explains them (macOS say by default; OpenAI or ElevenLabs when configured). Use only when the user asks for a narrated video, screencast or video explainer of a repository, a feature or a pull request.npx claudepluginhub marekkirejczyk/skills --plugin marekkirejczyk-skillsOther plugins' skills for the same job