review-correctness

Solid

Analyze code for bugs and correctness problems using strict determination criteria. Returns structured findings without applying fixes. Use when the user asks to "review correctness", "scan my code for bugs", "find bugs in my changes", "look for bugs", "check for bugs", or "run a correctness review".

Code & Development 314 stars 25 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Review Correctness Analyze code for bugs and correctness problems. Return structured findings. ## Step 1: Determine the Scope Determine what to review: - If a specific **diff command** was provided (e.g., `git diff --cached`, `git diff main...HEAD`), use that. - If a **file list or directory** was provided, review those files directly (read the full files, not a diff). - If **neither** was provided, default to diffing against the repository's default branch (detect via `gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'`). ## Step 2: Review 1. For diff scope: run the diff command to obtain the changes. For file scope: read the specified files. 2. For each file, read enough surrounding context to understand the code 3. Apply the bug determination criteria and return findings in the output format below ## Bug Determination Criteria Flag an issue only when ALL of these hold: 1. It meaningfully impacts the accuracy, performance, security, or maintainability of the code 2. The bug is discrete and actionable (not a general codebase issue or combination of multiple issues) 3. Fixing it does not demand rigor beyond what exists in the rest of the codebase 4. In diff mode: the bug was introduced in the changeset (do not flag pre-existing bugs). In file scope mode: this criterion does not apply 5. The author would likely fix the issue if aware of it 6. The bug does not rely on unstated assumptions about the codebase or author's intent 7. Speculation is insuffi...

Details

Author
tobihagemann
Repository
tobihagemann/turbo
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category