원클릭으로
workflow-review
Flexible code review for PRs, git ranges, files, or uncommitted changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Flexible code review for PRs, git ranges, files, or uncommitted changes
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Backlog-scale orchestration on top of /workflow — drives PM items through refine → plan → implement → review → local-merge via role-specialized sub-agents dispatched in parallel waves, each item isolated in its own git worktree. Bare /swarm summarizes state; /swarm <goal> runs the orchestrator; /swarm:setup sets up the charter and .agent-tools/ umbrella; /swarm:continue resumes a paused run.
Capture durable knowledge from any engineering work — debugging solutions, refactors, features, design decisions, reusable patterns — and maintain memory quality so each unit of work compounds the next
Principal workflow entry — resolve portfolio mode (swarm resume/handoff or unit state machine), drive work without inventing path; hard-stop when path is not established
Initialize and maintain planning root (.agent-tools/planning preferred), conventions (tracks, gates, integration), runs ledger scaffold, and shared memory under .agent-tools/memory/ (AGENTS.md memory-link) for the workflow family.
Parent skill for the workflow family — principal session entry is /workflow:continue (also bare /workflow). Horizon mapping, brainstorm, refine, plan, execute, review, audit, compound. Vertical-slice and deliverable-partition modes.
Detect gaps in the canonical skill corpus, propose targeted improvements, validate changes, and present for review. Inventories src/** skill trees; optional run-ledger seeds for process IP gaps.
| name | workflow:review |
| description | Flexible code review for PRs, git ranges, files, or uncommitted changes |
| argument-hint | [PR number, git range, file paths, or 'changes' for uncommitted] |
| user-invocable | true |
Review code changes with configurable depth — supports PRs, git ranges, specific files, or uncommitted changes.
$ARGUMENTS
Parse input to determine review target:
| Input Pattern | Review Target | Action |
|---|---|---|
123 or #123 | Pull Request | gh pr view 123 |
PR-123 or pr 123 | Pull Request | gh pr view 123 |
main..HEAD | Git range | git diff main..HEAD |
main from tag 'v1.0' to HEAD | Natural language range | Parse and convert to git range |
origin/main...feature | Three-dot range | git diff origin/main...feature |
./src/ or path/to/file | Files/directories | Review specified paths |
changes or empty | Uncommitted | git diff (staged + unstaged) |
staged | Staged only | git diff --staged |
Support human-readable range descriptions:
"main from tag 'production' to HEAD"
-> git log production..HEAD
"changes since last release"
-> git diff $(git describe --tags --abbrev=0)..HEAD
"commits on feature branch"
-> git diff main...HEAD
Run all git commands from the working directory. Do not use git -C <path> unless the working directory cannot be the
target repo.
# For PR
gh pr view $PR_NUMBER --json files,additions,deletions,title,body
# For git range
git diff --stat $RANGE
git log --oneline $RANGE
# For files/directories
git diff -- $PATHS
git status -- $PATHS
# For uncommitted
git status
git diff
git diff --staged
Analyze changes to determine:
Resolve planning root first (.agent-tools/planning/ preferred; else ./planning/ — @workflow
references/planning-root.md). Then:
ls <planning-root>/*/implementation-plan.md 2>/dev/null
ls <planning-root>/*/session-state.md 2>/dev/null
ls <planning-root>/*/requirements.md 2>/dev/null
Determine requirements source:
session-state.md exists and has requirements_source: pm → use PM modesession-state.md exists and has requirements_source: file → use file moderequirements.md exists → file moderequirements.md but a work_item is recorded in session state → PM modeLIN-123, PROJ-456) → fetch criteria from PM issueFile mode: Load acceptance criteria from requirements.md, Definition of Done and tasks from implementation-plan.md.
PM mode: Fetch acceptance criteria from the PM issue via Issue Retrieval Strategy from @workflow
(planning/pm-integration.md). Load DoD and tasks from implementation-plan.md.
If no plan or criteria found: Skip the acceptance-criteria agent — note absence in output. On feature and micro tracks with ACs available, acceptance-criteria check is mandatory for standard+ depth (and for micro quick when ACs exist — single agent may combine AC + quality).
Depth changes dose, not the review gate. Green tests ≠ reviewed. Evidence schema always
required for continue integrate (gates.md).
Resolution order (first hit wins):
$ARGUMENTS: --depth quick|standard|deep or words quick / standard / deeptrack: or continue context — @workflow references/tracks.md:
quickstandard (or deep if security-sensitive paths / large diff)quick or standard by sizeState the chosen depth in one line and proceed. Ask to confirm only when ambiguous between standard and deep, or user previously required always-confirm in conventions.
| Depth | Agents (see menus) |
|---|---|
| Quick | 2 |
| Standard | 5 |
| Deep | 8+ |
Optional mode extras (additive, not depth): path-triggered security emphasis; structural architecture when layer boundaries move — covered in agent menus / special-modes.
Load agent menus: references/agent-menus.md for the chosen depth (role lists, synthesis/critic pass).
For review criteria standards, also reference @workflow (execution/quality-checkpoints.md).
Continue integration: map verdict to unit events — APPROVE → evidence + REVIEW_CLEAN;
REQUEST CHANGES (code) → REVIEW_FINDINGS_CODE; structural → REVIEW_FINDINGS_STRUCTURAL.
Swarm reviewer statuses APPROVED / FIX_REQUESTED use the same evidence bar
(@workflow references/handoff-package.md).
P1 - Critical (Blocks Merge) — security, data corruption, breaking changes, critical bugs
P2 - Important (Should Fix) — performance, architecture, code quality, missing tests
P3 - Nice to Have (Optional) — style, minor optimizations, docs, optional refactors
### [P1/P2/P3] [Category]: [Title]
**Location**: `file/path.ext:line`
**Issue**:
[Description]
**Impact**:
[Why this matters]
**Suggestion**:
[How to fix]
**Code Example** (if helpful):
```[language]
# Before
[problematic code]
# After
[suggested fix]
## Review Output
When emitting the summary, verdict, and next steps, **load and use** `templates/review-report.md`.
Verdict options:
- **APPROVE** — No P1 issues, all acceptance criteria met (if plan available)
- **REQUEST CHANGES** — P1 issues or unmet acceptance criteria
- **COMMENT** — Suggestions but no blockers
## Special Review Modes
For pre-commit, deployment-range, or security-focused variants, **load** `references/special-modes.md`.
## Integration Points
### With PR Comments (if PR target)
Offer to post findings as a PR comment (yes/local-only).
### With /workflow:plan and /workflow:execute
Review loads acceptance criteria to verify completeness — not just code quality. Unmet criteria are P1 (blocking).
### With /workflow:compound
If significant issues found and fixed, offer `/workflow:compound`.
### With Session State
If reviewing during execute/continue, findings inform session notes. Prefer recording valid
evidence line on session-state or PM (`gates.md` schema). Optional structured return fields:
@workflow `references/handoff-package.md`.
### With runs ledger
Continue host records review phase-return + fidelity; review skill need not write
`.agent-tools/runs/` itself when invoked under continue.
## Quality Principles
### Reasoning Rigor
Every finding must be grounded in evidence, not intuition:
- **Cite evidence** — specific `file:line`. If you can't point to a location, you haven't verified.
- **Trace, don't assume** — follow calls to actual definitions; names can be shadowed or framework-wrapped.
- **Check the opposite hypothesis** — before P1/P2, ask what would make the code correct; downgrade if refuted.
- **Distinguish crash sites from root causes** — trace to where incorrect behavior begins.
### Focus on Impact
- P1 blockers; P2 quality; P3 suggestions — don't overwhelm with minor issues.
### Be Constructive
- Explain why; provide concrete suggestions; acknowledge good practices; focus on code not author.
### Scale Appropriately
- Quick for small; deep for critical paths; don't over- or under-review.
## Common Patterns
For domain-specific checklists (DB, API, security, UI), **load** `references/common-patterns.md`.