deepwork-execute-amend
Lightweight single-gate amendment for execute mode — spawns MICRO-TEAM (CRITIC + 1 specialist) for re-verdict without full deepwork re-run
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Lightweight single-gate amendment for execute mode — spawns MICRO-TEAM (CRITIC + 1 specialist) for re-verdict without full deepwork re-run
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
View execute-mode session status — phase, plan_hash, drift, change_log, test results, 3-dimension verdict table, rollback log, discoveries
Run a deepwork session: research/design convergence (default) or plan execution (--mode execute). Design mode spawns a 5-archetype oppositional team and delivers an approved plan. Execute mode drives faithful implementation of an approved plan via role-asymmetric agents.
View deepwork session status — phase, team, bar verdicts, proposals, guardrails
End an active deepwork session — graceful per-teammate shutdown, archives state, and restores settings. CLI auto-cleans team dirs at session end. Works for both mid-flight abort and post-HALT cleanup.
Karpathy-style recap of deepwork history — reads DEEPWORK_WIKI.md Overview and the last 3 log entries, outputs 30-50 plain-text words
Add, remove, or list written-bar criteria for the active deepwork session
基于 SOC 职业分类
| name | deepwork-execute-amend |
| description | Lightweight single-gate amendment for execute mode — spawns MICRO-TEAM (CRITIC + 1 specialist) for re-verdict without full deepwork re-run |
| argument-hint | <gate-id> [--reason 'description of scope delta'] |
| allowed-tools | ["Read(${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/**)","Write(${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/**)","Edit(${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/**)","Glob","TaskList","TaskCreate","TaskUpdate","TaskGet","SendMessage","Agent"] |
| trigger-keywords | ["amend execute plan","re-verdict gate","lightweight amendment","scope delta","plan gap"] |
Invoke a lightweight single-gate amendment cycle for the active execute-mode session.
Spawns a MICRO-TEAM of CRITIC + 1 specialist to re-verdict a single gate in the execute session without re-running the full deepwork team. Use when:
scope-delta discovery with proposed_outcome: escalate has been appended to discoveries.jsonl/deepwork --mode default insteadPer plan §6 (full re-run threshold), redirect to /deepwork --mode default if ANY of:
In these cases, output a HALT recommendation and ask the user via AskUserQuestion to authorize a full re-run or cancel.
Read the active execute session state:
Glob: ${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/*/state.json
Filter for the instance with execute.phase not null and not "halt". Read state.json.execute.plan_ref, plan_hash, change_log, scope_amendments.
Identify the gate being amended from the <gate-id> argument (e.g., G-exec-3).
Read the gate's task from TaskList. Read the relevant change_log[] entry with metadata.bar_id == <gate-id>. Read the discovery entry from discoveries.jsonl that triggered this amendment.
Check full re-run threshold (step 2 above). If threshold is met, output HALT recommendation and stop.
Determine which specialist to spawn alongside CRITIC:
scope-guard specialistadversary specialistexecutor specialistauditor specialistSpawn the MICRO-TEAM via two Agent tool calls in one message:
critic — include references/critic-stance.md verbatim; instruct to re-verdict ONLY the PA dimension of <gate-id> against the proposed amendment<specialist> — include the appropriate stance from profiles/execute/stances/; instruct to read the discovery context and produce an amendment.v<N>.md in proposals/amendments/Wait for the micro-team to complete. The specialist produces proposals/amendments/amendment.v<N>.md. CRITIC verdicts it.
If CRITIC PASS on the amendment:
state-transition.sh append_array:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/state-transition.sh" \
--state-file "${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/<instance-id>/state.json" \
append_array .execute.scope_amendments \
'{"id":"SA-<N>","gate_id":"<gate-id>","amendment_file":"proposals/amendments/amendment.v<N>.md","reason":"<description>","approved_at":"<ISO>","triggered_by":"<discovery-id or null>"}'
plan_hash and clear drift via set_field:
NEW_HASH=$(sha256sum "$plan_ref" | cut -d' ' -f1)
bash "${CLAUDE_PLUGIN_ROOT}/scripts/state-transition.sh" \
--state-file "${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/<instance-id>/state.json" \
set_field .execute.plan_hash "$NEW_HASH"
bash "${CLAUDE_PLUGIN_ROOT}/scripts/state-transition.sh" \
--state-file "${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/<instance-id>/state.json" \
set_field .execute.plan_drift_detected false
resolution field: "resolved via SA-<N>"If CRITIC FAIL on the amendment:
permissionDecision:"ask" silently degrades to "deny" in non-interactive mode. This skill does not use "ask".permissionDecision:"deny" (via hookSpecificOutput) or exit 2, not the deprecated decision:"block"./deepwork-execute-status — view current execute session state before invoking amendment/deepwork --mode default — full re-run when amendment threshold is exceeded