No slash command · from archon-os
Performs 8-aspect evidence-based code review/audit covering security, correctness, compatibility, architecture, error handling, test gaps, type safety, and simplicity. Built on Google eng-practices, OWASP Top 10:2025, and CWE Top 25. Each finding requires file:line and a concrete failure scenario.
Ships in archon-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
AI-consumed reference. Optimized for Claude to read during execution. Sources and quotes for every standard below:
references/standards.md.
Runs in: TDD Phase 4 (reviewer ≠ Phase 3 builder), /check review [path|PR], /run review <target>, or on request.
Approve when the change definitely improves code health, even if not perfect. Technical facts beat opinions; the project's style guide and linters settle style — don't repeat them.
git diff --name-only <base>...HEAD (or the given path/PR). Read diff hunks + immediate callers/callees, not whole files.node "${CLAUDE_PLUGIN_ROOT}/scripts/quality/diff-smells.cjs" --base <base> --json from Bash, no model. It is a structured check: user-specific paths, ad-hoc scheduling, magic literals duplicated across files, new exports with zero callers. Each finding is a Simplicity/Architecture candidate. Verify it like any other finding. If a subagent has to run it, use haiku and relay the JSON verbatim.aspects[8]{aspect,priority,checks}:
Security,CRITICAL,"OWASP Top 10:2025 (list below) · CWE Top 25 · secrets · untrusted input reaching queries/shell/HTML/paths · authz on every protected action"
Correctness,CRITICAL,"Does it do what the task intends? Off-by-one, null/empty/boundary input, wrong operator/condition, races and shared state, time zones, partial failure leaving bad state"
Compatibility,CRITICAL,"No breaking change: public API/CLI/config/schema/file format/defaults/output shape unchanged unless versioned; observable behavior others rely on (Hyrum's law); migration or deprecation path"
Architecture,HIGH,"Right layer, SRP, coupling, fits existing patterns; reuse over new helper"
Error Handling,HIGH,"Swallowed errors, empty catch, fail-open on exceptions (OWASP A10), missing cleanup, errors that leak secrets/internals"
Test Gaps,HIGH,"Changed behavior without a test; missing edge/failure-path test; tests that can't fail"
Type Safety,MEDIUM,"any/unchecked casts, unhandled null, unvalidated external data"
Simplicity,MEDIUM,"Re-implemented stdlib/repo/installed-dep function (Rule 0 of rules/core/simplicity-over-complexity.md — fix = the existing call), over-engineering, speculative code, dead code, unnecessary comments (rules below)"
Spend most effort on the three CRITICAL-priority aspects. Priority says where to look; severity (below) comes from impact.
A01 Broken Access Control · A02 Security Misconfiguration · A03 Software Supply Chain Failures · A04 Cryptographic Failures · A05 Injection · A06 Insecure Design · A07 Authentication Failures · A08 Software or Data Integrity Failures · A09 Security Logging and Alerting Failures · A10 Mishandling of Exceptional Conditions.
AI-generated code fails security checks often (~45% in Veracode's tests) — review it as untrusted, never skim it.
Removing/renaming an exported symbol, flag, env var, config key, route or field · changing a signature, default, return/output format, error type/message users parse, ordering, or file/storage location without migration · tightening accepted input. If breaking is intended: SemVer MAJOR + migration note, or keep the old path working with a deprecation.
Flag (Google's definition): code more generic than needed or functionality not needed now. Signals: single-use abstraction/interface/factory, config or params nothing varies, speculative hooks "for later", wrappers that only forward, new dependency for a few lines, deep nesting (nesting raises cognitive complexity), dead or commented-out code.
Comments explain why, never what. Flag comments that restate the code, narrate changes ("added X", "fixed bug"), or are stale; never ask for comments on self-explanatory code. Rule: rules/workflow/smart-commenting.md.
LLM reviewers produce many plausible-but-wrong findings. Each finding must pass:
file:line you read.Factual claims ("tests pass", "0 critical", "coverage N%") follow CoVe: skills/chain-of-verification/SKILL.md.
[blocking|non-blocking|nit] [ASPECT] file:line — defect
Scenario: <input/state → wrong result>
Fix: <smallest change>
severity[3]{label,meaning}:
blocking,"Must fix before merge — the scenario shows a security hole, broken caller, wrong result or data loss"
non-blocking,"Should fix; merge allowed"
nit,"Optional polish, never blocks — prefix Nit:"
Order by severity. Mention something done well only if it is specific. No filler, no restating the diff.
Per-aspect score (9-10 ready · 7-8 minor · 5-6 needs work · <5 changes requested) — prevents LGTM drift. In Phase 4 write it to CODE_REVIEW.md (templates/code-review.md).
rules/core/simplicity-over-complexity.md — YAGNI/DRY/KISSrules/workflow/smart-commenting.md — WHY not WHATrules/core/code-quality.md — Coverage, typing, error handling baselinerules/core/verification.md — Verify before approvingrules/core/context-economy.md — Diff hunks + callers, not whole filesrules/agent/sast-security-scanning.md — Security patternsrules/agent/error-handling-standard.md — Error-handling reviewrules/workflow/cross-review-workflow.md — Builder ≠ Reviewerrules/workflow/chain-of-verification.md — MANDATORY for factual claims in review outputrules/workflow/dual-llm-review.md — Second opinion for destructive-op / security-critical findingsWhat SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
code-review, code-audit, pr-review, security-review, owasp, cwe
npx claudepluginhub nguyenthienthanh/archon --plugin archon-os45 skills in this plugin
/agent-detectorCRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens./api-designerDesigns RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs./bugfix-quickFast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return.Other plugins' skills for the same job