Basic review

From ariadoss/superskills · View interactive version

Basic review is an AI agent skill from the GitHub repository ariadoss/superskills. Read-only correctness review of pending changes, needing no external install: correctness, security, reliability/performance and contract risk, each finding cited as file:line with why it is wrong and a fix. The fallback when gstack's /review is unavailable (not installed, or its install is broken);

How to use this skill

Skill file

/basic-review

A portable correctness review. It reads the diff and reports; it never edits,

stages or commits. A caller that fixes findings (/qa-full Step 3) applies the

fixes itself and re-runs this review to verify them.

The bar for what counts as a blocker is the superskills quality standard,

ENGINEERING_STANDARDS.md in the superskills install (a plugin install exposes

it at ${CLAUDE_PLUGIN_ROOT}/ENGINEERING_STANDARDS.md). It is not expected in

the project under review.

Scope

(as /qa-full passes it), or paths.

base plus anything uncommitted: git diff <base>...HEAD and git diff HEAD.

Find the base the way /qa-full Step 1 does (gh repo view default branch,

else origin/HEAD, else main/master).

Read each changed hunk with enough surrounding code (callers, the function it

sits in, the config it reads) to judge it. Verify claims against the actual

code rather than inferring from names.

Review

Review the pending changes in this repo. Flag issues a careful maintainer would

block on before merge, in roughly this order:

  1. Correctness: logic errors, broken invariants, missed edge cases,

off-by-one, races, lifetime/memory bugs, error paths that swallow failures.

  1. Security: injection, authn/authz mistakes, secret handling, unsafe

deserialization, unsafe defaults, TOCTOU.

  1. Reliability & performance: blocking the wrong thread, unbounded resource

use, accidental O(N²), retries without backoff, silent failure paths.

  1. Contract risk: behavior changes callers rely on, silently changed

defaults, broken backward compatibility, missing migrations.

Then apply checklist.md in this skill's directory (gstack's pre-landing

checklist): run its Pass 1 (CRITICAL) categories, then Pass 2, and honor its

Suppressions list. This skill is read-only, so ignore the checklist's

Fix-First / AUTO-FIXED instructions and its output format (use the Report format

below), and skip the items it assigns to gstack's specialist subagents or to

gstack-only markers.

For each finding cite file:line, explain why it is wrong (not what the code

does), and propose a concrete fix when one is obvious. Be calibrated: if a

finding is not high-confidence, say so or skip it.

What earns a finding

A candidate earns a finding only if every one of these holds:

maintainability, and it is discrete and actionable — one defect, one fix.

one-line aside labelled "pre-existing" — never a finding, never a blocker.

scripts does not need enterprise-grade validation.

argue, it is not a finding.

caller that is provably affected, named — or it is dropped.

If nothing clears this bar, "No findings worth fixing in <range>" is the

correct and complete review. An empty result beats an invented one.

Skip pure style, formatting, naming, and anything a linter or CI already

enforces.

Report

One entry per finding, most severe first:

[CRITICAL|HIGH|MEDIUM|LOW] (confidence: high|medium) file:line
Why it is wrong: ...
Fix: ...   (or "no obvious fix")

CRITICAL and HIGH are what a caller treats as blockers. End with one line naming

the range reviewed and the number of findings by severity.

If you find nothing worth fixing, say so plainly: "No findings worth fixing in

<range>."

Related

and applies fixes itself.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.