agentleFS
Alexander-TyagunovAlexander-Tyagunov/magician/skills/certify/SKILL.md

certify

Skill14 starsChanged 48 days agoMITView on GitHub

Verification loop; tests, types, lint, build, Playwright for UI; evidence before success claims. Use to verify a change is green.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Distinctive:

    Run the full verification suite and collect evidence of passing state.

    line 10
  2. Distinctive:

    Run these in order. Stop and fix before continuing if any fail.

    line 20
  3. Distinctive:

    Run the test command for the detected stack:

    line 23
  4. Very specific:

    Verify the build succeeds (if applicable), e.g.

    line 49
  5. Distinctive:

    After all checks pass, write a brief evidence summary:

    line 52
  6. Distinctive:

    If the project has a UI:

    line 62
  7. Very specific:

    Start the dev server (e.g.

    line 63

≈ “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

/certify — Verification Loop

Run the full verification suite and collect evidence of passing state.

This is tool evidence, not self-review. Every check below is a command whose exit code and output are the proof; nothing here asks the model to re-read its own work and reassure itself. Keep it that way — current models already self-correct, so layering "double-check", "re-verify", or a dedicated verify-my-own-output subagent on top of these commands burns tokens without changing the result. The gate is the clean pass, and it does not move. See lore/model-behavior.md.

Autonomy — approve the plan, then run

Once /certify is invoked and the stack is detected, the required checks run as one autonomous pass: Tests → Type Check → Lint → Build → the UI browser check are the run, not per-step decisions — the check commands, dev server, and read-only git need no confirmation question (optionally echo the detected check list once before running). The test, lint, build and type-check commands listed below are pre-approved exactly as written, except that npm test, pytest, mypy and cargo test also accept arguments (to run one test file, say); a fix mode such as --fix is not pre-approved; anything else (the dev server, a typecheck script, opening the browser) goes through Claude Code's normal permission prompt unless the session is in auto mode. Re-gate only when a failing check needs a real side effect: a file-edit fix (or any outward action) — that returns to the owner. Doctrine: lore/autonomy.md.

Required Checks (all must pass)

Run these in order. Stop and fix before continuing if any fail. This is a loop, not a checklist: if a check fails, fix it and re-run from the top — /certify only completes when a single clean pass runs end-to-end with no fixes in between.

1. Tests

Run the test command for the detected stack:

  • JavaScript/TypeScript: npm test
  • Python: pytest
  • Go: go test ./...
  • Rust: cargo test
  • Java: mvn test or gradle test

Required: all tests pass, no skipped tests without documented reason.

2. Type Check

  • TypeScript: the project's own script (npm run typecheck, if package.json defines one), else the locally installed compiler ./node_modules/.bin/tsc --noEmit
  • Python: mypy . (if configured)
  • Go: go vet ./...
  • Rust: cargo check

Required: zero type errors.

3. Lint

  • JavaScript/TypeScript: npm run lint
  • Python: ruff check .
  • Go: golangci-lint run
  • Rust: cargo clippy

Required: zero lint errors (warnings acceptable if pre-existing). Also hold the code to the project's documented conventions (lore/code-standards.md) — a style rule the reviewer or a code-review.md would flag (e.g. async/await vs .then, import order) is a fail even when the linter is silent about it.

4. Build

Verify the build succeeds (if applicable), e.g. npm run build.

5. Evidence Collection

After all checks pass, write a brief evidence summary:

✅ Tests: N passing, 0 failing
✅ Types: clean
✅ Lint: clean
✅ Build: success
✅ UI: golden path ok; screenshots: .workspace/local/screens/<feature>/v<n>/light-desktop.png, … (or "no UI")

For UI Projects

If the project has a UI:

  1. Start the dev server (e.g. npm run dev, yarn dev) with the Bash tool's background option, and read its output to find the local port (the dev script in package.json or the server's startup line; default to 3000 if neither says).
  2. Open the browser to that URL: open http://localhost:<port> on macOS, xdg-open http://localhost:<port> on Linux.
  3. Manually verify (or use Playwright if available):
    • Golden path works end-to-end
    • Edge cases handled gracefully
    • No console errors
    • If a /transmute parity contract exists (.workspace/shared/research/<feature>-parity.md), the behavioral golden fixtures pass (behavioral parity — the G1 gateway), not just the generic golden path
  4. Evidence screenshots. With Playwright available, capture the golden path per theme and per viewport into .workspace/local/screens/<feature>/v<n>/<theme>-<viewport>.png as conjure's capture.md describes, and list the paths in the evidence summary. When an approved /conjure mockup exists (.workspace/shared/designs/<date>-<feature>/screens/v<n>/), diff the new capture against the design's screenshots with node ${CLAUDE_PLUGIN_ROOT}/skills/conjure/scripts/screen-diff.cjs <design-screens> <build-screens> (prompts; nothing is installed) and treat an unexplained change as a failing check under a STRICT spec, a note under a REFERENCE one. Without Playwright, write "no screenshot (Playwright unavailable)" in the summary rather than skipping the line.

While you check, re-read the background dev server's output (and the browser console, via Playwright if available) so a runtime error that appears mid-check is not missed on a one-shot glance.

Obstacles

If this skill runs as a dispatched unit and hits something that blocks or degrades the work, do not wait for a human who is not there and do not silently ship a degraded result — return the Obstacles block from lore/obstacles.md (fields: STATUS, OBSTACLE, BLOCKER, SEVERITY, WORKAROUND, RECURRENCE, SCOPE, NEXT) to the caller alongside whatever you completed; interactively, say the same in prose.

Completion Signal

Before emitting this signal, apply the verification gate (lore/verification.md): no "passing / clean / done" claim without the actual command output read this run — a remembered result or "should pass" doesn't count. /certify is the runnable suite; that discipline is the reason it exists. The evidence summary must reflect output you read from this pass, not extrapolation.

"Certify complete. Evidence: [summary]. Ready for /scrutinize (code review) or /seal (ship)."

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.