auto-pilot-handofflisted
Install: claude install-skill silvesterdivas/context-engineer
# Auto-Pilot Handoff
This skill activates automatically when the context budget warning hook announces RED zone via a `[context-budget] RED ZONE` systemMessage. Invocation is not required - this skill governs behavior after the hook fires.
## When Handoff is Triggered
After completing any atomic unit of work (a file edit, a commit, a test run, a search), if the budget warning hook has announced **RED zone** via systemMessage:
1. **Stop starting new work.** Finish only the immediately active operation.
2. **Do not read new files** or begin exploratory searches.
3. **Proceed directly** to generating the handoff files below.
## Generate Enhanced TASK.md
Create or append to `TASK.md` in the project root using this template:
```markdown
# Task: [Brief title]
## Goal
[Clear description of what needs to be accomplished]
## Context
- **Branch:** [current git branch]
- **Date:** [today's date]
- **Previous sessions:** [list any prior TASK.md sections or session IDs if known]
## Constraints
- [Tech stack, patterns, style requirements]
- [Any limitations or requirements discovered]
## Key Files
- [List the most relevant files for this task, with brief purpose notes]
## Key Decisions Made
- **[Decision]:** [What was decided]
- *Reasoning:* [Why this approach was chosen]
- *Rejected alternatives:* [What was considered and discarded, and why]
## Approaches Tried & Failed
- **[What was attempted]:**
- *Why it failed:* [Root cause]
- *Lesson:* [What to avoid or do differ