Skip to content
Back to skills

Pos Review

ASecurity

Code review composite — PR review, architecture review, and diff analysis with persistent review patterns. Replaces 7 fragmented review skills.

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
data-aigorailsawscode-reviewgitapisecurityperformancedocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add ShaheerKhawaja/ProductionOS --skill pos-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pos Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pos Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shaheerkhawaja-pos-review/badge)](https://www.skillsdirectory.com/skills/shaheerkhawaja-pos-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pos-review
description: "Code review composite — PR review, architecture review, and diff analysis with persistent review patterns. Replaces 7 fragmented review skills."
argument-hint: "[pr|code|architecture] [PR number, file path, or branch]"
---

# pos-review

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

## Actions

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

## Routing

1. Parse action. Default to `pr` if a PR number is detected, `code` otherwise.
2. Load review memory from `~/.productionos/domains/review/`
3. If first run: detect codebase patterns, set review profile
4. Dispatch to sub-skill with codebase context
5. Score against rubric, update review history

## Domain Memory

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 |

## Inputs

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

## Sub-Skills

### pr
Two-pass PR review (adapted from code-reviewer agent):

**Pass 1 — CRITICAL (must fix before merge):**
- Security vulnerabilities (injection, XSS, auth bypass)
- Data loss risks (migration without rollback, destructive operations)
- Logic errors (wrong condition, missing null check, race condition)
- Test coverage gaps (new code paths without tests)

**Pass 2 — INFORMATIONAL (improve but don't block):**
- Code style and naming conventions
- Performance suggestions
- Documentation gaps
- Simplification opportunities

Output: findings table with severity, file:line, evidence, and fix suggestion.

### code
Focused file/directory review:
1. Read all files in scope
2. Check against codebase patterns (from memory)
3. Run checklist: error handling, input validation, test coverage, naming
4. Compare to similar files in the codebase for consistency
5. Report findings with specific line references

### architecture
System-level review:
1. Map component dependencies (imports, API calls, data flow)
2. Check coupling (are modules appropriately isolated?)
3. Check for anti-patterns (god objects, circular deps, leaky abstractions)
4. Assess scalability (N+1 queries, missing indexes, blocking operations)
5. Produce architecture diagram + recommendations

## Error Handling

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

## Guardrails

1. **Findings need evidence.** Every issue includes file:line and what specifically is wrong.
2. **Critical before informational.** Never bury a security issue under style feedback.
3. **Fix-first heuristic.** If you can auto-fix a mechanical issue (formatting, import order), do it.
4. **Respect suppressions.** Learned acceptable patterns don't get re-flagged.
5. **Never approve blindly.** If a review finds 0 issues, state confidence level.

Files in this skill

  • SKILL.md4.3 KB
  • evaluation/rubric.yml1.9 KB
  • memory/schema.yml1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.