Day 13: Teach your factory a new skill #15
Replies: 22 comments 1 reply
Day 13: ghostcheck learns an "option-value audit"The recurring check. ghostcheck shipped the same bug twice. The value after an install option was read as a package name: #26 for pip, #37 for npm/yarn/pnpm/bun. For example, The skill:
Worked example
Qodo reviewOn PR #40, Qodo's review found 2 real bugs in the skill itself:
I fixed both:
Settling those 2 options found 2 more real parser bugs, also fixed. Final state:
What I learned: the skill paid off on its first real run. It caught a fail-open that two rounds of manual review had missed. And Qodo reviewed the skill's own procedure, not just the code, which is how "0 fails" stopped meaning "passed" when nothing was tested. |
My skillProject: RuleProof. Recurring procedure and when it should activate: what Qodo's review of a pull request's head shows, before calling it reviewed or ready. SKILL.md link or full contents (plus any required small files): Agent used and skill directory: Amp, Required inputs/context and stop/request-input conditions: repository, pull request, the gate; it stops if My fresh-session runOne real task and code version/commit: pull request 87 itself, at How I confirmed this was a new session without the drafting conversation: a new Exact invocation and evidence that the agent loaded the skill: Actions/checks actually performed (transcript excerpt, commands or screenshots): collect, ask once, wait, collect, findings, checks; excerpt below. Expected result, actual result and saved output/artifact: expected a verdict line. Runs 1 to 3 ended What I refinedWhat the agent misunderstood, skipped or had to ask about: run 2 found step 6 pointed at Instruction changed, with before/after excerpt: before, "the head in Retry of the affected step and its output: run 3's last If no change was needed, what I checked to establish that: not applicable. My factory's verificationQodo review result/link and reviewed code version, or blocker: What I verified myself: the new wait filter finds the review comment on pull requests 33 and 40, which the old one missed. Complete or incomplete, and why: complete. Four fresh sessions ran the check end to end; pull request 87 isn't merged. If blocked, stopping point and missing input: not blocked. Run 3's commands, the review rounds, and the skill in fullRun 3, from its transcript, outputs shortened: Run 4, on the final It didn't ask Qodo again, because the marker was already on the head (step 3); the pull request still has four Qodo's reviews of the skill, each requested by that commit's run except the last, which I asked for:
Some I checked before fixing: run 2 hit the wrong-line step itself; 11 of the 89 copies of Qodo's review comment archived in
---
name: qodo-review-check
description: Use before calling a pull request in this repository reviewed, done or ready to merge, after pushing to it, or when a factory ticket stops at needs-human. Finds what Qodo's review of the pull request's current head shows, asks Qodo once if needed, waits for its comments to settle, archives them with ruleproof collect, and reports the state, the commit, the findings and the checks against the quality gate in AGENTS.md.
---
# Qodo review check
Qodo's comment can name a commit and say "no open findings" within seconds of a push, before any review of that commit has landed. This check says what the review of the head actually shows, from Qodo's own record, and never reads "no findings" as a pass on its own.
## Inputs
- The repository, `owner/name`. In this repository it's `zeyusuntt/ruleproof`.
- The pull request number.
- Project context: `AGENTS.md`, rules RP-1 and RP-2 and the `## Quality gate` section.
## Stop and ask for input when
- `gh auth status` fails, or `gh pr view` can't find the pull request. Say which.
- The pull request is merged or closed. Report its state and stop; don't ask Qodo.
- `ruleproof collect` exits 1 or 2. Report every line it printed and stop. Exit 1 is any failure, including a GitHub error, a write that failed or findings it couldn't read; exit 2 is bad input. Name findings as unreadable only when its output says so.
- The wait script exits anything but 0: 1 means Qodo's comments were still changing after 15 minutes, 2 means a GitHub request failed. Report `No review of the head: the wait didn't settle (exit <code>).` and stop. A collection taken then can be incomplete.
- The pull request's head moves during the check. Report both commits and stop.
- After asking once and waiting, Qodo's comment still doesn't name the head. Report `No review of the head: <state>.` with the state `collect` gives, and stop; don't ask again.
## Steps
Run every command from the repository root.
1. Read the head: `gh pr view <N> -R <repo> --json headRefOid,isDraft,state`. Write down the full head SHA, whether it's a draft, and its state.
2. Collect into a folder only you can read, because the archive holds the pull request's comments and their edit history:
`umask 077; mkdir -p "$HOME/.cache/ruleproof/qodo-review-check"; uv run ruleproof collect --repo <repo> --pr <N> --out "$HOME/.cache/ruleproof/qodo-review-check"`
Keep everything it prints and its exit code. Its first line reads `<repo>#<N>: <state>; reviewed <12 characters>, head <12 characters>; ...`, and its second `evidence: <folder>`. Its exit codes: 0 `current`; 3 `absent`, `pending` or `unconfirmed`; 4 `stale`; 1 a failure; 2 bad input. Read the state from the first line, not from the exit code alone.
3. Decide from that line. Compare commits by their first 12 characters.
- `current`: go to step 6.
- `unconfirmed`, with the reviewed commit equal to the head: don't ask again; the marker is already on the head. Go to step 6.
- `stale`, `pending` or `absent`: go to step 4.
4. Ask Qodo once: `gh pr comment <N> -R <repo> --body "/agentic_review"`, and note the time in UTC.
5. Wait: `bash .agents/skills/qodo-review-check/wait-for-review.sh <repo> <N>`. It watches Qodo's code review comment and its inline comments, and exits 0 once Qodo's code review comment exists and both have been unchanged for 5 minutes. If it exits anything but 0, stop as above. Then run step 2 again and go on to step 6 with that collection; don't go back to step 3. If it still reads `stale`, `pending` or `absent`, stop as above.
6. Check the head hasn't moved: the 12 characters after `head` on the first line of the last `collect` must be the first 12 characters of the head SHA from step 1. If they aren't, stop as above.
7. Read the checks: `gh pr checks <N> -R <repo>`. Every check must have passed. Pending, failing or none at all doesn't pass.
8. Report, in this order:
- the head SHA, and the commit Qodo's comment names as reviewed;
- the state `collect` printed (`current`, `unconfirmed`, `stale`, `pending` or `absent`) and its exit code;
- each open finding: its type, severity, title, the first 8 characters of its finding ID, and its path, read from `observation.json` in the collection folder `collect` printed;
- which findings block under the quality gate: every open finding whose severity isn't exactly `Low` blocks, including High, Medium, a missing severity and any value you don't recognise; Low ones are listed for the owner and don't block;
- each check and its result.
9. End with exactly one of these lines:
- `Review shown, nothing blocking, checks pass.` Only when the state is `current` on the head, no blocking finding is open, and every check passed.
- `Review shown; blocked by <count> findings.` When the state is `current` on the head and a blocking finding is open.
- `Review shown, nothing blocking, but checks don't pass: <which>.` When the state is `current`, nothing blocking is open, and a check is pending, failing or missing.
- `Not confirmed: Qodo's comment names the head with no new finding ID, so a person decides.` When the state is `unconfirmed`.
- `No review of the head: <state>.` When the state is `stale`, `pending` or `absent`.
## Evidence to save
- Everything `collect` printed each time, with its exit code.
- The collection folder it printed, which holds `raw.json` and `observation.json`. It's under `$HOME/.cache/ruleproof/qodo-review-check`, readable only by you.
- What the wait script printed, and the time `/agentic_review` was asked, if it was.
- What `gh pr checks` printed.
## Never
- Merge, mark ready, dismiss or resolve findings, or edit the pull request.
- Take the reviewed commit from the branch head, `git rev-parse HEAD` or anything but what `collect` reads from Qodo's comment (RP-1).
- Report `unconfirmed`, `stale`, `pending` or `absent` as a pass, or read Qodo's "no open findings" text as a review (RP-2).
- Save the collection under `/tmp` or inside the repository.
#!/usr/bin/env bash
# Wait for Qodo's comments on a pull request to stop changing: its code review comment and its inline comments
# unchanged for 5 minutes, once the code review comment exists. Exit 0 when settled, 1 after 15 minutes still changing, 2 when gh fails.
# Usage: wait-for-review.sh <owner/name> <pull request number>
set -u
REPO=${1:?usage: wait-for-review.sh <owner/name> <pull request number>}
PR=${2:?usage: wait-for-review.sh <owner/name> <pull request number>}
QODO='map(select(.user.login=="qodo-code-review[bot]"))|map(.id|tostring) + map(.updated_at)|join(",")'
# Only Qodo's code review comment counts as the review; its pull request summary is a separate comment.
# Its body can start with a newline, so leading whitespace is allowed.
REVIEW='map(select(.user.login=="qodo-code-review[bot]" and (.body|test("^\\s*<h3>Code Review by Qodo"))))|map(.id|tostring) + map(.updated_at)|join(",")'
last=""
quiet=0
for _ in $(seq 1 90); do
summary=$(gh api "repos/$REPO/issues/$PR/comments" --paginate --jq "$REVIEW") || {
echo "gh failed reading pull request $PR's comments" >&2
exit 2
}
inline=$(gh api "repos/$REPO/pulls/$PR/comments" --paginate --jq "$QODO") || {
echo "gh failed reading pull request $PR's inline comments" >&2
exit 2
}
now="summary=$summary inline=$inline"
if [ -n "$summary" ] && [ "$now" = "$last" ]; then
quiet=$((quiet + 1))
else
quiet=0
last=$now
fi
if [ "$quiet" -ge 30 ]; then
echo "settled: Qodo's comments on pull request $PR unchanged for 5 minutes"
exit 0
fi
sleep 10
done
echo "not settled: Qodo's comments on pull request $PR were still changing after 15 minutes"
exit 1Assistance and third-party materialAI coding agents did the work from my brief: Claude Code wrote the skill and this post and read the runs, Amp ran the skill in each fresh session, and Codex read a draft of this post cold. Qodo did its own reviews. I chose the project and set the direction. No collaborators. |
My skillProject: Agent Factory. Recurring procedure and when it should activate: after any factory run, or before sharing evidence — prove the evidence log is complete: every pipeline stage left a trace in SKILL.md link or full contents (plus any required small files): Agent used and skill directory: Agent Factory coding agent (Muse); Required inputs/context and stop/request-input conditions: repo root (defaults to the working directory); My fresh-session runOne real task and code version/commit: run the check on the live log at commit How I confirmed this was a new session without the drafting conversation: a new subagent session, given only the repo path + skill path + task, no drafting conversation. Exact invocation and evidence that the agent loaded the skill: read Actions/checks actually performed: the checker read all 9 JSON files in Expected result, actual result and saved output/artifact: expected PASS. Actual first run: What I refinedWhat the agent misunderstood, skipped or had to ask about: (1) checker v1 demanded Instruction changed, with before/after excerpt: (1) before: " Retry of the affected step and its output: re-ran the checker on real history after the schema fix: If no change was needed, what I checked to establish that: not applicable — changes were needed (above). My factory's verificationQodo review result: PR #3 — opelphantom96/agent-factory#3 ("Day 13: evidence-log-check skill (T-006)"), branch
What I verified myself: 34/34 tests pass ( Complete or incomplete, and why: complete for Day 13 — the skill is written, the fresh-session trial ran (FAIL then PASS), and the Qodo review was received. The 5 findings above are real and acknowledged; remediation is planned as a follow-up ticket, not a blocker for sharing the Day 13 result (same as Day 11, where findings were shared with a keep + adjustment decision). If blocked, stopping point and missing input: not blocked. PR is open, Ready to merge, 2/2 checks OK, no conflicts. The PR is intentionally not merged — the factory shares the Day 13 result first, as on Days 11/12.
|
My skillMellon runs the JavaScript we ship in I gave Codex one file, My fresh-session runI opened a new T3 Code thread with no drafting history. Its first message asked Codex to “use $verify-action-bundle on Mellon issue #52 / PR #58.” I supplied the source commit and final PR head. Codex found the skill in its project catalog and read it with For each commit, it moved the committed bundle aside, installed both lockfiles with
What I refinedThe first run covered both cases. I kept the instructions as written and skipped a retry. The stale file existed on both commits, so a file-existence check would have passed twice. Comparing the contents caught it. My factory's verificationComplete. I checked the transcripts, exit codes and both saved diffs. Qodo separately reviewed the skill on base |
My skillProject: HN Radar (https://github.com/researchsite/hn-radar), a CLI that reads the monthly "Who is hiring?" thread into jobs.json. Recurring procedure and when it should activate: verify a change to the parser or to SKILL.md link or full contents (plus any required small files): https://github.com/researchsite/hn-radar/tree/main/.claude/skills/verify-jobs-parse (SKILL.md and compare_jobs.py, PR researchsite/hn-radar#48) Agent used and skill directory: Claude Code, Required inputs/context and stop/request-input conditions: inputs are a label, a baseline jobs file, the ids that must be excluded, the ids that must stay, and the ticket. The agent must stop and ask when the baseline is missing or looks like another month's thread, when both id lists are empty although the ticket drops or keeps posts, when the tests or the fetch fail, when My fresh-session runOne real task and code version/commit: check #45 (candidate profiles must not be returned as jobs) on the live November 2026 thread. Run 1 on commit 25fbf80, run 2 on b430676, run 3 (final version) on 182d09a. How I confirmed this was a new session without the drafting conversation: each run was a new Claude Code window opened on a separate git worktree ( Exact invocation and evidence that the agent loaded the skill: Actions/checks actually performed (transcript excerpt, commands or screenshots): pytest, a hash of Expected result, actual result and saved output/artifact: expected 9 candidate profiles gone and 4 look-alike real jobs kept. Actual: "Wrote 234 jobs, Skipped 9 candidate profiles", all 9 ids absent, all 4 kept, What I refinedWhat the agent misunderstood, skipped or had to ask about: run 1 stopped to ask me about 4 ids that were not in my inputs (3 posts the thread had lost since my baseline, 1 new post). It was right to ask, but the skill gave it no way to tell a post the thread lost from a post the code dropped. I checked by hand: the 3 ids are no longer in the live thread (234 jobs + 9 skipped = 243 comments). In run 2 the agent also noticed that step 4 printed the fetch table of post text although the skill says not to. Instruction changed, with before/after excerpt: Before (stop rule): "the comparison lists removed or added ids that are not in your inputs and you cannot explain them from the ticket. The thread keeps changing, so a few are normal: list them and let the user decide." After: "the compare output says Before (step 4): After (step 4): the output goes to Retry of the affected step and its output: run 2 on the refined skill passed without any question to me: gone from the thread If no change was needed, what I checked to establish that: not applicable, two changes were needed. My factory's verificationQodo review result/link and reviewed code version, or blocker: PR researchsite/hn-radar#48. First review (run 2041985, head 6ddee04): 8 findings, 4 High and 4 Medium, all valid. They were ways the skill could report a false PASS: a wrong cache file chosen by modification time, a label such as What I verified myself: the pass criteria by ids, not by file existence; the three missing ids by checking the live thread; the real run files replayed through the final script (still PASS); the first review saved before any change ( Complete or incomplete, and why: complete for the skill and its run. Not covered: it compares post ids only, not fields such as role or stack; one thread and one task, so the 0.5 baseline-overlap limit is untested on other months; Claude Code only. If blocked, stopping point and missing input: not blocked. Run 1 stopped for missing inputs by design, and after I supplied them it ran to completion. |
My skillProject: tracenotes, release notes where every line links to its commit. PR #30 (T-032). Recurring procedure and when it should activate: release-notes-audit. For one git range, render the notes the way a user would, then prove from saved files that every commit is accounted for exactly once and every entry is that commit's entry. It runs after any change to parsing, grouping, rendering or our SKILL.md link or full contents (plus any required small files):
Agent used and skill directory: Claude Code, project skill in Required inputs/context and stop/request-input conditions:
My fresh-session runOne real task and code version/commit: audit this repository's whole history up to the T-009 merge, How I confirmed this was a new session without the drafting conversation: I opened a new terminal, ran Exact invocation and evidence that the agent loaded the skill: Actions/checks actually performed (transcript excerpt, commands or screenshots): all six steps in order. It resolved the range (76), created Expected result, actual result and saved output/artifact: expected five PASS lines. Actual: Saved: What I refinedWhat the agent misunderstood, skipped or had to ask about: nothing in the procedure. The problem was in the skill itself: step 3 ran Instruction changed, with before/after excerpt:
Retry of the affected step and its output: If no change was needed, what I checked to establish that: n/a. My factory's verificationQodo review result/link and reviewed code version, or blocker: four deep local reviews before the first commit, then six PR review rounds on PR 30, through
Qodo never marked a PR 30 review complete: five extended runs, all What I verified myself: the transcripts against the SKILL, step by step; the fresh run's outputs against my own dry run, byte by byte; Complete or incomplete, and why: the skill run is complete: fresh session, real task, refined and retried. The factory gate is not met by the letter: our local gate stopped after three fix rounds, and the PR never got a complete review at its head. I merged as a recorded exception, with the reasons in the journal. A second skill, If blocked, stopping point and missing input: not blocked. |
|
Here’s the Day 13 solution video. It walks through capturing a recurring check in a SKILL.md and shows how Qodo can check PR changes against relevant skill instructions. Share your skill and evidence from using it on one real task in a fresh coding-agent session below. day-13-solution-vertical-v5.mp4 |
🧰 Day 13: Teach your factory a new skill🛠️ My skill:
|
My skillProject: ---
name: offline-and-dom-integrity
description: Verify that catwalk-retro-game stays 100% offline, safely handles localStorage, and keeps all DOM element IDs in game.js synchronized with index.html. Use after editing index.html, game.js, or styles.css before committing.
---
# Offline & DOM Integrity Check
## Context & Inputs
- **Project:** `catwalk-retro-game` (zero-dependency offline HTML5 Canvas + Vanilla JS game).
- **Target files:** `index.html`, `game.js`, `styles.css` in the repository root.
## Stop Conditions (Ask Human Before Continuing)
Stop immediately and ask the user for clarification if:
1. Any of `index.html`, `game.js`, or `styles.css` is missing from the expected root path.
2. An external `http://` or `https://` URL is found in game code and it is unclear whether it was intentionally requested.
3. A dynamic ID lookup (`getElementById` with a variable/template string) cannot be statically verified against `index.html`.
## Ordered Verification Steps
1. **Syntax & Diff Check:**
Run `node --check game.js` and `git diff --check` to ensure valid JS syntax and clean whitespace.
2. **Offline Independence Check:**
Search `index.html`, `game.js`, and `styles.css` for `http://`, `https://`, `fetch(`, or `XMLHttpRequest` (e.g., via `grep -rnE "https?://|fetch\(|XMLHttpRequest" index.html game.js styles.css`). Verify zero external runtime/asset dependencies exist.
3. **Storage Safety Check:**
Search `game.js` for `localStorage` (`grep -rn "localStorage" game.js`) and inspect surrounding lines to confirm every read/write is wrapped in a `try { ... } catch` block.
4. **DOM ID Synchronization Check:**
Extract all static `document.getElementById('...')` / `document.getElementById("...")` calls from `game.js` and verify each ID exists in `index.html` (`grep -rn 'id="' index.html`).
## Required Evidence Output
Do not report "all checks passed" without proof. Output a structured report containing:
- Exact commands executed and their raw stdout/exit status.
- A table mapping each `getElementById` call in `game.js` to its matching line in `index.html`.
- Exact line numbers for any `localStorage` usage and its `try/catch` guard.
Agent used and skill directory: Local coding agent configured to discover project skills from
My fresh-session runOne real task and code version/commit: Verified the changes delivered in IrronRoman19/catwalk-retro-game#44 (commit
What I refinedWhat the agent misunderstood, skipped or had to ask about: None — the agent followed all four ordered steps, checked every stop condition, and produced the exact structured evidence required by My factory's verificationQodo review result/link and reviewed code version, or blocker:
|
My skillProject: A builder where you make a pfp for your coding agent out of art layers Recurring procedure and when it should activate: Before a new character goes live, the agent copies its layers under its public name, marks clear glasses see-through, draws every combination and checks the working name is gone. Until today I handed it the same brief every time SKILL.md link or full contents (plus any required small files): https://github.com/CamDuncalfe/agent-pfp/blob/0f00d77/.claude/skills/character-go-live-check/SKILL.md plus stage.mjs next to it Agent used and skill directory: Claude Code, .claude/skills/character-go-live-check/ Required inputs/context and stop/request-input conditions: The export folder, public id and tile name. It stops and asks when one is missing, the character is already live or not coming soon, it can't tell if glasses are see-through, or a command can't run My fresh-session runOne real task and code version/commit: The duck, next in line to go live. Run 1 on bb055ac, run 2 on 2dbd9fb, then three more, the last on 8fc21db How I confirmed this was a new session without the drafting conversation: A new claude -p session in its own worktree at that commit, no resume Exact invocation and evidence that the agent loaded the skill: "Use the character-go-live-check skill to check the duck before it goes live" plus the folder, id and name. Its first tool call every time is Skill "character-go-live-check"
Actions/checks actually performed (transcript excerpt, commands or screenshots): All 8 steps, from checking the duck isn't live yet to the render check. Excerpts in the Evidence block Expected result, actual result and saved output/artifact: Expected "Ready to go live: duck" with every combination passing. Run 1's render check failed 270 of 810 on a missing layer. His clothes and eyes both have an option called default, the script kept one, so his white tee never got copied. Each run saves a REPORT.md What I refinedWhat the agent misunderstood, skipped or had to ask about: It found the cause and told me, but it also copied the tee in by hand and called him ready. I don't want a check that fixes its own copy and then passes! Instruction changed, with before/after excerpt: Before, "A file it left out is not a failure, but name each one in the report". After, "A file the manifest does name means the script went wrong: stop" and "Never copy, delete or edit a file in $STAGE by hand". I also fixed the script to tell options apart by group and id, with a test Retry of the affected step and its output: Run 2, new session: "Copied 21 layers", "Combinations checked: all 810, 0 failed", "Ready to go live: duck" If no change was needed, what I checked to establish that: A change was needed My factory's verificationQodo review result/link and reviewed code version, or blocker: PR #74 CamDuncalfe/agent-pfp#74, reviewed on every push. The first review put "Repeated option names lose their layers" on top, the same bug the duck hit! Another caught that the skill's render check only sampled past 2,000 combinations. Now it passes the full count, 810 for the duck. Qodo found 22 things across five reviews, all fixed, and its last review on 8fc21db found nothing new. Merged as 0f00d77 What I verified myself: 401 tests and the render check pass, and git status was clean after every run Complete or incomplete, and why: Complete. The duck goes live once I've looked him over If blocked, stopping point and missing input: Not blocked Try the builder: https://camduncalfe.github.io/agent-pfp/ AssistanceA coding agent (Claude Code) writes the code from my tickets and Qodo reviews it. The art starts in Midjourney and I cut it into layers EvidencePR #74 CamDuncalfe/agent-pfp#74 state merged · head Qodo review run 2034346 on
CI on |
My skillA change to a command-line flag in pasokh can change the answer a Persian learner sees. I wrote My fresh-session runI started a fresh Codex session with the issue-5 snapshot, the saved ticket and an output directory. It had neither the drafting conversation nor expected findings. My invocation was “Invoke
The saved What I refinedI kept the instructions as written. The agent checked documentation in the README and used the existing tests to check exact help text, which the probe only samples. It covered the ticket without clarification or a corrective retry. My factory's verificationThe fresh-session check is complete. Qodo review of the new skill and script is outstanding. The November 6 Qodo report covers the underlying CLI fix at Codex assisted with authoring, and a separate fresh Codex session executed the audit. The pasokh project is MIT-licensed. SKILL.md---
name: pasokh-cli-contract
description: Verify pasokh CLI help, literal flag operands, output streams and exit statuses when changing argument handling or reviewing a CLI change.
---
# Verify the CLI contract
Inputs: a pasokh checkout, the task's acceptance criteria, its source commit or diff, and a new evidence output path. Run in audit-only mode; preserve the checkout.
1. Read AGENTS.md, package.json, src/cli.ts, test/cli.test.ts and the task. Identify which revision implements the task. Stop if the source, task criteria or supported Node runtime is missing. A branch name alone is insufficient evidence of the revision.
2. From the checkout root run `python3 -B .agents/skills/pasokh-cli-contract/scripts/probe.py OUTPUT.json`, replacing OUTPUT.json with a new writable evidence path. This invokes Node directly so npm's output does not contaminate CLI stdout. It checks standalone help, literal flag operands, JSON mode, ordinary exact/accepted/wrong answers and usage failures. Every case must match its expected exit status, stdout and stderr constraints. A timeout or missing executable is an incomplete run.
3. Compare the probe coverage to the task criteria. Record criteria not covered by these probes; run the existing relevant tests for them. Run `npm test` and `npm run typecheck` from package.json and save commands, exit codes and output separately. A missing dependency is a blocker; do not install packages or call external services without authorization.
4. Inspect the JSON receipt, including actual streams for every case. Report failed expectations as failures, not acceptable variation. If a case expectation conflicts with the task, show both sources and stop for a decision.
5. Report the revision, task, commands, pass/fail counts, uncovered criteria and evidence paths. These are local checks only. Qodo review, freshness of a remote PR, merging and submission are separate requirements. Stop short of claiming any of those from these results.
Preserve existing evidence: the script refuses to overwrite its output. Source-hygiene rules apply to any later code changes; this procedure performs no fixes.scripts/probe.py"""Audit the real CLI; no network, package install, agent or Git mutation."""
import datetime
import hashlib
import json
from pathlib import Path
import subprocess
import sys
def main():
if len(sys.argv) != 2:
raise SystemExit('usage: probe.py NEW_OUTPUT.json')
output = Path(sys.argv[1])
cli = Path('src/cli.ts')
if not cli.is_file():
raise SystemExit('Run from the pasokh checkout root.')
# Exclusive creation protects earlier receipts, including when a run fails.
with output.open('x') as receipt:
cases = [
('standalone help', ['--help'], 0, 'help'),
('literal help', ['--', '--help', '--help'], 0, 'exact'),
('help as ordinary operand', ['--help', '--help'], 0, 'exact'),
('literal json', ['--', '--json', '--json'], 0, 'exact'),
('json with literal json', ['--json', '--', '--json', '--json'], 0, 'json'),
('ordinary exact', ['کتاب', 'کتاب'], 0, 'exact'),
('keyboard variant', ['\u0643تاب', 'کتاب'], 0, 'accepted'),
('different word', ['کباب', 'کتاب'], 1, 'wrong'),
('missing operands', [], 2, 'usage'),
('missing key', ['کتاب'], 2, 'usage'),
('meaningless key', ['کتاب', '+'], 2, 'invalid'),
]
results = []
error = None
try:
for label, args, code, kind in cases:
cmd = ['node', '--disable-warning=ExperimentalWarning', str(cli), *args]
run = subprocess.run(cmd, capture_output=True, text=True, timeout=15)
ok = run.returncode == code
if kind in ('usage', 'invalid'):
ok &= run.stdout == '' and bool(run.stderr.strip())
if kind == 'usage':
ok &= run.stderr.startswith('usage: pasokh')
else:
ok &= run.stderr == ''
if kind == 'help':
ok &= run.stdout.startswith('usage: pasokh') and '--help' in run.stdout and 'Exit status:' in run.stdout
elif kind == 'json':
try:
value = json.loads(run.stdout)
ok &= value['verdict'] == 'exact' and value['matched'] == '--json' and value['notes'] == []
except (ValueError, KeyError, TypeError):
ok = False
else:
ok &= run.stdout.startswith(f'verdict: {kind}\n')
if kind == 'accepted':
ok &= 'forgiven:' in run.stdout
results.append({'case': label, 'command': cmd, 'expected_exit': code,
'expected_kind': kind, 'exit': run.returncode,
'stdout': run.stdout, 'stderr': run.stderr, 'passed': bool(ok)})
except (OSError, subprocess.TimeoutExpired) as exc:
error = str(exc)
files = {str(p): hashlib.sha256(p.read_bytes()).hexdigest() for p in [cli, Path('src/check.ts')]}
passed = sum(r['passed'] for r in results)
report = {'utc': datetime.datetime.now(datetime.timezone.utc).isoformat(),
'cwd': str(Path.cwd()), 'source_sha256': files, 'cases': results,
'passed': passed, 'expected_cases': len(cases), 'error': error,
'complete': error is None and passed == len(cases)}
json.dump(report, receipt, ensure_ascii=False, indent=2)
receipt.write('\n')
print(f'{passed}/{len(cases)} passed; {output}')
return 0 if report['complete'] else 1
if __name__ == '__main__':
sys.exit(main()) |
ChallengeDay 13 (Nov 18), Teach your factory a new skill. ProjectProject name: SwarmWatch What I completedSkill: swarmwatch-verify (.claude/skills/swarmwatch-verify/SKILL.md). EvidenceWorked example, run this morning in a fresh shell from the repo root:
What I learned / what is blockedThe manual verification loop is now a repeatable skill. What is blocked is the Qodo side: Toolbox install pending. Assistance and third-party material
|
My skillProject: Quotaline. Recurring procedure and when it should activate: Before accepting a change to the native Claude quota display, verify the existing base-owned synthetic CLI checks against an immutable candidate. Replay locally in the pinned Docker container or check the actual hosted job’s evidence. SKILL.md link and required files: Merged replay SKILL.md. The skill reuses Agent and skill directory: Codex (Luna for the local attempts, Terra for hosted verification), Required inputs and stopping conditions: Exact public base and head with trusted provenance, the base checker, and an empty evidence directory. Local replay requires the pinned container. Hosted verification requires the corresponding GitHub job metadata and complete verdict log. Stop inconclusive on unavailable tools, unverified inputs or missing checker output. My fresh-session runReal task and version: Verify the hosted result for rehearsal PR #13 head New session: Each attempt started a fresh Codex coding-agent job. Its user prompt contained the skill invocation and public inputs, with no drafting conversation or expected result. Exact invocation and discovery: Actions actually performed: A fresh Codex/Terra reviewer loaded the project skill. It ran Expected result, actual result and saved output: I expected the published rehearsal to show one failure for the dropped zero. The agent verified seven passes, one failure, one verdict per case, and checker exit 1. Its evidence comparison exited 0. The raw verdict preserves the 41% week and its fixed reset. What I refinedThe first agent verified the archive commit and content tree IDs, then reported metadata differences when it compared Git-copied files to the tar archives. It could not use Docker or establish a nested network namespace and correctly stopped before replaying. I changed the skill to verify the archives and extract two empty scratch trees. The second local attempt verified the archives and checker bytes, then stopped when the process-isolation probe could not start Python. Both local attempts remained incomplete. I added the hosted-evidence path so a fresh agent could use an existing GitHub job and exact commit inputs without running the candidate in its own session. The new session completed the comparison above. During PR review, a finding showed that a Docker startup error could look like a test failure. The final skill classifies startup or uncertain failures as inconclusive and requires Docker for local execution. Another fresh Codex session repeated the hosted comparison with that exact final skill and obtained the same seven passes, one failure and checker exit 1. My factory’s verificationQodo review and exact version: Qodo’s PR review identifies What I verified and completion: I verified the skill format, GitHub job identity, exact commit provenance and final case comparison independently. The fresh agent completed hosted-evidence verification. It did not start a new replay or execute the candidate locally. |
My skillProject: NGO Factory. My fresh-session runOne real task and code version/commit: the gate check of PR 40 (head What I refinedWhat the agent misunderstood, skipped or had to ask about: run 1 chained My factory's verificationQodo review result/link and reviewed code version, or blocker: PR 42, first review of Written with Claude Code (Claude Sonnet 5.5) acting as developer; my product owner decided what is posted. |
My skillProject: Ghostline, a change-centric control room for PR evidence. https://github.com/felixgeelhaar/ghostline Recurring procedure and when it should activate: checking that the evidence covers a PR's exact current head before anyone calls gate ③ passed or asks me to merge. This means Qodo's latest code review, every required check, and being up to date with SKILL.md link or full contents (plus any required small files): PR #90
Agent used and skill directory: Claude Code (Opus 5.5) in fresh Required inputs/context and stop/request-input conditions:
My fresh-session runOne real task and code version/commit: is open PR #63 (head How I confirmed this was a new session without the drafting conversation:
Exact invocation and evidence that the agent loaded the skill: From the transcript: the agent replied "there is only one, Actions/checks actually performed (transcript excerpt, commands or screenshots):
Expected result, actual result and saved output/artifact:
What I refinedWhat the agent misunderstood, skipped or had to ask about: the agent followed the procedure correctly, but the procedure broke. Instruction changed, with before/after excerpt:
Retry of the affected step and its output: run 2, a new session on commit If no change was needed, what I checked to establish that: not applicable; a change was needed. My factory's verificationQodo review result/link and reviewed code version, or blocker:
What I verified myself:
Complete or incomplete, and why: COMPLETE. The skill was written in the Agent Skills format, discovered and explicitly invoked in fresh sessions on a real task, refined after a genuine failure, and re-run successfully. The check's output was compared against GitHub's own data. If blocked, stopping point and missing input: not blocked. Codex and OpenCode were unavailable (usage limit and expired API key), so the fresh sessions used Claude Code. Assistance and third-party materialBuilt with Claude Code (Anthropic) as the coding agent, under my direction. I made the decisions on findings and merges. Qodo provided code review. There is no third-party code beyond the project's existing dependencies. |
My skillProject: Software Factory, autonomous Claude Code loops that work a GitHub backlog overnight. https://github.com/felipearos/software-factory Recurring procedure and when it should activate: "Will a loop pick up issue #N, and if not, why?" I walk an agent through this every few days, after filing a ticket or when a ticket sits untouched. A loop takes work only through the frontier ( SKILL.md link: https://github.com/felipearos/software-factory/blob/main/.claude/skills/ticket-pickup-check/SKILL.md (no extra files; every command calls scripts already in the repo: Agent used and skill directory: Claude Code, project skill at Required inputs/context and stop/request-input conditions:
My fresh-session runOne real task and code version/commit: issue #1, "Remote dashboard: live output tail". It was moved from the private archive and nobody had looked at whether the loops would take it. Skill at commit How I confirmed this was a new session without the drafting conversation: a new Exact invocation and evidence that the agent loaded the skill:
Actions/checks actually performed (from the stream-json transcript): Expected result, actual result and saved output/artifact: I expected "never picked: no That second finding is a real bug. On GitHub the frontier reads every What I refinedWhat the agent misunderstood, skipped or had to ask about: it tried Instruction changed, with before/after excerpt:
Retry of the affected step and its output: a new After Qodo's review (below) I ran a third fresh session, My factory's verificationQodo review result/link and reviewed code version: Qodo reviewed
Fixed in commit 3557b8f0. Qodo's re-review of What I verified myself: each Qodo claim against the code (e.g. Complete or incomplete, and why: complete. The skill was discovered and invoked in fresh sessions on two real tickets, and refined once from a run and once from Qodo's review. It also produced a real bug report (#22), which I'm fixing by hand as my Day 6/8 task. |
My skillProject: LamedDB (small TypeScript DB with an HTTP API) My fresh-session runOne real task and code version/commit: issue #18, where a malformed request URL returns 500 instead of 401. Fixed in PR #21 and checked on 93443e0.
What I refinedWhat the agent misunderstood, skipped or had to ask about: it didn't misread anything, it asked. Stopping on My factory's verificationQodo review result/link and reviewed code version, or blocker: the first review of 93443e0 had 6 findings. One was deliberate ( |
My skillProject: Lichtprobe. Skill: My independent session runAn independent Codex verification task invoked
The author’s first attempt compared long test labels unmodified. The procedure now compares the exact names after the collector’s 80-character limit and validation, with a collision check. The independent run had zero collisions. Its approval-path check was model-only. Existing collector code was unchanged by the skill; the earlier Qodo review is supporting context, separate from the fresh run. |
|
If you haven't seen my other posts, I'm building Commet, a gamified code-mapper that turns a git repo into a star system Fixing a small issue so the drone is always visible 👾Click a drone low down on the screen, and its panel used to open on top of it which would hide the drone (#189). Now the panel docks where the drone stays in view. For today's skill I wanted a really unique idea, and something I'd actually use: I've been filming every GIF for these discussion posts and before/after images manually this whole time and have been wanting a way for Qodo to see the before and after too.
My skillProject: Commet, PR #199 (the skill), run on the fix in PR #197. Recurring procedure and when it should activate: filming a view change before and after, once a commit changes what the view draws and before its PR. I'd do this request manually every time so agents would have to write a one off capture script, and a Mac restart once wiped them from SKILL.md link or full contents (plus any required small files): name: visual-proof
description: Shows a view change before and after. ... Use after a commit that changes what the view draws ...Agent used and skill directory: Claude Code, Required inputs/context and stop/request-input conditions: a base, a head (or My fresh-session runOne real task and code version/commit: #189's fix: base How I confirmed this was a new session without the drafting conversation: each run was a brand-new Claude Code process started from the terminal, which knows nothing about the chat where I wrote the skill. I didn't use Exact invocation and evidence that the agent loaded the skill:
Actions/checks actually performed (transcript excerpt, commands or screenshots): run 2, 11 turns, 283 s: Expected result, actual result and saved output/artifact: hidden before, fully visible after, in 4 of the 6 shots as you can see in the image below:
The skill films each version twice, and all 282 frames came out identical between the two takes, so the result is reproducible. I put the text summary that it wrote into PR #197's description.
What I refinedWhat the agent misunderstood, skipped or had to ask about: ✏️ Run 1 got the right numbers but cut corners. The skill said to check every before/after image, and it only looked at 3 of the 6. It grepped parts of the run's record instead of reading it, never opened the summary, and ran the command in a way that would have hidden a failed run. Instruction changed, with before/after excerpt:
Retry of the affected step and its output: ✅ Run 2 was a new session with the same command. This time it ran the command properly, read all three files in full and described every shot, e.g. "8 s after the click. Before, 0 of 5220 are visible. After, all 5220 are." If no change was needed, what I checked to establish that: a change was needed (above). My factory's verificationQodo review result/link and reviewed code version, or blocker: Qodo reviewed the skill's PR (#199) four times before it came back clean. The last review was of
What I verified myself: CI passed on both PRs, including the skill's 76 unit tests and 5 render tests. Qodo's review of the ##189 fix itself (PR ##197) found nothing. Complete or incomplete, and why: Complete. Qodo's last review of the final commit has nothing open, and the skill is merged. After Qodo's fixes I ran it in a fresh session once more, on the merged version (run 3): same numbers, now inside the sandbox. None of the runs hit one of the skill's stop-and-ask cases and worked autonomously and correctly. If blocked, stopping point and missing input: not blocked. |
ChallengeDay 13 (2026-11-18): Teach your factory a new skill. Project
What I completed
Evidence
|
My skillProject: FaultForge. We plant known bugs, let Qodo review them, and score every review against a secret answer key. The procedure: "is this finding real?" A review finding is a claim: "lines 29 to 33 are wrong." Until now we checked those claims the way everyone does: read the code, nod, and hope. So today's skill, %%{init: {"flowchart": {"htmlLabels": false}, "themeVariables": {"fontFamily": "arial"}}}%%
flowchart LR
F["Qodo finding: lines 29-33 are wrong"] --> A["Agent with the skill"]
A --> B["Proof: a new test and a fix to lines 29-33 only"]
B --> V["Verifier: clean copy, sandbox"]
V -->|"all 4 checks pass"| C(["Certificate"])
V -->|"any check fails"| N(["No certificate"])
The agent has to hand over two things:
Then the agent's opinion goes in the bin. A small, boring verifier (
This is proof-carrying code, an old idea from programming-language research, applied to code review. The agent can be as clever as it likes. The checker stays dumb and strict, and only the checker decides. SKILL.md and files: Agent and folder: Claude Code, Inputs and stop conditions: the finding text, the file, the lines and a folder for the result. The skill stops and asks when any of these is missing, when the lines don't exist, or when it's pointed at a real checkout instead of a throwaway copy. My fresh-session runA skill that always says "yes, proven!" is useless. So instead of one happy demo, we gave it an exam with known answers. We took three real Qodo findings from our own PRs (#334 and #312) that were later fixed. Each one went into two fresh sessions, blind:
The pass mark was set before anything ran: at least 2 of 3 bugs proven and zero fake proofs on fixed code. To make sure we couldn't move the goalposts afterwards, we committed a fingerprint (sha256) of the answer key first. Fresh, and no peeking: each trial is a brand-new headless Did it really use the skill? The prompt is just What it looks like (a real bug in our glob expansion): Same finding, on the fixed commit: The scoreboard:
Not one fake proof. What I refinedRun 1 went sideways. The agent couldn't run a single test. That was my fault, twice over:
So the agent did what we've all done: it read the code, felt confident, and gave a verdict anyway. It was even the right verdict. But a guess isn't a proof. The fix to the skill:
Retry: runs 2 and 3, all in new sessions. Scoreboard above. My factory's verificationQodo was the toughest reviewer in the room. Three rounds on PR #442: 13 findings, then 1, then 0. All fixed, none dismissed, quality gate met. Its best catches were ways to cheat the verifier:
That first one led to a real sandbox. Every test now runs under Node's permission model: it can read only its own copy of the code and can't start other programs. We proved it with a deliberately sneaky test that reads a file outside its copy. Before the sandbox it got a certificate; now it's refused. Plot twist: my first sandbox attempt used worker threads and looked fine, until a probe from inside a test showed it running completely free. The version that ships runs each test in its own locked-down process. What I checked myself: every transcript against the skill, the certificates' run logs, and each proof test run again against Qodo's real fix. Two honest surprises:
Complete? Yes: fresh sessions, real findings, refined, retried, gate met. Still on the list: network access for tests (the sandbox covers files and processes, not the network yet), and more than three pairs. Three pairs show a direction, not a rate. |
Polson: a skill for "is this review real?"Polson is an AI co-founder that ships one verified improvement every night ("no slop" backwards). The procedure I kept re-explainingAt least five times in two days I asked my coding agent the same thing: is this PR's Qodo review real, complete, and on the current head, and does the PR meet my quality gate? It's subtle, because Qodo can skip a commit while its comment still says "no issues found", or report The skill
Qodo reviewed the skill PR itself and found a High: a truncated Qodo record could still pass as GATE MET. Fixed before merge, and tested on four sample records. The fresh-session testA new Claude Code session, with none of the conversation that wrote the skill:
What it caught that I didn't ask aboutThe same check, run by my unattended workflow on that PR, read Review vs skill: Qodo's review tells me the code is sound. The skill tells me whether the review itself can be trusted. Different evidence, and I need both. Built with Claude Code; reviewed by Qodo. |








Uh oh!
There was an error while loading. Please reload this page.
Day 13: Teach your factory a new skill
Wednesday, November 18, 2026
You might have a check you keep explaining to your coding agent. Let's say your project exports a CSV. You need to generate it with known data, check the headers, and compare its contents with the source. Today, turn one procedure like that into a skill your factory can use again.
Yesterday's ticket or spec described what your factory should build. A skill describes how to carry out a particular job. Your Day 2 AGENTS.md rules still apply across the project; today's SKILL.md gives the agent a procedure to use when that job comes up.
Choose one useful check from your project. An API response, a CSV export, keyboard access to a form, or a migration check can work. Use tools you already have and keep the task small enough to try today. You don't need a new MCP server, infrastructure, or an extensive test suite.
Today's challenge
Pick one procedure. Choose a recurring engineering or verification check and one real task to try it on. Write down when the check is needed and what result you expect. For the CSV example, choose a real export change and the sample data you'll compare against.
Write the skill. Create a named skill directory with a SKILL.md, using the format and location your coding agent supports. Follow the Agent Skills format, including YAML frontmatter with a name matching the directory and a description that says when to use it. In the body, specify the required inputs and project context, ordered steps and checks, expected results, and evidence to save. Say when the agent must stop and request input, such as a missing data fixture or an unknown export format. Keep paths and commands explicit, and include any small references or existing scripts it needs so the procedure can travel with the skill.
Use it in a fresh session. Start a new coding-agent session in your project without the conversation that helped write the skill. Make sure the agent discovers the skill, then explicitly invoke it using your agent's supported method on the one real task. Inspect the actions and check output against the procedure. Fix unclear instructions and retry the affected step; if nothing needed changing, explain what you checked. Creating the file, listing it, or summarizing its instructions isn't evidence that the check ran.
Check the result
For the CSV example, the worked evidence could include the command or action used to export, the generated file, and a comparison with the expected headers and source rows. If the agent checked only that a file existed, refine the skill to require that comparison and try the check again.
Keep Qodo review in your factory's usual verification process and record its result for any code changes. That review and the skill's check give you different evidence. A review result alone doesn't show that your coding agent carried out the procedure.
Show what happened
Reply below with your SKILL.md and any small files it needs, the real task and invocation from the fresh session, and the actual check output. Explain what the agent misunderstood, how you refined the skill, and what happened when you retried. Include your Qodo review result or blocker. If execution stopped for missing input, show the stopping point and what was needed; mark the run incomplete.
Reply using this template:
All reactions