agentleFS
junho5400junho5400/cramcode/.claude/skills/test/SKILL.md

test

Skill1 starsChanged 4 months agoMITView on GitHub

Run a cramcode self-test — scaffold an attempt file, the user solves it in their own editor, Claude judges per-KC like an interviewer and logs verdict evidence. Use after /teach, for cold review, or when the user wants to attempt any problem.

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-context-isolation, agentica-infrastructure and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 154 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow PROTOCOL.md § "Test protocol" and § "Judge rubric".

    line 8
  2. Very specific:

    Run python3 scripts/scaffold.py <slug> --with-ref (add --lang js|java|cpp if the user prefers.

    line 18
  3. Very specific:

    Do NOT write solution code or hints in the attempt file itself (the brute force lives only in the _ref_ file).

    line 25
  4. Distinctive:

    Read the attempt file; run it if it's Python.

    line 43
  5. Very specific:

    Write evidence to memory/.staging/evidence.json (type: "test", user_approach, user_code (the file contents), hints_used, approach_first), …

    line 52
  6. Very specific:

    If this was the 3rd+ test since the last reflection, suggest /reflect.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 154 edited versions of this file we could read. “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

/test — the user does the work

Follow PROTOCOL.md § "Test protocol" and § "Judge rubric". Compressed here:

Pick the problem. Priority: (1) the problem the user named — any curriculum problem, a topic ("quiz me on graphs" → weakest-KC test problem there), or an outside problem (custom); (2) the pair of the last /teach; (3) the recommender's pick in review mode. If a pair's test problem was already used, pick another curriculum problem covering the same KCs; only improvise a variant (custom) if none exists.

Set up the attempt file — code never goes in chat:

  1. Run python3 scripts/scaffold.py <slug> --with-ref (add --lang js|java|cpp if the user prefers; ask once and remember via profile).
  2. Author the checks per PROTOCOL.md § "Authoring checks": stated examples as case(...), edge cases from the checklist, brute-force oracle + generator in the _ref_ file, stress(...) last. Then machine-verify: run the checks against the reference and fix any expectation the reference disputes — the user never receives unexecuted expected values. Do NOT write solution code or hints in the attempt file itself (the brute force lives only in the _ref_ file).
  3. Offer both ways to work, user's pick (remember it):
    • Workbench (GUI): python3 scripts/workbench.py — browser editor with a Run button over the attempt file (run it in the background so chat stays free).
    • Their own editor: open the file, run python3 <path> themselves. Either way: code there, run as often as they like, then say "done" (or "stuck") here.

Before they code: require the approach in words (iron rule 4) and probe complexity. If they want to skip straight to coding, remind them once that interviews grade the talking, then let them proceed and note it.

While they work: stay quiet. Hints only when asked — count every hint. "Stuck" gets a laddered hint (question → nudge → direction), never the answer.

When they say done:

  1. Read the attempt file; run it if it's Python. Test results inform but do not decide verdicts — passing asserts with the wrong idea is still partial.
  2. Judge each target KC by its signals from the topic file: demonstrated / partial / failed, every verdict citing what they said or wrote (file lines or their words).
  3. Walk through their code: what earned each verdict, the clean solution where they diverged, complexity. If they failed on something spatial, a short stepper visual of the correct algorithm running on THEIR failing case (per PROTOCOL.md § Visuals) is the strongest possible debrief.
  4. Write evidence to memory/.staging/evidence.json (type: "test", user_approach, user_code (the file contents), hints_used, approach_first), run python3 scripts/log_episode.py, show the deltas.
  5. If this was the 3rd+ test since the last reflection, suggest /reflect.

On a phone? Skip the attempt file entirely and use PROTOCOL.md § "Phone-mode testing": approach in words, then fill-in-the-blank on the KC-bearing lines or "you drive, I type" dictation. Log with "mode": "mobile". For a full bite-sized session, /commute is the better shape.

Mis-graded something? python3 scripts/retract.py <episode-id> undoes it exactly — offer it if the user disputes a verdict and they're right.

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.