From qe-framework
Enables fully autonomous execution mode that skips all confirmations and auto-allows tool permissions. Useful for unattended or high-trust automation workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/qe-framework:QutopiaThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Command | Behavior |
| Command | Behavior |
|---|---|
/Qutopia | Auto mode — classify simple/complex, auto-select work or qa |
/Qutopia --work | Force work mode (spec pipeline, no quality loop) |
/Qutopia --qa | Force qa mode (spec pipeline + quality loop) |
/Qutopia --ralph | Ralph loop — auto-repeat PSE Chain until VERIFY_CHECKLIST is fully complete |
/Qutopia --ralph off | Stop Ralph loop (manual interrupt) |
/Qutopia off | Disable autonomous mode |
When a task has 10+ checklist items or involves massive multi-file changes, PSE chain may not be the best approach. Consider escalating to a dynamic workflow:
/goal with the workflow: /goal all tests pass, or stop after 30 turns--work or --qa as normal.See docs/CLAUDE_CODE_FEATURES.md for full /workflows and /goal reference.
| /Qutopia status | Show current state |
Creates .qe/state/utopia-state.json:
{
"enabled": true,
"mode": "auto|work|qa",
"activatedAt": "2026-03-20T00:00:00Z"
}
When enabled: true, ALL skills/agents:
AskUserQuestion — auto-select first (recommended) optionMerge into .claude/settings.json:
{
"permissions": {
"allow": [
"Read", "Write", "Edit", "Glob", "Grep",
"Bash(*)", "Agent(*)", "WebFetch", "WebSearch", "NotebookEdit"
]
}
}
/Qutopia, no flag)Request → Classify complexity → SIMPLE → Execute directly
→ COMPLEX → Auto-select mode → Spec pipeline
A task is classified as SIMPLE when ALL of the following are true:
SIMPLE tasks execute directly without a formal TASK_REQUEST document. This is an intentional trade-off for micro-task velocity. Other documents (PRINCIPLES.md, Qgenerate-spec) reference this definition — do not duplicate.
COMPLEX (ANY true): target files > 3, new feature, architecture decisions, checklist items ≥ 3 → enter spec pipeline
Auto mode selection for COMPLEX requests:
| Signal | Mode | Reason |
|---|---|---|
type: code + has tests (test files exist in project) | qa | If test infrastructure exists, leverage quality loop |
type: code + auth/crypto/payment keywords | qa | Security-sensitive code requires quality validation |
type: code + no tests | work | Quality loop pointless if tests don't exist |
type: docs / type: analysis / type: other | work | Quality loop unnecessary |
Output: [Utopia] COMPLEX → {mode} mode (reason)
--work modeRequest → Gate → Qgenerate-spec → Qrun-task → Verify ─┐
├→ Pass → Done
└→ Fail → Diagnose → Re-execute → Verify (retry loop)
"mode": "work", max reinforcements: 50Etask-executor agents in parallel/Qrun-task {UUID} in autonomous mode--qa modeRequest → Gate → Qgenerate-spec → Qrun-task → Qcode-run-task → Verify ─┐
├→ Pass → Done
└→ Fail → Diagnose → Re-execute → Verify (retry loop)
"mode": "qa", max reinforcements: 80/Qcode-run-task (test → review → fix → retest, max 3 cycles)Esecurity-officer before marking verification complete--ralph mode (autonomous loop)Extends --work / --qa with a session-level repeat loop: the Stop hook detects incomplete VERIFY_CHECKLIST items and automatically re-injects the next item until all items are marked [x].
Request → Gate → Qgenerate-spec → Qrun-task → Verify ──┐
│
┌────────────────────────────────────────────────┘
│ (Stop hook detects remaining [ ] items)
↓
Re-inject next item → Qrun-task → Verify ──┐
│
┌───────────────────────────────────────┘
│ (all items [x])
↓
Generate report → Done
State file: .qe/state/ralph-state.json — persists across stop events.
Auto mode selection: --ralph auto-picks work or qa using the same rules as default mode (test presence + security keywords).
Safety limits:
| Limit | Default | Behavior |
|---|---|---|
maxLoops | 50 | Hard stop when exceeded |
maxPerHour | 100 | Rate limit per wall-clock hour |
maxConsecutiveFailures | 3 | Circuit breaker — same item failing N times → skip + log |
| Stale guard | 30 min | Auto-expire via persistent-mode stale guard |
Context pressure handling:
When tool_calls > 200 in a single loop iteration, the loop automatically:
/Qcompact to compress contextProgress output (every loop cycle):
[Ralph] 7/12 done (58%) — Loop #4
Final report (on completion): .qe/state/ralph-report.json with total loops, duration, skipped/failed counts.
Mutual exclusion: --ralph is mutually exclusive with --work and --qa flags. Internally it selects one of them automatically. Specifying --ralph --work is an error.
Manual interrupt: /Qutopia --ralph off clears ralph-state and exits persistent mode immediately.
Automatically diagnose and re-execute on verification failure. Repeats until success with safety limits.
Verify failed
→ Step 1: Diagnose — analyze failed items, categorize root causes
→ Step 2: Strategy — determine response per cause
→ Step 3: Re-execute — re-run failed items only
→ Step 4: Re-verify — verify again
→ Pass? → Done
→ Fail? → retry_count < max? → return to Step 1
→ max reached → Escalate
Analyze failed VERIFY_CHECKLIST items and categorize root causes:
| Root Cause | Response | Example |
|---|---|---|
| Implementation gap | Re-run the checklist item | File not created, function unimplemented |
| Implementation error | Use Ecode-debugger to diagnose, then fix | Test failure, runtime error |
| Spec conflict | Revise checklist item, then re-run | Conflicting requirements |
| Environment issue | Fix environment, then re-run | Missing dependency, permission denied |
| Mode | Max Retries | Max Total Time | Escalation |
|---|---|---|---|
| work | 3 | — | Report failure to user + choices (Retry/Abort/Override) |
| qa | 5 | — | Report failure to user + QA report |
Record retry state in .qe/state/utopia-state.json:
{
"retry": {
"count": 2,
"failed_items": ["VERIFY item 3", "VERIFY item 5"],
"last_diagnosis": "implementation error — test assertion mismatch",
"history": [
{"attempt": 1, "failed": 3, "fixed": 1},
{"attempt": 2, "failed": 2, "fixed": 1}
]
}
}
If the same item fails twice consecutively, change approach:
Output per retry:
[Utopia] Retry #{n} — {failed_count} items failed → diagnosis: {cause}
[Utopia] Re-executing: {item list}
Before entering spec pipeline (--work/--qa or COMPLEX routing), check prompt specificity:
| Signal | Example |
|---|---|
| File path | .ts, src/ |
| Function/class name | camelCase, PascalCase |
| Issue/PR number | #N, PR N |
| Error reference | TypeError |
| Code block | Triple backticks |
| Numbered steps | 1. ... 2. ... |
Decision:
force: or ! prefix → bypass gateAfter ALL tasks in a session complete, run cross-task consistency check:
--ralph is active, the Stop hook blocks premature termination until VERIFY_CHECKLIST is fully complete. See --ralph mode section for safety limits..qe/state/utopia-state.json with mode.claude/settings.json (create if not exists)permissions.allow (preserve existing)Utopia mode ON ({mode}) — autonomous pipeline active/Qutopia off)enabled: falsepermissions.allow from settingsUtopia mode OFF — confirmations restored/Qutopia offRead .qe/state/utopia-state.json
If enabled: true → skip AskUserQuestion, auto-select first option
If enabled: false or missing → normal behavior
npx claudepluginhub inho-team/qe-framework --plugin qe-frameworkCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.