# Long Task Continuation

Use when a task is multi-step, may span context resets or sessions, uses subagents, or...

- Repository: https://github.com/GanyuanRan/Aegis (1408 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-25
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add GanyuanRan/Aegis --skill long-task-continuation -g -a claude-code -y`
Codex: `npx skills add GanyuanRan/Aegis --skill long-task-continuation -g -a codex -y`
Cursor: `npx skills add GanyuanRan/Aegis --skill long-task-continuation -g -a cursor -y`
Gemini CLI: `npx skills add GanyuanRan/Aegis --skill long-task-continuation -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add GanyuanRan/Aegis`

## Description

Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before completion.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Long Task Continuation

## Overview

Keep long work checkpointed, resumable, drift-aware, and evidence-gated. This
protocol does not execute plans, dispatch subagents, run tests, or grant
completion authority.

## Authority Boundary

The Method Pack owns continuation discipline only. It does not own the parent
plan, host retry/watchdog behavior, authoritative `GateDecision`, evidence
sufficiency, requirement acceptance, or completion.

## When To Use

Use this skill when the work has meaningful phases, may be compacted/resumed or
handed off, uses subagents, or explicitly needs continuity and drift control.
Architecture, contract, shared-workflow, and verification-gate changes also
benefit from it. Do not force it onto a short answer or one-command check.

Choose exactly one state carrier:

- within this continuation workflow, use a durable `work/` record for
  medium/high work, or for work of any complexity that actually crosses
  sessions, needs handoff, or requires resumable state;
- otherwise keep one inline checkpoint.

Multi-step, todo-driven, possible-compaction, and subagent use do not force
durable records for low-complexity work by themselves. Do not create both carriers or a record per
slice.

## Required Artifacts

A durable task has one process trail under
`docs/aegis/work/YYYY-MM-DD-<slug>/`. It keeps logical intent/baseline state,
the latest todo/checkpoint/resume state, terminal evidence/drift state, and a
completion reflection when warranted. These are
`TaskIntentDraft`, `BaselineReadSetHint`, `BaselineUsageDraft`,
`ImpactStatementDraft`, `TodoCheckpointDraft`, `ResumeStateHint`,
`DriftCheckDraft`, and `EvidenceBundleDraft` views, not authoritative runtime
records or separate plan owners.

Read only the lifecycle-matched section of `durable-work-guidance.md`:

The rest: https://github.com/GanyuanRan/Aegis/blob/HEAD/skills/long-task-continuation/SKILL.md
