skills/review-gate/SKILL.md
Enforces code review quality before commits and pushes across ALL projects. 6-gate sequence: diff size, PII/secrets, conventions, cross-project boundaries, completeness, self-review reminder. Only PII gate blocks; rest are advisory. Triggers on: "review before push", "pre-commit review", "quality gate", "/review-gate".
npx skillsauth add ShaheerKhawaja/ProductionOS review-gateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automated quality gate that catches issues tests miss: secrets, convention violations, incomplete implementations, and cross-project context leaks.
Max 15 files, 200 lines/file. Advisory — warns, does not block.
Scans diff for email addresses (except noreply), API keys (sk-, ghp_, xoxb-, AKIA),
IP addresses, absolute home paths, hardcoded passwords.
BLOCKS on any match. No exceptions.
Per-project rules loaded from SecondBrain wiki entity pages via secondbrain_path config.
print() in productionconsole.log in productionDetects files outside current git root, imports with absolute paths to other projects. Advisory — user must confirm intent.
Scans for TODO/FIXME without issue ref, empty function bodies, commented-out code
blocks (>3 lines), debugging statements, skipped tests without explanation.
Advisory.
If >5 files changed and no /review or /unified-review invoked this session,
reminds the user. Advisory.
[1/6] Diff size .............. PASS (7 files, max 45 lines)
[2/6] PII/secrets scan ....... PASS (0 findings)
[3/6] Convention compliance .. WARN (2 findings)
[4/6] Cross-project boundary . PASS
[5/6] Completeness check ..... WARN (1 finding)
[6/6] Self-review reminder ... PASS
Result: PASS with 3 advisory warnings
Only Gate 2 (PII/secrets) blocks. Everything else is advisory. The goal is to surface issues without slowing the developer down.
tools
Implementation planning workflow that turns approved ideas into dependency-aware execution plans.
development
Local RAG and Graph RAG over the SecondBrain wiki vault. Progressive context loading (hot cache -> index -> domain -> entity). Graph traversal via wikilink resolution. Use when agents need cross-project context, when answering questions that span multiple domains, or when building context for planning tasks. Triggers on: "wiki context", "cross-project context", "what do we know about", "check the wiki", "graph context", "/wiki-rag".
devops
UX improvement pipeline — creates user stories from UI guidelines, maps user journeys, identifies friction, dispatches fix agents. The user-experience equivalent of /production-upgrade.
development
Test-driven development workflow that writes failing tests first, implements minimally, and refactors safely.