Session context cleanup and file re-anchoring strategy for controller and worker sessions. Use when the session is drifting, phases change, or resumed work needs index-first recovery from files.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Session context cleanup and file re-anchoring strategy for controller and worker sessions. Use when the session is drifting, phases change, or resumed work needs index-first recovery from files.
context-cleanup
Audience
controller
worker
Triggers
clean context
session drift
re-anchor context
resume after pause
phase transition
CLI Binding
agent-team context-cleanup
This skill is a standalone context-cleanup and file re-anchoring entry.
Required Entry
controller/main: MUST read .agent-team/rules/index.md first.
worker: MUST read worker.yaml first.
Expansion
controller/main: read only the rule files matched from .agent-team/rules/index.md, then the current workflow/task artifacts.
worker: read task.yaml after worker.yaml, then context.md and referenced materials only when needed.
Hard Rules
Clean session context, not file contents.
Never skip the required entry file.
Never default to scanning all rule bodies or all task context files.
Never describe this skill as context compression.
Boundary
Use this skill to stabilize context and re-anchor from files.
Use worker-recovery for routine worker task resume when the problem is simply recovering the current assignment.