gaia-compact
Skill4 starsChanged 5 months agoMITView on GitHub
Use when the user asks to compact the current session, including “compacta”, “compactemos”, or “compact the session”
In this repository38 other files it gives its agents.
- agent-contract-handoffSkill
- agent-creationSkill
- agent-protocolSkill
- agent-responseSkill
- blog-writingSkill
- brief-specSkill
- code-reviewSkill
- code-standardsSkill
- command-executionSkill
- diagram-builderSkill
- executionSkill
- fast-queriesSkill
- gaia-auditSkill
- gaia-checkSkill
- gaia-patternsSkill
- gaia-plannerSkill
- gaia-releaseSkill
- gaia-researchSkill
- gaia-verifySkill
- git-conventionsSkill
- gmail-policySkill
- gmail-triageSkill
- gws-setupSkill
- investigationSkill
- memorySkill
- orchestrator-present-approvalSkill
- pending-approvalsSkill
- readme-writingSkill
- scheduled-taskSkill
- security-tiersSkill
- session-reflectionSkill
- skill-creationSkill
- subagent-request-approvalSkill
- technical-explanationSkill
- ticket-writingSkill
- verification-oracleSkill
- verification-rubricSkill
- visual-verifySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Classify what would be lost, by which door you came in: After a session-reflection, every decision, learning, and pending already has a …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gaia Compact
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.
Process
- Collect user extras. Preserve any specific item the user names.
- Classify what would be lost, by which door you came in. After a
session-reflection, every decision, learning, and pending already has a home, soUNSAVED TRANSIENT CONTEXTis 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 thesession-reflection→memoryflow first; if the user insists on compacting now, preserve those items explicitly under that field, labeled as not durable rather than pretending permanence. - 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.
- Build the handoff. Preserve only:
- active objective;
- exact resume point;
- durable references (slugs, brief/plan/task IDs), never their bodies;
- unsaved transient facts;
- blockers and approvals;
- active files needed to resume;
- user-provided preservation instructions.
- Invoke
/compactwith that handoff -- the orchestrator's own action; this skill cannot invoke it.
Preservation prompt
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.Handoffs
session-reflectionsupplies the resume point, not the handoff; compact builds its own from that pointer and from the session's own state.memoryowns durable knowledge and live threads; compact owns transient conversational continuity only.- See
examples.mdfor chained and standalone compaction.
Anti-patterns
- Compacting durable candidates silently: offer reflection and curation before losing the context that explains them.
- Copying durable bodies: duplicates memory and causes later divergence; preserve identifiers.
- Inventorying every file read: retain only active files needed to resume.
- Treating compaction as persistence: a summary is context, not a durable database record.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

