From jira-sprint-workflow
Perform a right-sized enterprise architect review on a feature branch for a Jira Story — autodetects feature size from the diff and applies the matching review checklist (3 angles for minor fixes, 5 for small features, 7 for medium, all 10 for large / framework-level changes). Use whenever the user says "review this branch", "architect review", "prod readiness review", or whenever subtask 7 of the jira-sprint-workflow chain fires. The sub-dispatched reviewer scales effort to the change — a 3-line typo fix does not need a 10-angle audit, and a 3000-line framework change should not get a 2-angle rubber stamp. Output is a categorized Jira comment with pass/block per angle plus a bundled-scope decision if out-of-scope commits rode along.
How this skill is triggered — by the user, by Claude, or both
Slash command
/jira-sprint-workflow:jira-architect-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a right-sized enterprise architect review on a feature branch. Sub-dispatched during subtask 7 of the `jira-sprint-workflow` chain (runs BEFORE sandbox deploy as a gate on whether the diff is worth deploying), or manually when the user wants a production-readiness check.
Run a right-sized enterprise architect review on a feature branch. Sub-dispatched during subtask 7 of the jira-sprint-workflow chain (runs BEFORE sandbox deploy as a gate on whether the diff is worth deploying), or manually when the user wants a production-readiness check.
The review scales effort to the change:
A 3-line typo fix should not get a 10-angle audit, and a 3000-line framework change should not get a rubber-stamp. The skill autodetects size and picks the matching angle set.
The 10-angle review was designed for framework-level changes. Applying it to every small bug fix wastes architect time and creates review fatigue (which leads to rubber-stamping). The 3 always-on angles (correctness, security, rollback) catch 80% of shipping risk on small changes; the remaining 7 are added as the surface area grows.
jira-sprint-workflow chain firesIf the user gives a Story key, fetch the parent Task + branch info + any prior review findings.
This skill reads the same plugin user config as the other skills (jira_url, jira_username, jira_api_token, project_key, etc.). Before proceeding, verify pluginConfigs["jira-sprint-workflow@jira-sprint-workflow"].options in ~/.claude/settings.json has all eight fields populated. If any are missing, invoke the jira-setup skill first, then resume.
Fetch from Jira:
Fetch from git:
git diff main...<feature-branch> (or HEAD of the worktree vs origin/main)git log main..HEAD --onelinegit diff main...HEAD --stat (files + lines changed summary)Compute these metrics from the diff:
| Signal | Small boundary | Medium boundary | Large boundary |
|---|---|---|---|
| Files changed | ≤ 3 | ≤ 15 | > 15 |
| Lines added + deleted | ≤ 100 | ≤ 500 | > 500 |
| Migration files present | — | Any | Multiple |
| New API endpoints | 0 | 1–3 | 4+ |
New modules (backend/src/modules/X/, frontend/src/components/X/) | 0 | 1 | 2+ |
Touches auth / security-sensitive paths (authenticate, authorize, secrets, JWT, cookies) | — | Any | Multiple |
| Touches shared data stores (cross-service DB tables, shared caches) | — | — | Any |
Size decision:
Write the chosen size to the Jira comment's first line so it's auditable:
Review size: LARGE — 32 files, +3925/-59 lines, 1 migration, 5 new endpoints, 1 new module. Using all 10 angles.
Use references/angles-library.md for the full definitions. Required subset by size:
| Angle | Minor | Small | Medium | Large |
|---|---|---|---|---|
| 1. Correctness vs spec | ✅ | ✅ | ✅ | ✅ |
| 2. Cross-system impact | — | — | ✅ | ✅ |
| 3. Security | ✅ | ✅ | ✅ | ✅ |
| 4. Performance at prod scale | — | — | ✅ | ✅ |
| 5. Data integrity | — | ✅ | ✅ | ✅ |
| 6. Integration touchpoints | — | — | — | ✅ |
| 7. Auth flow | — | — | — | ✅ |
| 8. Rollback / kill switch | ✅ | ✅ | ✅ | ✅ |
| 9. Observability | — | — | — | ✅ |
| 10. UX polish | — | ✅ | ✅ | ✅ |
| Angles total | 3 | 5 | 7 | 10 |
Exception — always include an angle if:
authenticate.ts, authorize.ts, or any auth/session file → force include Auth (7) regardless of sizefrontend/src/ and size is Small+ → force include UX polish (10)Document any forced inclusions in the "Review size:" line so they're explicit.
For each selected angle:
references/angles-library.md), evaluateIf any angle is Block, the overall verdict is BLOCK even if all others pass.
If the branch includes commits that are OUT-OF-SCOPE for the parent Story (e.g., pre-existing tech-debt fixes bundled because they unblocked the feature), make an explicit decision:
Document the decision and rationale in the review comment.
Post ONE consolidated comment on the subtask (or wherever the review was requested). Structure:
Architect Review — <parent-key> <parent-summary>
Review size: <SIZE> — <signals summary>. Using <N> angles.
===== ANGLE REVIEW =====
1. <Angle name> — PASS | BLOCK
<brief justification or block details>
2. ...
===== BUNDLED SCOPE =====
<only if applicable — bundle/cherry-pick decision with rationale>
===== SUMMARY =====
- Angles Pass: <N>
- Angles Block: <N>
- Overall verdict: PASS | BLOCK
- Bundled scope: bundle / cherry-pick / N/A
- Minor non-blocking follow-ups: <list or "none">
<Final line: either "Architect review passed — cleared for prod" or "Architect review blocked: <count> blockers — see above">
Transition the subtask to Done if the review is complete (pass or block — the review itself is done). The orchestrator decides next action based on verdict.
VERDICT: PASS | BLOCK
SIZE: minor | small | medium | large
ANGLES_RUN: <N>
ANGLES_PASS: <N>
ANGLES_BLOCK: <N>
BUNDLED_SCOPE_DECISION: bundle | cherry-pick | N/A
NEXT_ACTION: advance_to_prod | back_to_fix | escalate
references/angles-library.md — full checklist per angle, with specific things to look forreferences/sizing-heuristics.md — examples of real changes at each size tier to calibrateRead these only when you reach the relevant step.
cat, head, grep, git, docker — use absolute paths (/usr/bin/git, /opt/homebrew/bin/gh) or Read/Grep toolsgit diff output can be huge on large reviews — pipe to a file under /tmp/ rather than into your context if >500 linesjira-story-design — creates the Story + subtasks; this skill is dispatched from subtask 7 of the resulting chainjira-story-execute — runs the 15-subtask chain; invokes this skill for subtask 7superpowers:code-reviewer — generic code-review skill. This one is focused on architecture + production readiness, at the size-adjusted depth.npx claudepluginhub harsh1210/jira-sprint-workflow --plugin jira-sprint-workflowCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.