Skip to content
Skills Library
Programming · Review & audit

spectre-code_review

/spectre-code_review

Run final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only.

Repository
spectre ↗
Licence
MIT
Last repository change
02.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Run final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only.

Original author description

Run final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only.

How it works

  1. Purpose
  2. Inputs
  3. Working Set
  4. Outputs + DONE
  5. Method / guardrails
  6. Handoff
  7. Escalate-If
Original SKILL.md headings · 55 lines, 604 words
SKILL.md preview
---
name: "spectre-code_review"
description: "Run final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only."
user-invocable: true
---

# code_review

## Purpose

Try to prove the work wrong, unsafe, unreachable, or unable to meet requirements. Accept correctness only if evidence survives adversarial scrutiny; never defend the implementation.

## Inputs

- `$ARGUMENTS`: feature/root or descendant artifact, focus, diff/base range, source-plan path, immutable `BASE_SHA`/`HEAD_SHA`/`DIFF_SHA256` tuple, and `--orchestrated`.
- Scope: completed changes, changed files, direct dependencies/importers, tests, and requirements/ACs. Source requirements from matching `tasks.json` parents, else an explicit source-plan path before `plan.md`, then request+diff. `execute.md` only locates tasks.

## Working Set

- Reuse a managed `FEATURE_ROOT` only when explicit/current-thread evidence ties it to this work (physical directory wins; never branch/recency/lifecycle/scans); distinct work ignores ambient roots. Otherwise, including on collision, standalone MUST first load and follow `@skill-spectre:spectre-feature-root` through DONE; orchestrated calls escalate. Keep writes beneath it and pass it unchanged.
- Repair stale feature/root metadata in artifacts this review touches.
- `REVIEW_REPORT={FEATURE_ROOT}/reviews/comprehensive_code_review.md`; replace it for the current candidate. Git history preserves prior decisions without accumulating sibling reports.
- Late-bind diff/base and tuple, changed files, requirement/AC paths and task ids, dependencies/importers, tests, and exclusions. Reviewers read diffs/task graphs.

## Outputs + DONE

`REVIEW_REPORT` follows `references/adversarial-review.md`: bounded scope and tuple; verdict; evidence-backed findings; coverage; per-requirement delivery; scope/dead-path audits; actions; route metadata.

DONE when schema validation passes; scope/tuple are unchanged; every requirement/AC has one evidence-backed status; audit and route metadata exist; findings satisfy identity/evidence rules; and only the report changed.

## Method / guardrails

1. **Dispatch the fixed review prompt.** Read `references/adversarial-review.md` and send it verbatim to one fresh reviewer, followed only by structured context: feature/root and `REVIEW_REPORT`; focus; immutable diff/base tuple; requirement/AC source paths and ids; changed files, direct dependencies/importers, and tests; exclusions; route metadata and fallback reason. Reviewers read the supplied diffs/task graphs; the primary does not paraphrase or augment the template.
2. **Use one external-first review route from repo root; do not probe alternatives.** Codex primary runs:
   `claude -p --model claude-opus-5-5 --effort high --permission-mode dontAsk --allowedTools "Read,Grep,Glob,LS,Bash(mkdir -p *),Bash(git diff *),Bash(git show *),Bash(git status *),Bash(git rev-parse *),Write" --output-format text "$REVIEW_PROMPT"`
   Claude primary runs:
   `codex exec -C "$PWD" -m gpt-6-sol -c 'model_reasoning_effort="high"' -s workspace-write "$REVIEW_PROMPT" < /dev/null`
   Record route metadata as `Claude Code|claude-opus-5-5|high|Codex -> Claude Code` or `Codex|gpt-6-sol|high|Claude Code -> Codex`. Keep a 20-minute launcher-side poll limit; do not pass duration guidance to the reviewer. Quiet output is not failure. The reviewer writes only `REVIEW_REPORT`. Primary semantic self-review is prohibited.
3. **Fallback once.** Missing/non-zero opposing CLI, report-write failure, or unusable review permits one clean-context `@spectre:reviewer` with the same verbatim template and structured context. It returns the report in-thread for unchanged persistence. Record `native-subagent|runtime-native|inherited|native-fallback` plus reason. A usable review ends semantic review.
4. **Verify deterministically.** A candidate tuple requires all fields and canonical hash recomputation with `git diff --binary --full-index --no-ext-diff --no-color --no-renames` before dispatch and after report creation; mismatch makes the report stale. Validate the template's required sections, scope, exhaustive delivery coverage, and metadata. The primary may mechanically normalize report-only counts, paths, citations, metadata, sections/tables, and severity enums from existing reviewer semantics, but may not originate or materially reinterpret findings. An unusable native report remains incomplete.

## Handoff

`--orchestrated`: verdict, counts, CRITICAL/HIGH evidence/IDs, metadata/report; no step.

| Handoff | Details |
|---|---|
| 🧭 **Current phase** | Done |
| 📦 **What was just done** | Result |
| ▶️ **Proposed next step** | Render resolved action. |

Standalone: verdict/runtime/fallback/report + numbered CRITICAL/HIGH; blockers → Fix, otherwise uncovered acceptance → Execute and closeout → Ship.

## Escalate-If

- Scope remains ambiguous after artifacts and git state are inspected: ask what to review before dispatch.
- A proposed finding changes requirements: label `Scope Change Required` and exclude it from the blocking verdict.

Next step: follow the verdict-specific handoff.
Files in this package (2)
  • SKILL.md 5 KB
  • references/adversarial-review.md 3 KB

Versions

RepositoryScoreLicence
This page · joenandez/spectre95MIT
joenandez/spectre95MIT

Database snapshot: 13.11.2026 · package version 8f8de5c8a561 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100spectre-validate
    Validate whether completed implementation delivers its scope/task requirements — dispatch independent @spectre:analyst checks for definition, connection, and reachability, then write one actionable validation_gaps.md. Trigger for standalone requirement validation or from Execute…
  • 100feature-codex-spectre-implementation
    Use when modifying the Codex SPECTRE install flow, SessionStart continuity, project skill syncing, registry injection, or Codex-specific runtime files. TRIGGER when: codex, spectre, codex install, sessionstart, agents.override, registry, spectre-learn, spectre-recall, hooks.json, config.toml, doctor
  • 90final-release-review
    Plan, implement, or review final release review work in an existing codebase with compatibility, security, and verification controls. Use when the user explicitly requests final release review work.
  • 90dev-review
    AI DevKit · Final code review phase guidance for holistic pre-push review. Use when the user wants code review, final lifecycle review, design alignment checks, integration risk review, or dev-lifecycle phase 9.
  • 95workflow-code-review
    Run a worker-backed code review using its bundled review lenses: approach correctness, architecture ownership, correctness, guardrails, validation, compatibility, and security. Use when asked to review a PR, branch, diff, or uncommitted changes with workflow-level rigor.
  • 100final-review
    Review a complete feature before delivery against requirements, acceptance criteria, conventions, security, database changes and documentation. Use when all slices are done, or whenever the user asks for a final check, release readiness or a full feature review. Only in a repo…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.