# Shaheerkhawaja Productionos Review Gate

> review-gate: Quality Enforcement for Every Push

- Skill: `tomevault-io/shaheerkhawaja-productionos-review-gate` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/shaheerkhawaja-productionos-review-gate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/shaheerkhawaja-productionos-review-gate/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/shaheerkhawaja-productionos-review-gate

---


# review-gate: Quality Enforcement for Every Push

Automated quality gate that catches issues tests miss: secrets, convention violations,
incomplete implementations, and cross-project context leaks.

## Gate Sequence

### Gate 1: Diff Size Check
Max 15 files, 200 lines/file. **Advisory** — warns, does not block.

### Gate 2: PII and Secrets Scan
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.

### Gate 3: Convention Compliance
Per-project rules loaded from SecondBrain wiki entity pages via `secondbrain_path` config.
- Python: ruff format, no `print()` in production
- Frontend: no `console.log` in production
- All: conventional commit format, no TODO without issue number
**Advisory.**

### Gate 4: Cross-Project Boundary Check
Detects files outside current git root, imports with absolute paths to other projects.
**Advisory** — user must confirm intent.

### Gate 5: Completeness Check
Scans for `TODO`/`FIXME` without issue ref, empty function bodies, commented-out code
blocks (>3 lines), debugging statements, skipped tests without explanation.
**Advisory.**

### Gate 6: Self-Review Reminder
If >5 files changed and no `/review` or `/unified-review` invoked this session,
reminds the user. **Advisory.**

## Output Format

```
  [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
```

## Blocking Rules

Only Gate 2 (PII/secrets) blocks. Everything else is advisory. The goal is to
surface issues without slowing the developer down.

---
> Source: [ShaheerKhawaja/ProductionOS](https://github.com/ShaheerKhawaja/ProductionOS) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

