一键导入
ultraqa
Iterative fix-and-verify loop for tests, build, lint, or typecheck. Diagnoses failures, applies fixes, re-verifies — up to 5 cycles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Iterative fix-and-verify loop for tests, build, lint, or typecheck. Diagnoses failures, applies fixes, re-verifies — up to 5 cycles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
UI/UX design intelligence with searchable database
Generate comprehensive implementation plans through systematic discovery, synthesis, verification, and decomposition into beads. Use when asked to plan a feature, create a roadmap, design an implementation approach, or decompose work into trackable issues. Do NOT use for simple one-step tasks, quick fixes, or when the user just wants to execute an existing plan — use the work skill instead.
Execute a plan or direct task with worker delegation and verification.
Deep investigation mode. Gather context, analyze, synthesize recommendations without making code changes.
Fetch up-to-date library documentation via Context7 MCP. Use when working with external libraries, APIs, or frameworks.
Start interview-driven planning with Prometheus. Asks clarifying questions before generating implementation plan.
| name | ultraqa |
| description | Iterative fix-and-verify loop for tests, build, lint, or typecheck. Diagnoses failures, applies fixes, re-verifies — up to 5 cycles. |
| argument-hint | [--tests|--build|--lint|--typecheck|--custom '<command>'] |
| allowed-tools | Read, Write, Edit, Bash, Grep, Glob, Task, TeamCreate, TeamDelete, SendMessage, AskUserQuestion |
| disable-model-invocation | true |
Run a verification command, diagnose failures, fix them, repeat — until green or cycle limit hit. Never commits.
--tests — Run project test suite (default)--build — Run build command--lint — Run linter--typecheck — Run type checker--custom '<command>' — Run a custom verification commandIf no argument given, default to --tests.
git commit — UltraQA fixes code but NEVER commits. The user decides when to commit.Based on the argument, determine the command to run:
| Goal | Detection | Command |
|---|---|---|
--tests | package.json → bun test; pyproject.toml → pytest; Cargo.toml → cargo test | Auto-detected |
--build | package.json → bun run build; Cargo.toml → cargo build | Auto-detected |
--lint | package.json → bun run lint; .eslintrc* → eslint | Auto-detected |
--typecheck | tsconfig.json → tsc --noEmit; pyproject.toml → mypy | Auto-detected |
--custom | User-provided command | Exact command |
If auto-detection fails, ask the user:
AskUserQuestion(
questions: [{
question: "What command should I run for verification?",
header: "QA Command",
options: [
{ label: "bun test", description: "JavaScript/TypeScript tests" },
{ label: "pytest", description: "Python tests" },
{ label: "cargo test", description: "Rust tests" }
],
multiSelect: false
}]
)
Run the verification command and capture output:
{command} 2>&1
Save state:
// .maestro/handoff/ultraqa-state.json
{
"goal": "--tests",
"command": "bun test",
"cycle": 1,
"max_cycles": 5,
"status": "running",
"failures": [],
"repeat_count": 0,
"started": "{ISO timestamp}"
}
If the command passes on first run:
All checks pass. No fixes needed.
Exit immediately.
Create a team for diagnosis:
TeamCreate(team_name: "ultraqa-{goal}", description: "UltraQA {goal} cycle {N}")
Parse the failure output. Spawn workers:
oracle — for complex/unclear failures: "Analyze this failure output and identify root cause: {output}"build-fixer — for build/lint/typecheck errors with clear error messageskraken — for test failures requiring new test fixtures or multi-file changesWorker selection heuristic:
build-fixerkrakenoracle for diagnosis first, then kraken/build-fixer for fixDelegate the fix to the appropriate worker. Provide:
Run the same verification command again. Update state:
{
"cycle": 2,
"status": "running",
"failures": ["previous failure summary"],
"repeat_count": 0
}
Continue if:
Stop if ANY of these:
## UltraQA Report
### Result: SUCCESS | CYCLE_LIMIT | STUCK | BLOCKED
### Cycles Run: N/5
### Goal: {goal}
### Command: `{command}`
### Fixes Applied
1. Cycle 1: [what was fixed] — [file:line]
2. Cycle 2: [what was fixed] — [file:line]
### Remaining Failures (if any)
- [failure description]
### State File
`.maestro/handoff/ultraqa-state.json`
TeamDelete(reason: "UltraQA session complete")
TeamDelete cleanup: If TeamDelete fails, fall back to: rm -rf ~/.claude/teams/{team-name} ~/.claude/tasks/{team-name}
Update state file:
{
"status": "completed",
"result": "SUCCESS",
"cycles_used": 3,
"completed": "{ISO timestamp}"
}
State is persisted at .maestro/handoff/ultraqa-state.json so that:
/status can report on active UltraQA sessions| Don't | Do Instead |
|---|---|
| Commit fixes | Leave uncommitted — user decides when |
| Run multiple goals | One goal per invocation |
| Keep going past 5 cycles | Stop and report |
| Retry same fix | If a fix didn't work, try a different approach |
| Fix unrelated issues | Only fix failures from the verification command |