一键导入
fast-track
Use when the user describes a small, low-risk change — bug fix with known cause, config change, dependency update, or small refactor under 100 lines
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user describes a small, low-risk change — bug fix with known cause, config change, dependency update, or small refactor under 100 lines
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when entering a new project for the first time, or when the codebase has changed significantly — generates a yin-side codebase map with structural analysis and silent failure surface assessment
Use when a plan with tasks exists and you need to execute implementation — requires index.yaml and tasks/ directory
Use when implement is complete and feature-level scar items need review — aggregates remaining scars across tasks, triages cross-task patterns, and fixes system-level rot before validate-and-ship
Use when research/kickoff is complete and you need to create an implementation plan with specs, tasks, and acceptance criteria
Use when research output is complete and planning would otherwise need to assume design, task-shape, structural boundaries, or evaluation details before implementation planning
Use when starting new feature work, investigating a problem, or when the user describes something they want to build — before any planning or implementation
| name | fast-track |
| description | Use when the user describes a small, low-risk change — bug fix with known cause, config change, dependency update, or small refactor under 100 lines |
A compressed workflow for low-risk changes. Death test still comes first.
陽面的 Fast Track 問「最少要做什麼」。陰面的 Fast Track 問「你能證明風險確實低嗎」。
Before entering Fast Track, you MUST verify the change meets ALL conditions for its type:
| Type | Must Confirm |
|---|---|
| Bug fix | Root cause is known + confirmed not hiding deeper issue |
| Config change | Confirmed no implicit behavior change triggered |
| Dependency update | Changelog has no breaking changes and no silent behavior changes |
| Small refactor | < 100 lines + no consumers depend on removed behavior |
Gate rule: If you cannot confirm these conditions, default to full workflow (invoke samsara:research). Fast Track is opt-in (prove safe) not opt-out (assume safe).
Suggest to the user:
「這個看起來適合 Fast Track,因為 ___。走 Fast Track 嗎?還是走完整流程?」
Only proceed after user confirms.
digraph fast_track {
node [shape=box];
start [label="使用者描述任務" shape=doublecircle];
gate [label="Gate: 能證明風險低?" shape=diamond];
full [label="invoke samsara:research\n(完整流程)" shape=doublecircle];
autopsy [label="Step 1: Quick Autopsy\n- 一句話 scope\n- 一句話:怎麼可能悄悄壞掉"];
spec [label="Step 2: Inline Spec + Death Clause\n- 驗收標準 inline\n- death clause: 如果___發生,視為失敗"];
impl [label="Step 3: Implement\n- Death test 先行(即使 fast track)\n- Unit test\n- 實作"];
review [label="Step 4: Quick Review + Ship\n- yin: 能刪?命名說謊?\n- quality: C5/C6/C7/C8\n- 寫 fast-track.yaml\n- Commit"];
done [label="完成" shape=doublecircle];
start -> gate;
gate -> full [label="no / 不確定"];
gate -> autopsy [label="yes + 使用者確認"];
autopsy -> spec;
spec -> impl;
impl -> review;
review -> done;
}
Inline review — main agent self-checks both yin and quality. No subagent dispatch.
Yin questions:
Quality questions (selected from C5 Reuse / C6 Clear Structure / C7 Elegant Logic / C8 No Redundancy — the 4 criteria most likely to be violated in changes < 100 lines; full 8 criteria in samsara/references/code-quality.md):
Selection rationale — why these 4 and not the other criteria:
Recording the review — quality_review (canonical field shape:
templates/fast-track.yaml):
reviewed_criteria — name which of C5 Reuse / C6 Clear Structure /
C7 Elegant Logic / C8 No Redundancy were actually checked. Required,
always, even when nothing was found wrong.
violations — list only what was found wrong. An empty list means
"reviewed and clean".
缺 reviewed_criteria 的空 violations 清單視為未檢查,不得 commit — it
is indistinguishable from "never reviewed" and must not ship.
Write fast-track.yaml to changes/ directory
Commit with [scar:none] or [scar:N items] tag
[scar:none] or [scar:N items]quality_review (reviewed_criteria + violations); checking only one face, or an empty violations list with no reviewed_criteria line, is an incomplete reviewSingle file at changes/YYYY-MM-DD_<description>/fast-track.yaml.
Example:
type: fast_track
description: "<one-sentence scope>"
death_clause: "<if ___ happens, this change is failed>"
acceptance:
- "<acceptance criterion 1>"
- "<acceptance criterion 2>"
scar_tag: none # none | N (item count)
scar_items:
- "<scar item if any>"
files_changed:
- "<file path>"
quality_review: # canonical field shape: templates/fast-track.yaml
# C5 Reuse / C6 Clear Structure / C7 Elegant Logic / C8 No Redundancy
reviewed_criteria: [C5, C6, C7, C8]
violations: []