agent-approval-protoco…
Use for approval_request, COMMAND_SET, approval identifiers, fingerprints, and progress data
Use when the user asks to compact the current session, including “compacta”, “compactemos”, or “compact the session”
$ npx -y skills add metraton/gaia --skill gaia-compact --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/gaia-compactContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user asks to compact the current session, including “compacta”, “compactemos”, or “compact the session”
name: gaia-compact description: Use when the user asks to compact the current session, including “compacta”, “compactemos”, or “compact the session”
Gaia Compact preserves the small amount of transient context needed to resume work after compaction. Durable decisions and work belong in memory, briefs, plans, tasks, or project context; compact references those objects instead of duplicating their bodies.
1. **Collect user extras.** Preserve any specific item the user names. 2. **Classify what would be lost, by which door you came in.** After a `session-reflection`, every decision, learning, and pending already has a home, so `UNSAVED TRANSIENT CONTEXT` is empty by construction: anything you are tempted to put there names an item the reflection did not finish, and it belongs back in that table rather than in a summary that expires. Arriving standalone with unsaved decisions, learnings, milestones, or Gaia improvements, offer the `session-reflection` → `memory` flow first; if the user insists on compacting now, preserve those items explicitly under that field, labeled as not durable rather than pretending permanence. 3. **Preflight continuity.** Resolve or clearly retain approvals in flight, unpersisted brief/plan changes, verification evidence, and requested git actions. Compaction does not make them durable. 4. **Build the handoff.** Preserve only:
5. **Invoke `/compact` with that handoff** -- the orchestrator's own action; this skill cannot invoke it.
Preserve continuity for the next turn: - ACTIVE OBJECTIVE: <goal> - RESUME POINT: <exact next action> - DURABLE REFERENCES: <memory slugs and brief/plan/task IDs; no copied bodies> - UNSAVED TRANSIENT CONTEXT: <facts that exist only in this conversation> - BLOCKERS / APPROVALS: <current state> - ACTIVE FILES: <only files needed to resume> - USER EXTRAS: <request-specific instructions, if any> Compress tool output and intermediate reasoning. Do not duplicate durable memory or structured work; retain identifiers and the next decision.
builds its own from that pointer and from the session's own state.
conversational continuity only.
before losing the context that explains them.
preserve identifiers.
database record.
Repo: metraton/gaia
Use for approval_request, COMMAND_SET, approval identifiers, fingerprints, and progress data
Use for the exact input/output schema and validation rules of agent_contract_handoff
Use when creating a new specialist agent for Gaia, or reviewing whether an existing agent follows the correct structure, tone, and component inventory
Use when the orchestrator must read, reconcile, route, and present an agent_contract_handoff
Use when writing, drafting, or publishing a blog article for metraton.github.io