基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshsymonds/gambit --skill task-refinement命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Turns a rough idea into an approved epic contract with immutable requirements, anti-patterns, and a first wave of executable tasks.
Turns a rough idea into an approved epic contract with immutable requirements, anti-patterns, and a first wave of executable tasks.
Executes an approved epic one wave at a time, dispatching a worker per task and stopping at a checkpoint after each wave. Use when an approved epic contract and native wave plan exist in the current root session, when resuming work after a previous checkpoint, or when iteratively building a feature and execution learnings require a later wave. User phrases like "continue the plan", "next wave", "resume where we left off", "pick up the epic".
| name | task-refinement |
| description | Refines prepared work briefs until each one is executable by a junior engineer without questions. |
| when_to_use | Use this implementation mechanic to refine prepared work briefs only when explicitly invoked by name or called by an active Gambit workflow owner; do not select it implicitly as a peer workflow. |
| user_invokable | true |
Freedom: LOW — apply all 8 categories to every brief; reject anything with placeholders or critical gaps.
Review Tasks systematically. Find gaps, fix them, verify fixes. A task is ready when a junior engineer can execute it without asking questions.
Core principle: Don't just identify problems — fix them. Update each Task, then read it back to verify.
Iron Law: NO task passes review with vague criteria, missing file paths, or placeholder text. Every task must be executable by a junior engineer without questions. No exceptions.
| Category | Key Check | Auto-Reject If |
|---|---|---|
| 1. Granularity | Scoped to one sitting (~15-45m)? | Any task without breakdown estimate |
| 2. Implementability | Junior executes without questions? | Vague language, missing file paths |
| 3. Success Criteria | Measurable, verifiable? | "Works correctly", "is implemented" |
| 4. Dependencies | Correct blocking order? | Circular or missing dependencies |
| 5. Anti-patterns | Forbidden patterns specified? | No anti-patterns section |
| 6. Edge Cases | Empty/unicode/concurrent/failure? | No edge case consideration |
| 7. Red Flags | Placeholder text? TODOs? | "[detailed above]", "[as specified]" |
| 8. Test Quality | Tests catch real bugs? | Tautological or happy-path-only tests |
gambit:executing-plans starts implementationgambit:brainstorming creates tasksDon't use for:
gambit:brainstorminggambit:debuggingTaskList
Identify the epic and all subtasks. Read each with TaskGet.
For each task, apply every category. No skipping — "straightforward" tasks hide the worst edge cases.
If too large: Create subtasks with TaskCreate, link with addBlockedBy.
Red flags: "Implement properly", "Add support", "Make it work", missing file paths.
Rewrite vague criteria into measurable ones:
npm test, 0 failures, exit 0"blockedBy relationships correct?Verify with TaskList output.
Ask for each task:
Add findings to task's Key Considerations section. See REFERENCE.md for edge case examples.
If any found, REJECT the plan:
Tests must catch real bugs, not inflate coverage.
For each test specification, ask:
Reject: Tests that only verify syntax/existence, tautological tests, tests without meaningful assertions, generic test names ("test_basic").
See REFERENCE.md for good/bad test examples.
After reviewing, update each task with fixes:
TaskUpdate
taskId: "[task-id]"
description: |
[Original content, preserved and strengthened]
## Key Considerations (ADDED BY REVIEW)
**Edge Case: [Name]**
- [What could go wrong]
- MUST [specific mitigation]
## Anti-patterns
[Original anti-patterns]
- NEW: [Specific anti-pattern for this task's risks]
Rules for updates:
After every TaskUpdate, read back with TaskGet and verify:
TaskGet
taskId: "[task-id]"
Check:
If ANY placeholder found: Rewrite with actual content immediately.
## Plan Review Results
### Overall: [APPROVE / NEEDS REVISION / REJECT]
### Task-by-Task
#### [Task Name] ([task-id])
**Status**: [Ready / Needs Revision / Rejected]
**Issues Found**: [count]
**Improvements Made**:
- [What was fixed]
**Edge Cases Added**:
- [What failure modes now addressed]
[Repeat for each task]
### Summary
- Tasks updated: [list]
- Critical issues found: [count]
- Recommendation: [approve/revise/reject with reasoning]
See REFERENCE.md for detailed examples including:
After refinement is complete, route to execution.
Invoke executing-plans directly — it enters the epic worktree automatically:
Skill skill="gambit:executing-plans"
Announce it in one line first ("Tasks refined and ready — starting execution.") so the transition is visible.
Called by:
gambit:brainstorming (optional, user chooses at handoff)/gambit:task-refinementCalls:
gambit:executing-plans (invoked directly after refinement — enters the epic worktree automatically)Workflow:
gambit:brainstorming → gambit:task-refinement → gambit:executing-plans
↓
(if gaps: revise tasks, re-review)