From ouroboros-loops
Saves a handoff summary to .ouroboros/handoff.md after each Ouroboros step completes. Called by the ouroboros-agent after invoking a step skill, so the next step agent can start with compressed context instead of a full history.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ouroboros-loops:context-handoffThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Save a compressed context summary so the next step's agent can start fresh without losing critical information.
Save a compressed context summary so the next step's agent can start fresh without losing critical information.
The ouroboros-agent invokes this skill automatically after every step skill completes (analyze, fix, enhance, report, evaluate). Do not call directly.
Read .ouroboros/state.json and collect:
goaliterationcurrentStep — the step that just completedRead .ouroboros/config.json to include user preferences in the handoff for the next agent.
Map completed step to the next step:
| completed_step | next_step |
|---|---|
| research | analyze |
| analyze | fix |
| fix | branch |
| branch | enhance |
| enhance | report |
| report | evaluate |
| evaluate | determine |
| determine | (end of iteration) |
Review what was changed during this step. Check:
git diff --name-only HEAD or git status --short) for uncommitted changesList the modified files concisely.
Write .ouroboros/handoff.md (overwrite if exists):
# Ouroboros Handoff
- iteration: <N>
- completed_step: <step_name>
- next_step: <next_step_name or "end_of_iteration">
- timestamp: <YYYY-MM-DD>
## Goal
<goal from state.json>
## 사용자 설정
- intensity: <intensity from config.json, or "balanced" if not set>
- focusArea: <focusArea from config.json, or "전체" if not set>
- userNotes: <userNotes from config.json, or "(없음)">
## 이전 스텝 요약
<Brief description of what was done in this step — 3–5 sentences max. Focus on what changed, what was found, and key decisions made.>
## 수정된 파일
- <file1>
- <file2>
(empty list if no files were modified)
## 다음 스텝 참고사항
<Key information the next step agent needs to know. For example: which bugs were found and prioritized, which fixes were applied so enhance doesn't duplicate them, or which issues remain unresolved. Keep it actionable and brief.>
After writing handoff.md, also write a versioned copy for history:
.ouroboros/handoff-history/handoff-<step>-iter<N>.md
Where <step> is completed_step and <N> is the iteration number (padded to 2 digits, e.g., 01).
Example: .ouroboros/handoff-history/handoff-fix-iter01.md
Create the .ouroboros/handoff-history/ directory if it does not exist. The versioned file has identical content to handoff.md. This allows post-hoc debugging of the full decision flow across all steps and iterations without affecting the main handoff.md used by agents.
If completed_step is evaluate and determine is NOT in the active step sequence (i.e., loop-config.json does not include "determine"), update currentStep in state.json to "done".
If completed_step is determine, update currentStep in state.json to "done".
For all other steps, leave currentStep unchanged — the start/resume skill writes it before each agent call.
Read the current state.json, update only the currentStep field, and write back. Preserve all other fields.
Print a brief completion message:
[context-handoff] Handoff saved: completed=<step>, next=<next_step>
npx claudepluginhub juyeongyi/jylee_claude_marketplace --plugin ouroboros-loopsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.