Skip to content
Back to skills

Veriloop

ASecurity

Review concrete recent code changes before commit, merge, or deployment: a diff, uncommitted work, branch, PR, or just-finished feature written by a user, coding agent, IDE assistant, subagent, or automated task. Trigger on review, check, verify, inspect, final pass, 검토, 리뷰, 확인, or 훑어보기, including requests focused only on regression, performance, metered-service cloud cost, readability, or repository conventions. Ground the review in a confirmed written specification; when none exists, route ...

  • 7 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 4, 2026
ai-agentsgoc#gitapidatabasesecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add dev-geon/veriloop --skill veriloop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Veriloop?

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

Security grade badge for Veriloop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dev-geon-veriloop/badge)](https://www.skillsdirectory.com/skills/dev-geon-veriloop)

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: veriloop
description: >
  Review concrete recent code changes before commit, merge, or deployment: a diff,
  uncommitted work, branch, PR, or just-finished feature written by a user, coding
  agent, IDE assistant, subagent, or automated task. Trigger on review, check, verify,
  inspect, final pass, 검토, 리뷰, 확인, or 훑어보기, including requests focused only on
  regression, performance, metered-service cloud cost, readability, or repository
  conventions. Ground the review in a confirmed written specification; when none
  exists, route to the bundled draft-spec skill before reviewing. Use when the user
  invokes $veriloop or requests Veriloop review. Do not use for
  reviewing documents or designs, applying existing findings, writing review-process
  guidance, or discussing review culture.
---

# Veriloop

Review a diff the way a careful senior engineer reviews a teammate's PR — except the
teammate is an AI agent, which changes what you should be suspicious of. Agents write
plausible-looking code fast, but they tend to make a specific family of mistakes:

- They change a function without checking every caller.
- They write queries that work but scan far more data than needed — which on metered
  cloud services (Cosmos DB RUs, DynamoDB RCUs, per-call APIs) is a *billing* bug, not
  just a performance one.
- They invent their own style instead of matching the repository's existing patterns.
- They over-engineer: extra abstraction layers, dead configuration, speculative options.

Your job is to catch these before the change lands. Work through the five passes below
in order. Report only what you have verified against the actual code — a review full of
speculative findings trains the reader to ignore it.

## Blind invocation contract

When `run-review-loop` invokes this skill in strict blind mode, treat the review as an
isolated evaluation:

- Accept only the strict-blind invocation marker, repository path, frozen review
  target, confirmed specification, scope bounds, risk focus, and the temporary workspace
  and result paths the controller issued.
- Do not accept or request the developer's reasoning, fixer explanation, prior review
  reports, findings ledger, acceptance-check results, or gate probes.
- Do not read `.agent-review/`, `REVIEW.md`, `PRD.md`, `DECISIONS.md`, worker artifacts
  or outcome histories, including through broad searches or displayed diffs. Use
  allowed paths. Do not reach them by any route: a literal path, a glob (`*`, `?`, `[…]`,
  `**`), brace expansion (`{a,b}`), or a recursive grep over the folder that holds them.
- Inspect the code and specification independently. Do not infer what another reviewer
  already checked.

This is context isolation, not a filesystem security boundary. If the invocation
contains forbidden history, stop and ask the controller for a clean brief instead of
continuing with contaminated context. Standalone reviews may use prior review state
only when the user explicitly asks for a follow-up review.

## Step 0 — Specification gate

A diff can only be judged against its intended behavior, and intent lives in a written
specification — a requirements/design document, an ADR, a ticket with concrete
acceptance detail, an API contract. Establish it before touching the code:

- Identify the spec this change implements: the document the user, branch, PR, or
  ticket references, the goal contract of a running `run-review-loop`, or a doc the user
  points you to when asked.
- Read it and carry it through every pass: the regression pass checks the change
  against what the spec promises, and the verdict answers "does this do what the spec
  says" — not merely "does this look clean".
- **If no specification exists, do not run the review.** A review without a spec can
  only judge taste, not correctness. Say that plainly and switch to the bundled
  `draft-spec` skill: it analyzes the codebase (house rules, conventions, workflow)
  and the change itself, then drafts the spec for the user to correct and confirm.
  Run the review only once the confirmed spec exists.

## Step 1 — Scope the diff

Determine exactly what changed. Resolve the target in this order (stop at the first that
applies):

1. The user pointed at something specific (a PR number, commit range, branch, or paths)
   — review that.
2. There are uncommitted changes (`git status`, `git diff HEAD`) — review the working
   tree against HEAD.
3. Otherwise review the current branch against its merge base with the default branch
   (`git merge-base HEAD <default-branch>`).

Collect the full diff and the list of changed files. Read every changed file *in full*,
not just the hunks — the bug is often in how the changed lines interact with the
unchanged ones around them. If not in a git repository, ask the user what to compare.

## Step 2 — Learn the repository's rules before judging

The baseline for "correct style" is this repository, not your general taste. Before the
review passes, spend a few minutes establishing what this codebase considers normal:

- Read `CLAUDE.md` / `AGENTS.md` / `CONTRIBUTING.md` if present — these are explicit
  house rules and violations of them outrank your own preferences.
- Check linter/formatter configs (`.editorconfig`, `eslint`/`ruff`/`.editorconfig`/
  analyzer settings) for enforced rules.
- Open 2–3 files that are *siblings* of the changed files (same directory or same layer)
  and note the established patterns: naming, error handling, layering, DI style, how
  queries are built, how tests are structured.

This matters because a public review skill knows nothing about any particular codebase —
the conventions pass (Step 3E) is only as good as the baseline you build here. It also
prevents the most annoying reviewer failure: flagging code for violating a rule the
repository doesn't actually have.

Outside strict blind mode, `.agent-review/baseline.md` may be used as a cached
convention baseline after spot-checking it against current code; see
`references/conventions.md`. Read prior run reports only when the user explicitly
requests a follow-up review. In strict blind mode, ignore the entire
`.agent-review/` directory.

## Step 3 — The five review passes

Run all five passes over the diff. Each pass has a reference file with detailed
checklists and known failure patterns — load it when the diff touches that territory
(e.g., read `references/cost.md` whenever the diff touches a database, an external API,
or telemetry). Skip a reference only when the pass is clearly irrelevant (e.g., no I/O
anywhere in the diff → skip cost).

### 3A. Regression — did this break something that used to work?

The highest-severity pass. For every changed or deleted public symbol (function, method,
endpoint, exported type, config key, DB field), find its callers and consumers with
search tools and confirm each still works. Details and checklist:
`references/regression.md`.

When the specification declares an invariant oracle, review the oracle as part of this
pass, because a weak oracle turns every later green result into a false assurance.
Judge it from the target by reading and rerunning it, not from reported results: check
that its reference does not share the code path under test in a way that would hide the
defect, that the generator reaches the dimensions named in the risk focus, that
normalization does not erase real differences, that the declared budget is what the
committed command runs, and that each strength switch in the target makes the oracle
fail when you turn it on.

### 3B. Performance — does this do more work than it needs to?

Look for I/O inside loops, N+1 query patterns, sync-over-async, unbounded reads,
missing pagination, and accidental algorithmic blowups. Details:
`references/performance.md`.

### 3C. Cost — does this spend money per call, per row, or per byte?

Performance bugs waste time; cost bugs waste money silently, and they scale with
traffic. Anything metered is in scope: request-unit databases (Cosmos DB, DynamoDB),
per-call APIs (LLMs, maps, SMS), egress, log/telemetry volume, storage operations.
Details and a Cosmos DB deep-dive: `references/cost.md`.

### 3D. Readability — will the next human understand this?

Naming, function size, nesting depth, dead code, comment quality, and the
agent-specific smells (narration comments, defensive try/catch wrapping, speculative
generality). Comments that narrate review history (finding identifiers, run numbers,
"fixed after review") are a Warning: state the requirement the code meets instead.
Details: `references/readability.md`.

### 3E. Conventions — does this look like it belongs in this repository?

Compare the diff against the baseline from Step 2: layering, naming, error handling,
DI, test placement. A convention violation is judged against *this repo's* rules, never
against generic best practice. Details: `references/conventions.md`. When the repo has
no precedent on a point and the diff is C#, fall back to the Microsoft baseline in
`references/csharp-conventions.md`.

## Step 4 — Verify before reporting

Before a finding goes in the report, re-check it against the code:

- For a regression claim: show the caller that breaks. If you cannot name a concrete
  caller, input, or scenario that fails, downgrade it or drop it.
- For a performance/cost claim: identify the loop, the query, or the call site and state
  what makes it expensive (e.g., "query filters on `status` but the container's
  partition key is `tenantId`, so this fans out to every partition").
- For a convention claim: name the sibling file or house rule it contradicts.

If tests exist and can be run cheaply, run the ones covering the changed files and
include the result. Mark each finding **Confirmed** (you traced the failure) or **Needs
verification** (plausible, but you could not fully trace it) — never present the second
kind as the first.

## Step 5 — Report

Write the report in Korean whatever language the conversation uses. Keep the verdict
and severity tokens (`Pass`, `Pass with warnings`, `Fail`, `Failed`, `Warning`,
`Confirmed`, `Needs verification`), code, identifiers, file paths, commands, and the
JSON block as they are. Use this structure:

```
## 리뷰: <short description of the change>

**판정**: Pass | Pass with warnings | Fail

<one-paragraph summary: what the change does and the overall assessment>

### 지적사항

#### [Failed] <title>             ← must be fixed before this lands: broken behavior,
                                    silent data corruption, unbounded cost growth,
                                    serious performance defect, written-rule violation,
                                    confirmed specification violation
<file>:<line> — evidence, why it fails, suggested fix, and a compact repair plan
covering the invariant, root cause, affected paths, implementation steps, verification
cases, and non-goals. (Confirmed / Needs verification)

#### [Warning] <title>            ← should be considered, does not block: readability,
                                    convention drift, missed cheap optimization
...

### 통과한 검사
<one line per pass that found nothing, e.g. "Cost: 이 diff 에 과금 호출 없음 — Pass">
```

Rules for the report:

- Two severities only. **Failed** = the change must not land as-is. **Warning** =
  worth fixing, but a human may reasonably accept it. Order Failed findings worst
  first (broken behavior and data corruption above cost, cost above rule violations).
- A Confirmed contradiction of a committed statement in the specification's Scope,
  Target behavior, or Constraints is **Failed**, whether or not an acceptance criterion
  names it; quote the statement in the evidence. An acceptance criterion checks a
  requirement, it does not limit it. This covers direct contradictions only: a Needs
  verification suspicion, behavior the specification leaves open, and readability or
  convention drift keep their usual severity.
- Verdict follows from the findings: any Failed → **Fail**; only Warnings →
  **Pass with warnings**; nothing → **Pass**.
- The heading text after `#### [Failed] ` or `#### [Warning] ` is the finding's title and
  must be identical, byte for byte, to the `title` in the `json veriloop-review` block, with
  no backticks or other markup inside it: fixers and the ledger correlate by that exact
  string.
- The "통과한 검사" (passed checks) section is not filler — it tells the reader which risks were
  actually ruled out, which is half the value of a review.
- Do not pad. Three verified findings beat ten speculative ones. An empty findings list
  with a confident "checked and clean" section is a perfectly good review.
- Suggest fixes but do not apply them unless the user asks. The deliverable of this
  skill is the review.
- In strict loop mode never write target files. When the controller issued a result
  path, write the report and JSON block there and end with the pointer object defined by
  `../../schemas/result-pointer.schema.json`; otherwise return the report and JSON to the
  controller. The controller owns persistence. For standalone review, persist the
  final report as `REVIEW.md` in the same directory as the confirmed
  spec (`IA.md`), including the fenced machine-readable JSON block; overwrite it on
  a re-review of the same work. If the existing `REVIEW.md` is a loop report (it
  contains a `json veriloop-report` block), never overwrite or edit it; write the
  standalone report beside it as `REVIEW-standalone.md` instead. The conversation
  report remains the source of truth.

### Machine-readable result

Make the machine-readable object conform to
`../../schemas/review-result.schema.json`. It is the contract that lets automation —
the `run-review-loop` and `apply-review-findings` skills, CI scripts — consume the
review without parsing prose.

For an interactive review, keep the prose report as the source of truth and end it
with the fenced JSON object below. In strict loop mode tag the fence
`json veriloop-review`. When the host supplies the schema as a native
structured-output constraint, or CI explicitly requests raw JSON, return only the
schema-conforming object with no fence or surrounding prose. Never make automation
extract JSON from prose.

```json
{
  "verdict": "pass | pass_with_warnings | fail",
  "findings": [
    {
      "severity": "failed | warning",
      "title": "same title as the prose finding",
      "file": "relative/path",
      "line": 0,
      "confidence": "confirmed | needs_verification",
      "fix_hint": "one-line suggested fix",
      "repair_plan": {
        "invariant": "the behavior that must remain true",
        "root_cause": "why the current code violates it",
        "affected_paths": ["relative/path.dart:Symbol"],
        "implementation_steps": ["Validate the command identity before accepting the response"],
        "verification_cases": ["Contradictory response remains outcomeUnknown"],
        "non_goals": ["Do not change the public command shape"]
      }
    }
  ]
}
```

Rules: `verdict` and `findings` must match the prose exactly when prose is present
(same count, same severities, same titles). A passing review has `"findings": []`;
`pass_with_warnings` contains warnings only; `fail` contains at least one Failed
finding. Every finding must include a schema-valid `repair_plan`; do not replace it
with an unbounded transcript or a generated patch. If native schema validation rejects
the result, correct the result instead of loosening the schema or inferring a verdict.

Files in this skill

  • SKILL.md11.9 KB
  • agents/openai.yaml207 B
  • references/conventions.md5 KB
  • references/cost.md6.1 KB
  • references/csharp-conventions.md7.2 KB
  • references/performance.md3.4 KB
  • references/readability.md3.6 KB
  • references/regression.md3.7 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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