Skip to content

Reviewing a skill or a repository

The usual request is "use dokimi to review this skill" or "review this repository's agent setup". This page is for whoever runs that request, a person or a coding agent. Run the steps in order: each one costs more than the step before it, and the first ones are free.

Setup, from dokimi/:

cd dokimi
pip install -e .                 # installs the `dokimi` command

The novelty and arms steps take --model and --provider; arms run also needs --judge-provider (it does not fall back to --provider for the judge); tasks run and repo take --model only. The provider is one of openai, anthropic, amazon-bedrock, google-vertex, openrouter, openai-codex or claude-cli (a logged-in Claude Code CLI, no key; see subscription backends), codex-cli or copilot-cli (a logged-in Codex or Copilot CLI); arms run --judge-provider takes google, an alias of google-vertex, but not openai-codex. Credentials are read from the environment: OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY, AWS_REGION with AWS_BEARER_TOKEN_BEDROCK for Bedrock, and Google application-default credentials (GOOGLE_APPLICATION_CREDENTIALS, with VERTEXAI_PROJECT and VERTEXAI_LOCATION) for Vertex. For an OpenAI-compatible server (vLLM, a gateway), use provider openai with OPENAI_API_BASE (or OPENAI_BASE_URL) set to its /v1 URL. A model name that litellm does not take for OpenAI's own goes to that server, such as glm-5.3 or meta-llama/Llama-3.1-8B (--judges openai/glm-5.3 in eval judge agreement); so does a bare claude-*, Bedrock or Vertex id, which needs its cloud's provider to reach that cloud. A name that starts with a litellm provider prefix (deepseek/, groq/, ollama/) keeps that provider's route: write it as openai/<name> to send it to the server. OPENAI_API_KEY must be set even when the server ignores it. litellm has no price for such a model, so cost is reported as unknown and novelty --max-usd stops the run after its first call.

The judge must be a different model from the one under measurement, because a model that grades its own answers inflates the scores. novelty, arms run and subjects run refuse a judged run whose default judge is the model under measurement: the command exits 2 with pass --judge-model as well, so name --judge --judge-model <other> --judge-provider <judge-provider> yourself. For arms run and subjects run, an explicit --judge-model equal to the answerer only warns on stderr. novelty does not: it refuses that judge unless you also pass --allow-self-judge.

A skill

Step Command Cost
1. Does it load? dokimi catalog check --root <catalog> --kind skills [--strict] free
2. Is it ever picked? dokimi skill routing skill:<dir> --against <catalog> --queries queries.json [--model …] free without --model
3. What will step 4 cost? dokimi skill novelty analyze --artifact skill:<dir> --tier triage --include-resources --dry-run free
4. What does it add? the same command without --dry-run, plus --model, --provider, --judge-model and --max-usd ~100 calls
5a. Do answers improve? dokimi arms run --product <p> --questions <set.json> --arm baseline,skill:<dir> --model <model> --provider <provider> --judge --judge-model <judge-model> --judge-provider <judge-provider> one answer and one grade per question and arm
5b. Does code improve? dokimi tasks run --tasks-root <checkout>/evaluation/harbor/tasks --all --harness docker-claude,docker-claude-skill:<dir> --baseline-harness docker-claude (coding-harnesses.md) one agent run per task and harness; needs Docker and Claude credentials (AWS_BEARER_TOKEN_BEDROCK, ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN), not the provider keys above; run with --dry-run first
  • Competitors are the other skills an agent sees next to this one when it picks a skill to load. For a catalog skill they are its siblings in the same catalog: --against <dir> takes every other skill the catalog lists: a root skills.yaml decides what it lists; without one, every SKILL.md under it counts except a template/ copy (vendored and VCS directories such as .git, node_modules, site-packages and virtualenvs are not walked). A byte-identical mirror that loads under the same skill name counts once, and a skill that sets disable-model-invocation is left out unless --include-disabled is passed (the full rule). And --competitors skill:<path> … names them one by one. Routing asks whether this skill wins the user requests meant for it. If you only have the one skill, skip step 2 and say so in the review: a number measured against invented competitors measures nothing.
  • Queries are 5–10 requests written the way a user would phrase them. Write them without looking at the skill's own headings.
  • Stop after triage (step 4) and report. The standard and study tiers cost 5–20 times more, so run them only when whoever asked agrees to the bill. Pass --max-usd to novelty steps: the run stops once it has spent that much (calls in flight can overshoot), writes no artifact when the cap trips (except skill routing --model, catalog routing --model, atoms and probe, which save the calls they made as a partial result), and stops at the first call to a model with no known price. Set the cap above the expected dollar spend: the triage example below was about $1.80. arms run and tasks run have no cap, so size them first: questions times arms, or tasks times harnesses. One measured example: triage on a 19k-token skill with a mid-size model was 103 calls, about $1.80; study on the same skill was 1,900 calls, about $14.50.
  • At triage with --include-resources, the 25-atom cap strides over the concatenated atom list of the files the budgets selected, in file order, so references/ can be probed, but a file with few atoms may get no probe: with one atom in each of 100 files, triage probes 25 of them. The run's cap warning says how many of the input's atoms it probed. Extraction still reads every file, so a large bundle costs more extraction calls than its 25 probes suggest. --tier standard (60 atoms) spreads more probes without promising each file one; add --all-atoms to the tier command to probe every extracted atom, and run --dry-run first, it costs more.
  • Step 5 needs evaluation content: a golden question set for 5a, executable tasks for 5b. arms run takes no tasks. That content lives outside this repository (external-content.md). Without it, the review covers selection and content, not outcomes, and should say so.

The full path with reading notes: skill-novelty-walkthrough.md.

A repository's agent setup

Step Command Cost
1. Do the paths, links and commands named in the guidance exist? dokimi repo scan <repo> free
1a. How much guidance starts in the prompt? dokimi repo budget <repo> --harness <name> free
2. Which guidance files does the harness actually load? dokimi repo reach <repo> --model <id> --dry-run, then a few --only <scenario> with --max-usd-per-cell; to see whether a Bash read of a nested file loads its directory's guidance (agents that read with cat), --scenarios bash (or --scenarios bash --only bash=<dir>) capped by --max-usd-per-cell (default $0.10) per scenario; needs the claude binary and ANTHROPIC_API_KEY, or AWS_BEARER_TOKEN_BEDROCK with AWS_REGION and CLAUDE_CODE_USE_BEDROCK
3. What does the root guidance add? dokimi skill novelty analyze --artifact text:<repo>/AGENTS.md --tier triage … ~100 calls
4. Does the guidance change task outcomes? Run dokimi eval check <repo> with the task manifest, then run dokimi repo run <repo> --manifest <path> --model <id> --name <name> --arm 'guidance:none,guidance:rev:<sha>' --agent-network host --max-usd-per-cell <usd> --max-usd <usd> with the guide revision substituted. Use guidance:raw to measure the guidance already present at each task base. needs the repository's own tasks, Docker, claude binary on PATH (or --bin); --max-usd-per-cell defaults to $2.00 per agent run with no batch cap unless you pass --max-usd

With no repo-eval.yaml in the repository, steps 1 and 2 check the default guidance globs (<repo>/**/AGENTS.md, <repo>/**/CLAUDE.md, <repo>/.github/copilot-instructions.md, <repo>/.github/instructions/*.md) and say so; step 1 also checks the .claude/rules files, @ imports and CLAUDE.local.md that Claude Code loads with them. To choose the files for scan, write a guidance-only manifest outside the tree and pass it with --manifest-file:

schema: repo_manifest.v1
id: my-repo
guidance:
  globs: ["**/AGENTS.md", "**/CLAUDE.md", ".github/copilot-instructions.md"]

A glob that matches no file is only a warning. To scan a file the globs leave out, add also_scan: ["CONTRIBUTING.md"] under guidance: also_scan names files the repository has and the gate must see, so a missing one makes the scan incomplete and repo scan --fail-on fail exits 1. If the repository uses REVIEW.md, include it in guidance.globs when the comparison should add or remove it, and point the reviewer to the file. Use also_scan to check the file without adding or removing it.

The id must be lowercase: start with a letter or digit, then use only letters, digits, ., _ and -. reach always adds the harness's own guidance file names (for example CLAUDE.md, CLAUDE.local.md or AGENTS.md).

A guidance-only manifest has no tasks, so step 4 refuses it.

How to read the results:

  • Scan: fail counts against the guidance and each one still needs a look. Harness tool names (run_in_background) and placeholders (<name>, caseNN_*) can show up as fail too. unresolved also needs a look: it can be a path the scan could not check, or one whose directory is gone. The scan checks that a path, identifier or command exists, not that what the guidance says about it is true: a count or a description of the code (public api where the code declares cdef api) can be stale while every claim is ok. A review that lists the scan under what it checked names what the scan covers.
  • Reach: a guidance file nobody loads cannot help anyone. Run reach before you judge the guidance's content. loaded comes from the harness itself, not from the harness's documentation, so a result that contradicts the docs is a finding. reach probes the tree as it is: with no CLAUDE.md in the tree, it does not show what one would turn off.
  • Step 4: without tasks there is no outcome measurement. The review should say so rather than infer one from steps 1–3. A batch of replayed reviews is read as Reading a replay batch says.

A review also says which of its points come from reading rather than from a command:

  • Past review comments: no command counts how many of them the guidance would have prevented. To count by hand, take the comments the author then addressed, and read the reply before counting a miss: a change the author meant, or declined with a reason, is none. Count each comment once, and check that a fix the review cites is still on the default branch. The count takes every addressed comment, not only issues raised in at least two PRs: that filter picks which comments become review rules (preparing-a-repository.md), while the count asks what the guidance would have caught. To measure it instead, replay the merged pull requests as dokimi:review_replay tasks and compare guidance:none with guidance:rev:<sha> of the guidance under review (the PR's head, or main) in step 4. Not guidance:raw: each task starts from its PR's base, so raw gives it the guidance of that time, another set per task, or none before the guidance was added.
  • A rule the review proposes: read every file it names; that the name exists is not enough (a workflow that calls another one holds no matrix of its own). Check it against the existing guidance: a nested AGENTS.md may keep old code on purpose. Put what applies to one directory in that directory's file.
  • A replacement line the review proposes for a stale claim: check it the way you checked the claim, every file and name it states, in every place it speaks for (all the workflows, not the first one found).

Reading a replay batch

A step 4 batch of dokimi:review_replay tasks is easy to over-read. Check these, in order, before writing what it showed (the fields: §4.5 and §9 of the contract).

  • Delivery first. Say what the cells started with before crediting any file. The first_prompt_tokens delta of repo compare is evidence, not proof: a mean over tasks and cells of a total, it names no file. A delta the size of the root file points at that file alone. Confirm with reach (step 2) on a cell's start commit (meta.json start_sha: the task's base with its arm applied; guidance:rev: writes each link as a plain file), with the run's manifest (the cell has no eval_dir), the profile meta.json harness names and a binary of its harness_version: dokimi repo reach <cell>/workspace@<start_sha> --manifest-file <manifest> --harness <harness> --bin <path> --model <id>. Reach on the checkout or on <repo>@<sha> (links kept, no base) checks that tree, not the cells'. Where a credit turns on it, read the cells' traces too. A nested AGENTS.md loads later if at all (reach's cwd=<dir>, read=<dir> show what loads it). process:guidance_read counts a read tool's reads and a Claude Code Bash call, Codex command or Copilot bash command that only prints files (§7's list: a bare cat, head, tail, nl or sed -n), not a pipe, grep, rg or ! cat, nor a relative read after the shell moved. A listed file may have been printed in part (head -n 1 AGENTS.md, sed -n 1p AGENTS.md), so guidance_read does not show that the whole file reached the agent: read agent.stdout for that; process:guidance_searched counts the guidance files a grep, rg or git grep (or Claude Code's Grep in content mode) named in a search that showed lines: a search of several files lists all of them when it showed a line of any (grep visible AGENTS.md docs/AGENTS.md with visible only in AGENTS.md lists both), so a listed file is not proof that it supplied a line; an agent that only searched a nested AGENTS.md has it there and not in guidance_read (a file printed and searched is in both), but a search of a directory or a glob names no file (grep -rn x ., rg x docs, a Grep call with no path or with a glob), so guidance_searched: [] is not "never searched": look in events.jsonl; process:unknown_reads counts those dropped relative reads, so guidance_read: [] with unknown_reads above 0 is not "never read". For the rest, look in events.jsonl or agent.stdout, or add a process_metrics counter. Name what was delivered as what was tested ("the root AGENTS.md", not "the guidance").
  • A leakage cut. A task is out of sample for a guidance revision only when no guidance commit in it could have been written from the task's review; a split at the first guidance commit's date is not that cut. repo compare prints a leak check line per guidance:rev: arm, with the number of replay tasks flagged by date (a guidance file that applies to the task's patch_files was committed after its public_at) and by name (a guidance commit's subject names its PR), unknown and clean; under it the tasks flagged by name with their commits, the unknown ones with the reason, and the clean ones, with the tasks it does not check, as --task options (--json, under data: leak, every id; contract §9). Log by hand where that record falls short (by name covers only the newest 200, an unknown task, a patch: arm, or a commit under a name or link target no guidance glob matches: the record follows no rename and only the links at <rev>): each guidance file on its own, through its renames, git log --follow -p --format='%h %cI %B' <rev> -- <path>, each link with the file it resolves to and each it pointed to before (git log -p -- <link>); flag a task whose PR a commit names (task.json source_pr) or whose public_at it follows. Flagged tasks can inflate a gain or mask a loss on the others, so read a gain, a null and a loss alike without them (repo compare --task on the rest).
  • Inconclusive, with the mde. A gate or score row whose interval includes 0 is inconclusive, not "no effect". Quote the interval and the note's mde, and say what the data rules out at both ends: a gain above the interval's upper end and a loss below its lower end. A smaller target needs about n_tasks * (mde / target)^2 tasks. Where the note says no effect can reach p < 0.05 here, say that. Where the interval includes 0 but p_holm is below 0.05, compare prints the disagreement note instead, with no mde: read p_holm there.
  • No suggestion rests on a descriptive p. A replay is decided on the score row, read at p_holm: the task's score is recall, over all its threads. Cost, turns, first_prompt_tokens, every --metric row (n_findings, n_severe, recall_addressed) and the process rows are descriptive: their p is uncorrected and outside Holm's family (the line under the comparison names those below 0.05). Report them as descriptions. A suggestion to change the guidance needs the score row at p_holm, also where its interval disagrees; one about a section or a rule needs an arm that removes or changes it (a guidance:rev: of that edit). Without one, say the suggestion comes from reading.
  • Read the hits before citing one. Replay credits a finding by place, not content: the same file, within window lines of a thread, with no judge. dokimi repo report <batch> --hits finds the pairs but cuts each comment and finding to 100 characters (200 with --json): read each pair you cite in full, the thread's comment in the file named by the task's gold field in task.json (default gold.json; or at the thread's url), then the finding in the cell's answer.txt. dokimi repo hits judge <batch> --judge PROVIDER/MODEL has a judge label every credited pair (same point, related or unrelated) and gives recall_judged (§9), and dokimi repo compare <batch> --baseline guidance:none --metric recall --metric judge:recall_judged puts its per-task delta next to recall's (a cell regraded since judging, or with an unjudged pair, is left out and counted, while recall's row keeps it: the two deltas cover the same cells only when no per-arm cells read line is printed). That figure is uncalibrated until a person labels a sample (repo hits sheet, then --labels) and uncalibrated_rows is empty, and repo compare cannot tell: quote it only next to a calibration. It narrows which pairs to read, it does not replace reading the pairs you cite. Cite only pairs that make the same point; say how many credited pairs you read and how many held. To attribute a hit to a guidance rule, check that the rule is in a file the cell started with or read (above): a finding's rule is the agent's own label. A hit cited without attribution (a guidance:none one) needs none.
  • Totals from command output. Copy counts, costs and turns from repo report --json (under data: total_cost_usd, a row's n, cost_usd, turns), repo compare --json (under data: n_tasks, delta, mde) and grade.json metrics (n_threads, n_findings, n_severe). A total no command prints, such as the gold threads (n_threads, once per task), is summed by a script over those files, not by hand. A range is the lowest and highest per-cell value (result.json agent.num_turns), not of row means.

The contract a repository codes against: repo-evaluation-contract.md.