Imported from bitsocialnet/bitsocial-web (
.agents/skills/code-quality-review/SKILL.md). Install upstream withnpx skills add bitsocialnet/bitsocial-web --skill code-quality-review. Copyright stays with the author.
Code Quality Review
Review against the user's base, or the task's base branch plus its relevant staged, unstaged, and untracked changes. Preserve unrelated work. Read nearby source, changed tests, and applicable repository guidance before judging a hunk.
Focus on evidence-backed bugs, error paths, races, state consistency, trust boundaries, and concrete verification gaps. Challenge each finding against the implementation and intended behavior. Apply architecture and performance guidance only where the changed flow makes it relevant.
For simplification, use the repository's solution ladder: remove unnecessary work, reuse existing code or platform facilities, and only then introduce new code. Do not trade away correctness, accessibility, validation, error handling, or useful tests. Preserve an unfamiliar guard or workaround until its purpose is understood.
Return actionable findings with file/line evidence, impact, and a practical correction, prioritized by risk. Skip tooling-handled style nits and speculative cleanup; if none remain, say so without a canned approval or publishing instruction.
A review-only request returns findings without edits. During an authorized implementation, apply high-confidence in-scope fixes without asking again for that authorization. This is an advisory pass, not an extra approval gate. Reuse verification evidence for the same final state; consult docs/agent-playbooks/verification.md only when a change or concrete uncertainty calls for more checks.