Skip to content
Back to skills

Check

ASecurity

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

  • 16 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
developmentjavascripttypescriptpythonrustgojavabashnode

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add Alexander-Tyagunov/magician --skill check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexander-tyagunov-check/badge)](https://www.skillsdirectory.com/skills/alexander-tyagunov-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check
description: Verification loop; tests, types, lint, build, Playwright for UI; evidence before success claims. Use to verify a change is green.
effort: high
allowed-tools: Read, Grep, Glob, Bash(ugrep *), Bash(rg *), Bash(grep *), Bash(npm test *), Bash(npm run lint), Bash(npm run build), Bash(pytest *), Bash(mypy *), Bash(ruff check .), Bash(go test ./...), Bash(go vet ./...), Bash(golangci-lint run), Bash(cargo test *), Bash(cargo check), Bash(cargo clippy), Bash(mvn test), Bash(gradle test), Bash(evidence check *), Bash(evidence record *), Bash(ctx signal verify-cmd *), Bash(ctx learn line)
argument-hint: "[--force]"
---

# /check — Verification Loop

> **Bundled command:** if `ctx` is not found, run it as `${CLAUDE_PLUGIN_ROOT}/tools/ctx`, or skip it.

> **Bundled command:** if `evidence` is not found, run it as `${CLAUDE_PLUGIN_ROOT}/tools/evidence`, or run every check.

**This is tool evidence, not self-review.** Each check is a command whose exit code and output are the proof. Do not add a "double-check" step or a subagent that re-reads the work: it costs tokens and changes nothing ([lore/model-behavior.md](../../lore/model-behavior.md)).

## Autonomy

Gates: none. Everything else runs without asking.

The check commands below are pre-approved as written; `npm test`, `pytest`, `mypy` and `cargo test` also accept arguments. A fix mode such as `--fix`, the dev server and the browser opener go through Claude Code's normal permission prompt outside auto mode ([lore/autonomy.md](../../lore/autonomy.md)).

## Reuse: one run per commit

Before each check kind (`tests`, `types`, `lint`, `build`, `ui`) run `evidence check --kind <kind>`.
- **Exit 0:** the kind passed on this exact code. Do not run it again. Say `tests: fresh for this commit (ran <time>, <cmd>)`.
- **Exit 1:** run the check, then `evidence record --kind <kind> --cmd "<exact command>" --exit <code> --summary "<counts>"`. Record a failed run too: it never counts. Then `ctx signal verify-cmd <the command>`.

Rerun every kind on `--force`, for a High-risk ship, after a dependency or environment change, or when the user asks: the record is this session's claim and does not see those ([lore/verification.md](../../lore/verification.md)).

## Required Checks (all must pass)

Run these in order. This is a **loop, not a checklist**: when a check fails because of the change under verification, fix it and start again from the top: a fix changes the tree, so every kind runs again. /check completes only when every kind is green for the same code. A failure that predates the change, or a fix that needs a decision, is reported, not fixed: say which check and why, and end there.

### 1. Tests
- JavaScript/TypeScript: `npm test`
- Python: `pytest`
- Go: `go test ./...`
- Rust: `cargo test`
- Java: `mvn test` or `gradle test`

Required: all tests pass; a skipped test has a 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`

### 3. Lint
- JavaScript/TypeScript: `npm run lint`
- Python: `ruff check .`
- Go: `golangci-lint run`
- Rust: `cargo clippy`

Required: no lint errors (pre-existing warnings are fine). Also hold the code to the project's **documented conventions** ([lore/code-standards.md](../../lore/code-standards.md)): a style rule a reviewer would flag is a fail even when the linter is silent.

### 4. Build
The build succeeds, when there is one: `npm run build`.

### 5. Evidence Collection
After all checks pass, write the evidence summary, with `reused` on a check not run again:
```
Tests: N passing, 0 failing (`npm test`)
Types: clean (`npm run typecheck`), reused, ran <time>
Lint: clean (`npm run lint`)
Build: success (`npm run build`)
UI: golden path ok; screenshots: <paths> | not touched by this change | not verified in a browser (…)
```

## For UI Projects
Run this section only when the change touches UI: a component, page, view, style or template file, or a route. A change with no UI file skips it, also in a UI project: write `UI: not touched by this change` and start no dev server and no browser.
1. Start the dev server (e.g. `npm run dev`) with the Bash tool's background option, and read its output for the local port (else 3000).
2. With Playwright, open `http://localhost:<port>` and verify:
   - [ ] Golden path works end-to-end, edge cases are handled, no console errors
   - [ ] If a `/migrate` parity contract exists (`.workspace/shared/research/<feature>-parity.md`), the **behavioral golden fixtures pass**
3. **Evidence screenshots** (Playwright). Capture the golden path per theme and viewport into `.workspace/local/screens/<feature>/v<n>/<theme>-<viewport>.png` ([capture.md](../spec/references/capture.md)) and list the paths. When an approved `/spec` mockup exists, diff the new capture against the design's screenshots with `node ${CLAUDE_PLUGIN_ROOT}/skills/spec/scripts/screen-diff.cjs <design-screens> <build-screens>` (prompts; nothing is installed). The mockup is the implementation target: an unexplained change fails the check; a deviation in the spec's `**Deviations:**` line is a note.
4. **Without Playwright there is no browser check.** Request each changed route from the dev server (the call prompts), note the status and read the dev server's output for errors. Report `UI: not verified in a browser (Playwright unavailable); <route> returned <status>, server log clean`. Never report "golden path ok" from this.

## Obstacles

Dispatched and blocked or degraded: do not wait, and do not ship the degraded result in silence. Return the Obstacles block from [lore/obstacles.md](../../lore/obstacles.md) (fields: STATUS, OBSTACLE, BLOCKER, SEVERITY, WORKAROUND, RECURRENCE, SCOPE, NEXT) with what you completed. Interactively, say it in prose.

## Completion Signal

Evidence comes before any success claim ([lore/verification.md](../../lore/verification.md)). Each summary line rests on command output read in this run, or on an `evidence check` row for this exact code, marked `reused`. A remembered result or "should pass" does not count.

"Check complete. Evidence: <the summary above>." Or, when a check still fails: "Check failed: <check>: <reason>."

The signal is the evidence and nothing else. A parent skill continues from it.

In a top-level interactive run, run `ctx learn line` last and append the line it prints, unchanged.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.