context-management
Use when performing state-changing operations, recovering sessions, creating handoffs, or managing context freshness
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when performing state-changing operations, recovering sessions, creating handoffs, or managing context freshness
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when Codex is asked to colonize, plan, build, continue, swarm, or seal an Aether colony and must mirror wrapper orchestration safely
Use when Codex is asked to initialize or set up an Aether colony and should refine intent before running init
Use when Codex is asked to run Aether Oracle or discuss flows and should refine scope before research or clarification
Use when acceptance criteria need unit, integration, or end-to-end tests generated from implementation context
Use when delivered functionality needs acceptance-criteria verification before a phase advances
Use when a phase involves LLMs, AI agents, RAG, ML inference, or prompt/tool integration design
| source | shipped |
| name | context-management |
| description | Use when performing state-changing operations, recovering sessions, creating handoffs, or managing context freshness |
| type | colony |
| domains | ["context","session","recovery","state"] |
| agent_roles | ["builder","watcher","scout","architect"] |
| priority | normal |
| version | 1.0 |
Colony context must stay fresh and recoverable. When sessions break, context is the bridge that lets the next session pick up without losing progress. This skill teaches you how to maintain that bridge.
Any operation that modifies colony state must update context. State-changing operations include:
After each of these, call context-update to write the current state summary to CONTEXT.md. This ensures the context file always reflects reality.
Before reading state files (COLONY_STATE.json, pheromones.json, session.json), verify freshness using session-verify-fresh:
Freshness matters because state files from a previous session may contain outdated phase pointers, resolved blockers, or expired signals that would mislead the current session.
When creating a handoff (via /ant-pause-colony or aether pause-colony or session end), HANDOFF.md must include all five sections:
Missing any of these sections makes recovery harder. If a section has no content (e.g., no blockers), include it with "None" rather than omitting it.
When resuming, follow this fallback chain:
Always tell the user which recovery source you used: "Restored from HANDOFF.md" or "No handoff found, recovered from state files."
At natural breaks (phase completion, verification pass, seal), prompt the user to consider clearing context if the conversation has been long:
This session has been running for a while. Consider running /ant-pause-colony
or `aether pause-colony` to save state, then start fresh with /ant-resume-colony
or `aether resume-colony`.
When starting or reconfiguring a colony, capture durable preferences in the configured preference store rather than burying them in transient chat. Treat communication style, automation level, verbosity, and context-budget preferences as long-lived context.
When a task or idea appears during unrelated work:
This helps prevent context window degradation in long sessions.
CONTEXT.md should contain a concise summary (not a full dump) of: