Skip to content
cccskills
FreePublished on GitHub

reviewer-correctness

Verifies bug fixes are correct and complete by tracing callers, checking imports/exports, validating path resolution, and confirming no regressions. Does the code work? Use when reviewing code changes for functional correctness.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Correctness Reviewer

Verifies that code changes are functionally correct by tracing callers, checking imports/exports, validating path resolution, and confirming no side effects or regressions.

Review Complete When

  • Every modified function has >=1 caller audit (traced, compatibility verified)
  • All imports/exports reconciled (no orphaned, no missing)
  • Circular dependencies validated or ruled out for all affected modules
  • Path resolution (if applicable) verified relative to correct base
  • No regression risks identified in unchanged functions
  • Summary table shows status for all checks
  • Overall verdict is clear ([PASS] safe to merge / [WARN] concerns listed / [FAIL] needs work)

A review is not complete if any check has an "unknown" or "not checked" status.

Instructions

1. Verify the Fix Itself

For each change, confirm the code modification is syntactically and semantically correct:

# Check the change is present
grep -n "export function createSession" agent-spawning.ts
grep -n "path.join(consolidationsDir, f)" shared.ts

Check:

  • Required imports are present (e.g., import * as path from "node:path")
  • The change uses the correct API (e.g., path.join not string concatenation)
  • No syntax errors introduced

2. Trace All Callers

For each modified function, find and verify all callers:

# Find all callers
grep -rn "functionName" --include="*.ts" --include="*.js" | grep -v "function functionName"

For each caller, verify:

  • The caller's usage is compatible with the change
  • The caller receives the expected data format (e.g., full paths, not bare filenames)
  • No caller is broken by the change

3. Verify Imports and Exports

For export changes, confirm the full import chain:

# Check the export exists
grep -n "export function.*" target.ts

# Check the import exists
grep -n "import.*from.*target" consumer.ts

Verify:

  • All functions that need to be exported are exported
  • All consumers import the correct names
  • No orphaned imports (importing something that doesn't exist)
  • No missing exports (something imported but not exported)

4. Check Path Resolution

For path-related changes, verify:

# Check path module is imported
grep "import.*path" file.ts

# Verify path.join usage
grep "path.join" file.ts

# Check if paths are absolute
# (may require running the code or checking the logic)

Verify:

  • path module is imported
  • path.join or equivalent is used (not string concatenation)
  • Paths are resolved relative to the correct base directory
  • All consumers expect the same path format

5. Check for Circular Dependencies

Build the import chain for affected modules:

# Check imports in each file
grep "^import" shared.ts agent-spawning.ts dream-execution.ts

Verify:

  • No circular import chains exist
  • Import direction is consistent (no back-references)
  • The change doesn't introduce new coupling

6. Verify No Regressions

Check that existing functionality is preserved:

# Check unchanged functions still work
grep -n "checkConsolidationFreshness" shared.ts

Verify:

  • Unchanged functions are unaffected
  • No function signatures changed unexpectedly
  • No side effects on unrelated modules
  • The change is minimal and targeted

7. Report Findings

Structure the review as:

## Fix N: [Description]

### Correct: [PASS]/[WARN]/[FAIL] [Fix is correct/incomplete/incorrect]

**Evidence:**
- [file:line] `code snippet` -- [explanation]
- [file:line] `code snippet` -- [explanation]

**Callers verified:**
| Caller | Location | Uses correct format? | Status |
|--------|----------|---------------------|--------|
| [caller] | [file:line] | [yes/no] | [PASS]/[FAIL] |

**Independent implementations (not affected):**
- [module]: [brief note on why unaffected]

---

## Summary

| Check | Result |
|-------|--------|
| Fix N: [description] | [PASS]/[WARN]/[FAIL] [brief note] |
| Other callers affected | [PASS]/[FAIL] [note] |
| Required imports present | [PASS]/[FAIL] [note] |
| Circular dependency risk | [PASS]/[FAIL] [note] |

**[Overall verdict]**

Use status symbols:

  • [PASS] -- Verified correct, no issues
  • [WARN] -- Partially correct, minor concern
  • [FAIL] -- Incorrect, needs fixing

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Distills enduring architectural decisions and design rationale from wave orchestration plans or historical git changes into structured, tracked Architecture Decision Records (ADRs). Use pre-wave to resolve active architectural constraints or post-wave to record enduring decisions in docs/decisions/.

The English summary is being prepared. Showing the original description.

AndrewBrown-USDA/aigb-skills-usda7Updated Oct 22, 2026

Create and maintain AGENTS.md files for project onboarding and grounding. Use when initialized in a new project, when project structure changes significantly, or when creating subfolder-level AGENTS.md files for complex monorepos.

The English summary is being prepared. Showing the original description.

AndrewBrown-USDA/aigb-skills-usda7Updated Oct 22, 2026

Audit and update an arbitrary codebase to follow the Code.mil federal open-source licensing model (MIT with 17 U.S.C. Section 105 disclaimers and INTENT.md), including CRAN/R package DESCRIPTION setup.

The English summary is being prepared. Showing the original description.

AndrewBrown-USDA/aigb-skills-usda7Updated Oct 22, 2026

Migrates ArcPy and ArcGIS Pro workflows to explicit, testable open-source Python geospatial workflows. Use when removing ArcPy dependencies, porting geoprocessing scripts, or documenting ArcGIS behavior that will not be migrated.

The English summary is being prepared. Showing the original description.

AndrewBrown-USDA/aigb-skills-usda7Updated Oct 22, 2026

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

The English summary is being prepared. Showing the original description.

AndrewBrown-USDA/aigb-skills-usda7Updated Oct 22, 2026

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes - Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".

The English summary is being prepared. Showing the original description.

AndrewBrown-USDA/aigb-skills-usda7Updated Oct 22, 2026

See all skills by AndrewBrown-USDA

Report a problem with this skill