skills/pos-review/SKILL.md
Code review composite — PR review, architecture review, and diff analysis with persistent review patterns. Replaces 7 fragmented review skills.
npx skillsauth add ShaheerKhawaja/ProductionOS pos-reviewInstall 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.
Domain-aware code review pipeline with persistent review patterns. Reviews PRs for bugs and security issues, audits architecture for design flaws, and analyzes diffs for regression risk. Learns from past reviews — common issues in this codebase get flagged faster.
Replaces: review, code-review, review-pr, review-delta, unified-review, github-code-review, requesting-code-review
| Action | What | When to Use |
|--------|------|------------|
| pr [number] | Full PR review with 2-pass (critical + informational) | Before merging any PR |
| code [path] | Review specific files or directories | During development |
| architecture [target] | Architecture-level review for design patterns and coupling | Before major refactors |
pr if a PR number is detected, code otherwise.~/.productionos/domains/review/Stored at ~/.productionos/domains/review/:
| File | What | Updated |
|------|------|---------|
| profile.yml | Codebase patterns, common pitfalls, style conventions | First run + auto-updated |
| review-history.jsonl | Past reviews with findings, false positives, accepted changes | After every review |
| patterns.jsonl | Recurring issues in this codebase (N+1 queries, missing auth, etc.) | Extracted from review history |
| suppressions.jsonl | Known acceptable patterns that shouldn't be flagged | Manual + auto-learned |
| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| action | pr, code, architecture | auto-detect | Review type |
| target | PR number, file path, or branch | required | What to review |
| mode | strict, standard, quick | standard | Review depth |
Two-pass PR review (adapted from code-reviewer agent):
Pass 1 — CRITICAL (must fix before merge):
Pass 2 — INFORMATIONAL (improve but don't block):
Output: findings table with severity, file:line, evidence, and fix suggestion.
Focused file/directory review:
System-level review:
| Scenario | Action | |----------|--------| | PR not found | Check number, suggest recent PRs | | File not found | Search for similar paths | | No git history | Review files statically without diff context | | Codebase too large | Focus on changed files + their direct dependencies | | Finding is a known pattern | Check suppressions — if suppressed, skip silently |
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.