agentleFS
gleicongleicon/devskills/.claude/skills/ds-dev-skill-bench/SKILL.md

ds-dev-skill-bench

Skill20 starsChanged 47 days agoMITView on GitHub

Bench the skills changed on this branch with devskills bench, then improve them from the results or produce PR evidence.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When invoked, run devskills bench against the skills under development and act on the results in one of two modes.

    line 7
  2. Distinctive:

    Always the working tree, never an installed binary, always the pr-md report:

    line 33
  3. Distinctive:

    After an approved apply, offer a re-bench.

    line 46
  4. Very specific:

    Default: write the report to a scratch path, display it, and print the path with a reminder to include it in the PR body.

    line 54
  5. Distinctive:

    Never draw a verdict from a report — no "pass", "improved", or cross-assistant comparison, in output, PR sections, or proposed prose.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

When invoked, run devskills bench against the skills under development and act on the results in one of two modes. This skill drives the bench; it never changes how the bench scores. Read docs/bench.md before the first run if you haven't this session.

Arguments

/ds-dev-skill-bench [skill…] [improve|report] [bench flags]

  • Skills — explicit names bench exactly those, skipping auto-detection.
  • Mode — improve or report. Free text may resolve it when unambiguous ("…for the PR" → report). Otherwise ask at pre-flight; never guess — a wrongly guessed mode wastes a paid run.
  • Assistants — bare assistant names (claude, opencode, codex) or free text ("all assistants") resolve to --harness; registry assistants only.
  • Bench flags — --runs, --harness, --scenario, --model, --timeout pass through verbatim. Don't add flags the user didn't give; the bench owns its defaults.

Targets

Without explicit skills, targets are the union of:

  • skills changed in git diff $(git merge-base main HEAD)..HEAD -- skills/
  • skills with uncommitted working-tree changes under skills/

Skill names come from the skills/<name>/ path segment. Evals-only changes (scenario touched, skill untouched) are mentioned but never auto-benched — with SKILL.md unchanged, old and new are identical and the comparison is a no-op; the user can still name the skill explicitly to validate a scenario. No targets and no arguments: say so and stop.

Pre-flight

Before the first bench invocation, run the bench command once without --login: it prints the login each assistant will bill, then refuses without starting a run. Echo the resolved targets with each one's scenario count and total run count, plus the assistant set the runs will use — the bench default when none was chosen, named explicitly so it never rides silently — and the logins bench printed, verbatim. Ask for the mode if it is still unresolved. One confirmation for the whole batch, not one per skill; the user can amend the assistant set or the login at this gate. Zero bench runs happen before this gate. After it, pass one --login <dir> for each login the user approved — never a login they didn't see.

Running the bench

Always the working tree, never an installed binary, always the pr-md report:

make bench SKILL=<skill> ARGS="--format pr-md --out <scratch>/<skill>.md --login <approved dir>… [passthrough flags]"

(equivalently go run . bench <skill> …). The report's hit tables plus embedded transcripts are the diagnosis input and the PR artifact — no second format is ever needed. Bench targets run sequentially.

Improve mode

  1. Bench each target; read the report.
  2. Diagnose each miss from the transcripts: what did the run actually say or do, and what in the skill's prose allowed it?
  3. Propose edits as a diff over skills/<skill>/SKILL.md with a per-miss rationale. Present it and wait for approval — apply nothing before a yes.
  4. After an approved apply, offer a re-bench. Never run it, or iterate further, unprompted.

Hard rule — the improver never grades its own homework: propose edits only to skills/<skill>/SKILL.md of the targeted skills. Never edit anything under evals/ — not expectations, not fixtures, not keyword lists. When a miss looks like a miscalibrated check (legitimate phrasing outside a narrow keyword list), report that with the transcript evidence and leave the eval edit to the user.

Zero-scenario targets: when a targeted skill has no scenarios under evals/, you may draft one (base/ + change/ + expectations.yaml, per docs/bench.md) — only before any bench run for that skill, and presented for approval like every other edit. Once at least one scenario exists, the hard rule covers it with no exception.

Report mode

Default: write the report to a scratch path, display it, and print the path with a reminder to include it in the PR body. Create nothing in the repo tree. On explicit request, write evals/reports/<skill>.md instead for the user to commit.

Then adopt this standing rule for the rest of the session: if a PR is opened, its body includes a ## Benchmark evidence section — embedding the full report (scratch variant) or referencing the committed file (committed variant). This satisfies CI's # Bench report: presence check.

Rules

  • Never draw a verdict from a report — no "pass", "improved", or cross-assistant comparison, in output, PR sections, or proposed prose. Numbers and transcripts speak; the author narrates, the reviewer judges.
  • This skill never commits or pushes; version control follows the session's git posture.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.