一键导入
long-task-continuation
Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before completion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before completion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when defining new features, product behavior, UI/component design, architecture choices, contract changes, or ambiguous medium/high-complexity work before implementation.
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Use when the user asks to create, write, update, amend, supersede, or evaluate an ADR, architecture decision record, durable architecture decision, decision log, or baseline sync after architecture-changing work.
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when strict TDD is explicitly requested, or when an approved atomic implementation task has already chosen TDD Route strict.
Use when the user says `aegis:update`, asks to update or upgrade an installed Aegis method-pack, wants the latest Aegis version, or asks whether Aegis is current on this host.
基于 SOC 职业分类
| name | long-task-continuation |
| description | Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before completion. |
Use this skill to keep long tasks checkpointed, resumable, drift-aware, and evidence-gated.
This is a protocol skill. It does not execute plans, dispatch subagents, run tests, or grant completion authority.
Current owner:
Not owned here:
GateDecisionUse this skill when any of these are true:
For short direct answers or one-command checks, do not force this protocol.
Maintain artifacts under docs/aegis/work/YYYY-MM-DD-<slug>/:
| Artifact | File | When |
|---|---|---|
| TaskIntentDraft | 10-intent.md and optional task-intent-draft.json | Start protocol |
| BaselineReadSetHint | 10-intent.md (inline) | Start protocol |
| ImpactStatementDraft | 10-intent.md (inline) | Start protocol |
| TodoCheckpointDraft | 20-checkpoint.md and optional todo-checkpoint-draft.json | Each checkpoint |
| ResumeStateHint | 20-checkpoint.md (inline) | Each pause/handoff |
| DriftCheckDraft | 20-checkpoint.md (inline) and optional drift-check-draft.json | Per-slice protocol |
| EvidenceBundleDraft | 90-evidence.md and optional evidence-bundle-draft.json | Per-slice protocol |
| Reflection | 99-reflection.md | Completion candidate |
For medium+ complexity tasks only. Low-complexity tasks skip work/.
Planless Slice Lane:
Use this lane when a parent plan or parent spec already owns the long-task workstream and the current micro-slice only executes or refines one bounded parent task.
Record a compact Slice Card instead of creating another durable plan/spec:
Slice Card:
- Goal:
- Parent plan/spec:
- Files:
- Boundary:
- Verification:
- Stop:
Slice Card Goal anchors slice-level completeness only.
It does not by itself grant whole-task completion.
Final completion still requires verification-before-completion Goal Closure
against the parent plan/spec and any active goal frame.
Do not create new plan/spec files for micro-slices that stay inside the parent plan, existing compatibility boundary, and known verification path.
Update the existing checkpoint, evidence, and drift records when persistent state is needed.
Escalate out of this lane only when a new owner, contract, schema, public API, architecture boundary, migration, persistence, security/permission, distribution/release surface, or unclear verification boundary appears.
When durable architecture decisions are in scope, these work records are the preferred ADR Auto Backfill source. Preserve ADR signals, source refs, alternatives, compatibility boundaries, drift checks, retirement notes, and baseline-sync questions in the work record instead of relying on memory at completion time.
These are draft / hint / projection inputs. They are not authoritative runtime records.
When configured Aegis workspace support or installed Aegis workspace support is available, use it for the target project workspace and lifecycle records:
Initialize before writing work records:
python <aegis-workspace-helper> init --root <target-project-root>
For a new medium+ task process trail, prefer helper-backed lifecycle creation over hand-created files:
python <aegis-workspace-helper> new-work --root <target-project-root> --date YYYY-MM-DD --slug <slug> --title "<title>" --requested-outcome "<outcome>" --scope "<scope>" --change-kind <kind>
After each slice, update checkpoint, evidence, and drift through the helper:
python <aegis-workspace-helper> add-checkpoint --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python <aegis-workspace-helper> add-evidence --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python <aegis-workspace-helper> add-drift-check --root <target-project-root> --work YYYY-MM-DD-<slug> ...
Before pause, handoff, or completion candidate, assemble a structural proof bundle and check the workspace:
python <aegis-workspace-helper> bundle --root <target-project-root> --work YYYY-MM-DD-<slug>
python <aegis-workspace-helper> check --root <target-project-root>
These helper checks validate workspace structure, index coverage, and JSON
sidecar shape only. They do not determine evidence sufficiency, do not produce
authoritative GateDecision, and do not grant completion authority.
Before long-task execution:
needs-baseline-readback.aegis-workspace.py new-work to
create/index the first docs/aegis/work/ files and run check --root <target-project-root> before continuing.Before each work slice, restate:
For micro-slices under an existing parent plan, use the Planless Slice Lane and state the Slice Card instead of opening a new planning/specification artifact.
After each work slice, update:
aegis-workspace.py add-checkpoint,
aegis-workspace.py add-evidence, and aegis-workspace.py add-drift-check
when availableIf no fresh evidence exists, the state is needs-verification or partial.
When resuming:
Never resume from memory alone.
Answer these after each slice:
Allowed decisions:
continuepause-for-userneeds-baseline-readbackneeds-verificationblockedForbidden decisions:
gate-passedcompletion-grantedauthoritatively-safeBefore saying work is complete:
python <aegis-workspace-helper> bundle --root <target-project-root> --work YYYY-MM-DD-<slug> if the helper is available and a work record
exists.python <aegis-workspace-helper> check --root <target-project-root>
if the helper is available and the task wrote docs/aegis/ records.GateInputPack as future-runtime input only.Method Pack output is verified evidence and advisory judgment only. It is not authoritative completion.
Use this shape for long-task updates:
TodoCheckpointDraft: current todo, completed todos, active slice, next stepEvidence: commands, files, logs, or manual checksDriftCheckDraft: scope, compatibility, retirement, decisionRisk / Unknown: unresolved blockers or missing evidenceNext: the next smallest safe action