nairon-ai/flux/flux-epic-review
Claude Code and agent skill by nairon-ai/flux
- community
Checking that the SKILL.md file is still in the repository.
Epic completion review - adversarial dual-model review, external bot self-heal, browser QA, and learning capture. Full thorough review at epic level. Triggers on /flux:epic-review.
Install
npx vskill@latest install nairon-ai/flux/flux-epic-reviewSKILL.md
The same SKILL.md was published earlier as nairon-ai/flux/flux-epic-review.
Epic Completion Review Mode
Read [workflow.md](workflow.md) for detailed phases and anti-patterns.
Thorough review at epic completion. Combines adversarial dual-model review (two different models reach consensus), external bot self-heal (Greptile/CodeRabbit), browser QA, and learning capture. Cross-lab pairs (Anthropic + OpenAI) are strongest, but same-provider pairs work too. Per-task lightweight reviews happen via /flux:impl-review — this is the heavy-weight pass.
Role: Epic Review Coordinator (NOT the reviewer) Backends: RepoPrompt (rp) or Codex CLI (codex)
Session Phase Tracking
On entry (after FLUXCTL is resolved), set the session phase:
On completion, reset:
CRITICAL: fluxctl is BUNDLED — NOT installed globally. which fluxctl will fail (expected). Always use:
Backend Selection
Priority (first match wins):
--review=rp|codex|noneargumentFLUX_REVIEW_BACKENDenv var (rp,codex,none).flux/config.json→review.backend- Error - no auto-detection
Parse from arguments first
Check $ARGUMENTS for:
--review=rpor--review rp→ use rp--review=codexor--review codex→ use codex--review=noneor--review none→ skip review
If found, use that backend and skip all other detection.
Otherwise read from config
Critical Rules
For rp backend:
- DO NOT REVIEW CODE YOURSELF - you coordinate, RepoPrompt reviews
- MUST WAIT for actual RP response - never simulate/skip the review
- MUST use `setup-review` - handles window selection + builder atomically
- DO NOT add --json flag to chat-send - it suppresses the review response
- Re-reviews MUST stay in SAME chat - omit
--new-chatafter first review
For codex backend:
- Use
$FLUXCTL codex completion-reviewexclusively - Pass
--receiptfor session continuity on re-reviews - Parse verdict from command output
For all backends:
- If
REVIEW_RECEIPT_PATHset: write receipt after SHIP verdict (RP writes manually after fix loop; codex writes automatically via--receipt) - Any failure → output
<promise>RETRY</promise>and stop - Use
flux-receive-reviewwhen sorting valid issues from reviewer or bot feedback.
FORBIDDEN:
- Self-declaring SHIP without actual backend verdict
- Mixing backends mid-review (stick to one)
- Skipping review silently (must inform user and exit cleanly when backend is "none")
Input
Arguments: $ARGUMENTS Format: <epic-id> [--review=rp|codex|none]
- Epic ID - Required, e.g.
fn-1orfn-22-53k --review- Optional backend override
Workflow Overview
See [workflow.md](workflow.md) for full details on each phase.
The epic review is a multi-phase pipeline:
- Spec Compliance Review — verify all epic requirements are implemented (via backend)
- Adversarial Review — dual-model consensus review (if reviewer1 + reviewer2 configured)
- Severity Filtering — split issues into fix-list vs log-only based on configured threshold
- Fix Loop — auto-fix issues at/above threshold, re-review until SHIP
- Security Scan — STRIDE-based vulnerability scan on changed files (auto-triggered for security-sensitive changes)
- External Bot Self-Heal — poll Greptile/CodeRabbit for additional issues (if configured)
- Browser QA — test acceptance criteria via QA checklist from scoping (if agent-browser available)
- Learning Capture — extract patterns from NEEDS_WORK iterations and human-confirmed review anti-patterns to
.flux/brain/pitfalls/or structural rule candidates - Desloppify Scan — lightweight quality scan on changed files (if desloppify installed)
- Frustration Signal — auto-trigger recommendation search if friction score >= 3
Step 0: Parse Arguments
Parse $ARGUMENTS for:
- First positional arg matching
fn-*→EPIC_ID --review=<backend>→ backend override- Remaining args → focus areas
Step 1: Load Review Config
REVIEWER1: First review model (e.g.,claude-sonnet-4-6,gpt-5.4)REVIEWER2: Second review model — must be different from REVIEWER1 (e.g.,gpt-5.3-codex,claude-opus-4-6)REVIEW_BOT:greptile,coderabbit, or emptySEVERITIES: comma-separated list of severity levels to auto-fix (e.g.,critical,major)
Step 2: Detect Backend & Run Spec Compliance Review
Run backend detection from above. Then branch:
Codex Backend
On NEEDS_WORK: fix code, commit, re-run (receipt enables session continuity).
Missing architecture-diagram updates are in scope here when the epic changed the product's high-level architecture. .flux/brain/codebase/architecture.md is a canonical artifact, not optional docs.
RepoPrompt Backend
Stop: You MUST read and execute [workflow.md](workflow.md) now.
Go to the "RepoPrompt Backend Workflow" section in workflow.md and execute those steps. Do not proceed here until workflow.md phases are complete.
Return here only after workflow.md spec compliance review is complete.
Step 3: Adversarial Review (if configured)
Only runs if BOTH `reviewer1` AND `reviewer2` are configured.
If only one reviewer or neither is configured, skip to Step 4.
See workflow.md "Adversarial Review Phase" for full details. Summary:
- Reviewer 1 reviews the diff independently via Codex/RP
- Reviewer 2 reviews the same diff independently via Codex/RP
- Consensus merge: Issues flagged by BOTH reviewers = high-confidence (auto-fix). Issues flagged by only one = log-only (unless at/above severity threshold).
The adversarial approach catches more issues than a single model while reducing false positives through consensus.
Step 4: Severity Filtering
Split all issues (from spec review + adversarial review) into two buckets:
- Fix list: Issues at or above the configured severity threshold → auto-fix
- Log only: Issues below threshold → log to review output but don't fix
Severity ranking: critical > major > minor > style
If SEVERITIES = ["critical", "major"], then critical and major issues are auto-fixed; minor and style are logged only.
Step 5: Fix Loop (INTERNAL - do not exit to Ralph)
CRITICAL: Do NOT ask user for confirmation. Automatically fix ALL issues in the fix-list and re-review. Never use AskUserQuestion in this loop.
If verdict is NEEDS_WORK and fix-list is non-empty, loop internally until SHIP:
- Parse issues from reviewer feedback (filter by severity threshold)
- Fix code and run tests/lints
- Commit fixes (mandatory before re-review)
- Re-review:
- Codex: Re-run
fluxctl codex completion-review(receipt enables context) - RP:
$FLUXCTL rp chat-send --window "$W" --tab "$T" --message-file /tmp/re-review.md(NO--new-chat)
- Repeat until
<verdict>SHIP</verdict>
CRITICAL: For RP, re-reviews must stay in the SAME chat so reviewer has context. Only use --new-chat on the FIRST review.
MAX ITERATIONS: Limit fix+re-review cycles to ${MAX_REVIEW_ITERATIONS:-3} iterations. If still NEEDS_WORK after max rounds, output <promise>RETRY</promise> and stop.
Before declaring SHIP at any phase boundary, apply flux-verify-claims.
Step 6: Security Scan (auto-triggered)
Runs automatically when changed files touch security-sensitive areas.
Detect if the epic's changed files include security-sensitive patterns:
If `SECURITY_FILES` is non-empty: Run the flux-security-review skill in staged mode against the branch diff. This invokes the full STRIDE scan (Spoofing, Tampering, Repudiation, Information Disclosure, DoS, Elevation of Privilege) with exploitability validation.
If `SECURITY_FILES` is empty: Skip security scan (pure UI or non-security changes).
After scan:
- Parse
validated-findings.jsonfor confirmed vulnerabilities (confidence >= 0.8) - Filter by severity threshold (same
SEVERITIESconfig) - Auto-fix findings in fix-list
- Commit:
git commit -m "fix: address security scan findings" - Re-scan if critical findings were found (max 1 re-scan)
Security findings are also captured in the Learning Capture phase.
Step 7: External Bot Self-Heal (if configured)
Only runs if `review.bot` is configured AND a PR exists for the branch.
See workflow.md "External Bot Self-Heal Phase" for full details. Summary:
Greptile
- Push branch and ensure PR exists
- Poll PR description for Greptile confidence summary (check every 15s, timeout 5 min)
- Parse confidence score and issue list
- Fix any issues at/above severity threshold
- Push fixes and re-poll until confidence is acceptable
CodeRabbit
- Push branch and ensure PR exists
- Run
coderabbit reviewCLI or poll PR comments for CodeRabbit review - Parse issue list from review output
- Fix any issues at/above severity threshold
- Push fixes and wait for re-review
Step 8: Browser QA (if applicable)
Only runs if `agent-browser` is detected on PATH AND a Browser QA Checklist task exists for this epic.
During scoping (/flux:scope), Flux auto-creates a "Browser QA Checklist" task for epics that involve frontend/web changes. This task contains testable criteria — URLs, expected elements, user flows — that the browser QA phase follows.
See workflow.md "Browser QA Phase" for full details. Summary:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flux-epic-review/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nairon-ai/flux/flux-epic-review)