From aegis
Enforces protocol discipline for multi-step tasks spanning sessions or subagents via checkpoint artifacts for todos, resumes, drift checks, and evidence bundles.
npx claudepluginhub ganyuanran/aegis --plugin aegisThis skill uses the workspace's default tool permissions.
Use this skill to keep long tasks checkpointed, resumable, drift-aware, and evidence-gated.
Executes long-running autonomous tasks with multi-phase checkpoints, verification stack, and interruption recovery for large refactors, migrations, and features over 50% context window.
Orchestrates multi-day execution of complex tasks via milestone pipelines with plan-crafting, run-plan, review-work phases, checkpoints, and recovery.
Coordinates multi-session, delegated, or long-running tasks using persistent state files, recovery checks, and explicit status transitions. For work spanning turns, agents, background jobs, or needing interruption recovery.
Share bugs, ideas, or general feedback.
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/.
These are draft / hint / projection inputs. They are not authoritative runtime records.
When scripts/aegis-workspace.py is available in the active method-pack
checkout, use it for the target project workspace and lifecycle records:
Initialize before writing work records:
python scripts/aegis-workspace.py init --root <target-project-root>
For a new medium+ task process trail, prefer helper-backed lifecycle creation over hand-created files:
python scripts/aegis-workspace.py 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 scripts/aegis-workspace.py add-checkpoint --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python scripts/aegis-workspace.py add-evidence --root <target-project-root> --work YYYY-MM-DD-<slug> ...
python scripts/aegis-workspace.py 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 scripts/aegis-workspace.py bundle --root <target-project-root> --work YYYY-MM-DD-<slug>
python scripts/aegis-workspace.py 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:
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 scripts/aegis-workspace.py bundle --root <target-project-root> --work YYYY-MM-DD-<slug> if the helper is available and a work record
exists.python scripts/aegis-workspace.py 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