| name | superpowers-sage:reviewing |
| description | Convention audit and pre-PR code review for Sage/Acorn projects — checks PHP Blade JS CSS against Sage/Acorn/Tailwind v4 conventions; audits ACF Composer field patterns, Livewire component structure, Eloquent models, Acorn routes, Blade components; verifies design alignment; dispatches sage-reviewer agent; prepares code for PR merge. Invoke for: "review before PR", "run sage-reviewer", "convention audit", "/reviewing", "check my block for issues", "pre-merge review", "review this code". Skip when: you just need to read or understand a file — that is not a review session.
|
| user-invocable | true |
| argument-hint | [file path or scope] |
Reviewing — Convention Audit + Design Alignment
Review code against Sage/Acorn conventions and verify alignment with design reference.
Inputs
$ARGUMENTS
If no scope specified, review all changed files (git diff against base branch).
Procedure
0) Determine scope
- If file path provided, review that file and related files
- If "all" or no argument, scan full project
- If active plan exists, focus on plan components
1) Convention checklist
Service Providers
ACF Blocks & Fields
Blade Templates
Block Views
Routes & Controllers
Frontend
Hooks Placement
Content Architecture
2) Design alignment (if plan exists)
If active plan has assets:
- Read design reference from
assets/
- Compare implemented components with design
- Flag visual drift
3) Report findings
## Review: {scope}
### Critical (must fix)
- **{file}:{line}** — {issue}. See `{skill}`.
### Improvement (should fix)
- **{file}:{line}** — {issue}. See `{skill}`.
### Good Practices Found
- {positive observation}
### Design Alignment
- {component}: {MATCH/DRIFT} — {details}
### Summary
{X} critical, {Y} improvements, {Z} good practices.
4) Visual verification — all components
After sage-reviewer completes:
- Glob for all spec files:
docs/plans/<active-plan>/assets/section-*-spec.md
- For each spec file found:
a. Read the
### Verification Inputs block — extract url, selector, ref
b. Dispatch visual-verifier agent with:
url: from spec Verification Inputs
selector: from spec Verification Inputs
spec: this spec file path
ref: from spec Verification Inputs
c. Collect report: MATCH | DRIFT | MISSING | FAIL_ARBITRARY_VALUES
- Present consolidated report:
- List all components with their verification status
- If any DRIFT or FAIL: list fixes needed before merge
- If all MATCH: proceed to
finishing-a-development-branch
5) After review
- Offer
finishing-a-development-branch for merge/PR workflow
- Use base skills:
requesting-code-review, receiving-code-review
Key Principles
- Reference the relevant skill for every issue
- Be specific — file path and line number for every issue
- Acknowledge good code — don't just report problems
- Check content architecture — hardcoded dynamic content is a critical finding