一键导入
rework-loop
Structured rework with git blame attribution for failed goal iterations. Maps failures to responsible changes and routes targeted fix briefs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Structured rework with git blame attribution for failed goal iterations. Maps failures to responsible changes and routes targeted fix briefs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
上下文优化技能,通过 trigger-based 懒加载和 context composition awareness 自动重组长会话上下文。
Goal-oriented autonomous loop with external completion oracle. Keeps iterating until verifiable stopping conditions are met, checked by a separate model.
Scheduled discovery automation that runs scans on a heartbeat interval, classifies findings, and routes them to goals or triage inbox.
Active MCP connector polling that integrates external tools (issue trackers, error monitoring, CI) into the heartbeat loop for cross-system discovery.
将 CodeGraph 作为默认内置 MCP-backed 代码图谱能力接入,用于 brownfield 符号搜索、 调用链、影响面和上下文查询。输出必须回落到 `/team-*` 主链和 artifacts。
Use Open Design as an external local-first design workbench for prototypes, decks, mobile screens, dashboards, DESIGN.md systems, and exportable visual artifacts. Keep TSP responsible for team workflow, handoff, and quality gates.
| name | rework-loop |
| description | Structured rework with git blame attribution for failed goal iterations. Maps failures to responsible changes and routes targeted fix briefs. |
| origin | ECC |
Structured rework with blame attribution for failed goal iterations. When the oracle says "fail," don't blindly retry — identify what broke, map it to the responsible change, and route a targeted fix.
fail verdict during a goal iterationBlind retry is the #1 waste in autonomous loops. A rework loop instead:
git diff / git blame to find the responsible changeOracle: FAIL
│
▼
Parse failure → "tests/auth.test.ts:45 — token refresh assertion fails"
│
▼
Blame → "src/auth/refresh.ts:23 changed in this iteration"
│
▼
Rework brief → {file: "src/auth/refresh.ts", constraint: "only fix refresh logic"}
│
▼
Route → backend-engineer or typescript-reviewer
│
▼
Track → attempts[src/auth/refresh.ts] += 1
The rework brief is a structured context packet for the next iteration:
## REWORK BRIEF
**Goal:** {original objective}
**Iteration:** {N} (rework attempt {M} for this location)
**Failing evidence:**
- Test: tests/auth.test.ts:45 — "should refresh expired tokens"
- Error: Expected token.expiresAt to be > now, got 2024-01-01
**Root cause (blame):**
- File: src/auth/refresh.ts:23
- Change: Added early return before expiry check
- Commit: (this iteration, uncommitted)
**Constraint:**
- ONLY modify src/auth/refresh.ts
- DO NOT touch test files (they define correct behavior)
- The refresh logic must handle: valid token, expired token, missing token
**Suggested fix:**
- Remove the early return at line 23
- Ensure expiry check runs before refresh attempt
Rework escalates to triage when:
| Condition | Action |
|---|---|
| 3+ rework attempts on same location | Escalate: "persistent trouble spot" |
| Rework introduces new failures | Escalate: "regression cascade" |
| Blame maps to multiple unrelated files | Escalate: "scope too broad for targeted rework" |
| No clear blame (flaky test, env issue) | Escalate: "non-deterministic failure" |
git diff --name-only (this iteration vs last good)git diff <file> to extract specific hunksTrack attempts per file/function to detect patterns:
{
"src/auth/refresh.ts": {
"attempts": 3,
"lastAttempt": "2024-01-15T10:30:00Z",
"outcomes": ["fail", "fail", "pass"],
"totalCost": 1.20
}
}
When attempts >= 3 without convergence: this is a persistent trouble spot.
The loop should escalate rather than keep burning budget.
/goal: Rework replaces blind retry in the maker-oracle loopcompletion-oracle.js: Oracle's failReasons feed into blame parsing/triage: Escalated rework items go to triage inbox