From review
Orchestrates parallel agents to review code changes for CLAUDE.md compliance, bugs, git history, and security with confidence scores. Outputs reports or posts to GitHub PRs.
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin reviewThis skill is limited to using the following tools:
Pragmatic Quality framework — orchestrate parallel review agents for high-signal findings.
Conducts systematic code reviews of GitHub pull requests, auditing CLAUDE.md compliance, bugs, git history, prior PR comments, and code comments for actionable feedback.
Conducts tiered code reviews for security (OWASP top 10), performance, and quality on staged git changes, PRs, or files before commits or releases.
Reviews GitHub PRs: fetches diff via gh CLI, runs repo-specific checks, launches 3 parallel agents for correctness/conventions/efficiency, validates findings, drafts review.
Share bugs, ideas, or general feedback.
Pragmatic Quality framework — orchestrate parallel review agents for high-signal findings.
$ARGUMENTS contains --post-to-pr: enable GitHub PR posting (Phase 5)./reviews/code/)Example usage:
/review:code-review — local report to ./reviews/code//review:code-review custom/dir — local report to custom/dir//review:code-review --post-to-pr — local report + post to GitHub PR/review:code-review custom/dir --post-to-pr — bothAnalyze these outputs to understand the scope and content of the changes.
GIT STATUS:
!`git status`
FILES MODIFIED:
!`git diff --name-only origin/HEAD...`
COMMITS:
!`git log --no-decorate origin/HEAD...`
DIFF CONTENT:
!`git diff --merge-base origin/HEAD`
Launch 2 parallel Haiku agents:
Agent A — CLAUDE.md Discovery: Find all CLAUDE.md files in the repo (root + directories modified by the changes). Return file paths and brief content summaries of each.
Agent B — Change Summary: Analyze the diff above. Return: files changed count, primary areas affected, change type (feature/bugfix/refactor/config/test/docs), estimated risk level (Low/Medium/High/Critical).
Launch 4-5 Sonnet agents simultaneously. Provide each with: the full diff content, the CLAUDE.md summaries from Phase 1, and the change summary. Each agent returns findings in this format:
Finding: {description}
File: {path}:{line}
Category: {CLAUDE.md | Bug | History | Security | Comments}
Reason: {why this was flagged}
Suggested fix: {code snippet, if applicable}
Audit changes against all discovered CLAUDE.md rules. Only flag items specifically called out in a CLAUDE.md. Double-check that the CLAUDE.md actually requires what is being flagged. Ignore silenced rules (lint-ignore comments).
Shallow scan for obvious bugs in the diff only. Focus on large bugs — avoid nitpicks. Do NOT read extra context beyond the changes. Ignore issues linters/typecheckers would catch.
Read git blame and history of modified files. Identify issues in light of historical context: reverted changes being re-modified, recently-fixed areas, breaking established conventions, patterns from previous PR comments.
Security-focused scan: injection (SQLi, XSS, command), auth/access control, secrets/credentials, data exposure in logs/responses, crypto misuse. Only report HIGH confidence exploitable findings.
Only launch if modified files contain substantive code comments (// NOTE:, // IMPORTANT:, // INVARIANT:, // SAFETY:, // TODO:). Ensure changes comply with guidance in those comments.
All reviewers must skip these false positive categories:
See WORKFLOW.md for detailed false positive filtering rules.
For each finding from Phase 2, launch a parallel Haiku agent that:
Filter: Remove all findings scoring below 80. If no findings survive, generate a clean report.
Generate the report using the template in WORKFLOW.md.
Map confidence scores to triage levels:
Include for each finding: the Source category (CLAUDE.md, Bug Scan, Git History, Security, Comments).
mkdir -p {output-directory}{output-directory}/{YYYY-MM-DD}_{HH-MM-SS}_code-review.mdOnly execute if --post-to-pr flag was passed.
gh pr viewgh pr commentAfter saving the report, invoke the false-positive verifier:
review:verify-findings with the saved report path.verified.md reportIf the Skill tool is not available (e.g., running inside a subagent):
Run verification manually:
/review:verify-findings {report-path}