compression-ritual
Skill0 starsChanged 9 months agoMITView on GitHub
Distill long conversation histories into potent memory artifacts using semantic compression. Use at end of sessions to preserve wisdom while reducing context load. Trigger phrases: "compress this context", "distill this conversation", "create a memory artifact", "condense this history", "extract key wisdom".
In this repository47 other files it gives its agents.
- agent-teachingSkill
- cf-pages-trespies-deploySkill
- context-ingestionSkill
- decision-propagationSkill
- documentation-auditSkill
- era-architectureSkill
- file-managementSkill
- frontend-from-backendSkill
- handoff-protocolSkill
- health-auditSkill
- house-poc-builderSkill
- implementation-promptSkill
- iterative-scoutingSkill
- mcp-cloudflare-builderSkill
- mcp-server-builderSkill
- memory-gardenSkill
- multi-surface-strategySkill
- parallel-tracksSkill
- patient-learning-protocolSkill
- planning-with-filesSkill
- poc-tool-forgeSkill
- pre-implementation-checklistSkill
- process-extractionSkill
- product-positioningSkill
- project-explorationSkill
- release-specificationSkill
- repo-context-syncSkill
- repo-statusSkill
- research-modesSkill
- research-synthesisSkill
- retrospectiveSkill
- seed-extractionSkill
- seed-librarySkill
- seed-to-skill-converterSkill
- semantic-clustersSkill
- skill-audit-upgradeSkill
- skill-creationSkill
- skill-maintenanceSkill
- spec-constellation-to-prompt-suiteSkill
- static-tool-verifySkill
- status-templateSkill
- status-writingSkill
- strategic-scoutSkill
- strategic-to-tactical-workflowSkill
- web-research-externalSkill
- workflow-routerSkill
- workspace-navigationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Read through the recent conversation history with a specific intention: to identify the moments of significance.
- Distinctive: line 69
Create the new markdown files in their appropriate locations.
- Distinctive: line 73
Create a log file that documents what was compressed and where it was stored.
- Distinctive: line 79
Commit the new artifacts to the repository with a clear commit message.
- Distinctive: line 123
Link, Don't Repeat: If a concept is already documented, link to it rather than rewriting it.
- Distinctive: line 130
When running inside the Dojo Genesis plugin:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
OpenClaw Integration: This skill is invoked by the Dojo Genesis plugin via
/dojo run compression-ritual. The agent receives project context automatically via thebefore_agent_starthook. Usedojo_get_contextfor full state,dojo_save_artifactto persist outputs, anddojo_update_stateto record phase transitions and decisions.
Context Compression Ritual Skill
Version: 1.0
Created: 2026-02-04
Author: Manus AI
Purpose: To provide a mindful, repeatable ritual for compressing long conversation histories into smaller, more potent memory artifacts, thus preserving wisdom while preventing context window overload.
I. The Philosophy: The Art of Letting Go
An agent's context window is like a working memory. It is finite and precious. To fill it with raw, unprocessed history is to invite distraction and confusion. The Context Compression Ritual is the Art of Letting Go—a conscious practice of choosing what is essential to keep and what can be respectfully released.
This is not a destructive act, but a creative one. We are not deleting history; we are distilling it. We transform the raw material of conversation into the refined artifacts of wisdom: philosophical reflections, key decisions, and reusable seeds of practice. This ritual ensures that our memory remains potent and relevant, a source of clarity rather than noise.
II. When to Use This Skill
- After a long and complex conversation: (e.g., more than 20-30 turns).
- At the end of a major work session or sprint.
- When the context feels "heavy" or "noisy."
- Before handing off a project to another agent.
- As a regular, scheduled practice (e.g., end of day) to maintain cognitive hygiene.
III. The Compression Workflow
Step 1: Signal the Intent
Announce the intention to perform the ritual. This frames the activity as a deliberate and mindful practice.
Example: "This has been a long and fruitful conversation. To preserve the wisdom we've generated, I will now perform the Context Compression Ritual."
Step 2: Review the Transcript
Read through the recent conversation history with a specific intention: to identify the moments of significance. Look for:
- Key Decisions: Moments where a choice was made that altered the course of the project.
- Profound Insights: "Aha!" moments, new understandings, or philosophical reflections.
- Actionable Learnings: Concrete lessons that should inform future behavior.
- Reusable Patterns: Ideas or workflows that could be generalized into seeds or skills.
- Unresolved Questions: Important questions that were raised but not yet answered.
Step 3: Choose the Right Vessel
For each significant moment identified, determine the appropriate "vessel" to hold its essence. Not all wisdom takes the same form.
| Artifact Type | Location | Purpose |
| Philosophical Reflection | thinking/ | To explore the "why" behind our work, the deeper meanings and patterns. |
| Conversation Summary | conversations/ | To document the key decisions and outcomes of a specific discussion. |
| Dojo Seed | seeds/ | To capture a reusable pattern of thinking or problem-solving. |
| Documentation Update | docs/ or README.md | To integrate a key decision or learning into the project's official record. |
Step 4: Write the Artifacts
Create the new markdown files in their appropriate locations. Write with the intention of distillation—capture the essence, not the raw transcript. Link between artifacts where appropriate (e.g., a reflection might reference a specific conversation summary).
Step 5: Create a Compression Log (Optional but Recommended)
Create a log file that documents what was compressed and where it was stored. This provides a meta-record of the compression itself.
Example: thinking/2026-02-04_compression_log.md
Step 6: Commit to AROMA
Commit the new artifacts to the repository with a clear commit message.
Commit Message Convention:
feat(memory): Compress conversation from [Date]
IV. Compression Log Template
# Compression Log: [Date]
**Source:** Conversation history from [Start Time] to [End Time]
**Purpose:** To distill key insights and reduce context window load.
---
## Artifacts Created
| Type | Path | Description |
| :--- | :--- | :--- |
| **Reflection** | `thinking/[...].md` | [A summary of the philosophical reflection.] |
| **Seed** | `seeds/[...].md` | [The name and purpose of the new seed.] |
| **Decision** | `conversations/[...].md` | [The key decision that was documented.] |
| **Doc Update** | `docs/[...].md` | [The documentation that was updated.] |
---
## Key Insights Preserved
- [Insight 1]
- [Insight 2]
## Context Released
- [e.g., Raw conversational turns, intermediate steps, dead-end explorations]V. Best Practices
- Be Ruthless, But Respectful: The goal is to reduce noise, but do so with care. Don't discard something that might be important later.
- Favor Wisdom Over Data: Prioritize the "why" and the "how" over the raw "what."
- Link, Don't Repeat: If a concept is already documented, link to it rather than rewriting it.
- The Shorter, The Better: A compressed artifact should be significantly shorter than the source conversation.
- Perform the Ritual Regularly: The more frequently you do this, the less daunting it becomes.
OpenClaw Tool Integration
When running inside the Dojo Genesis plugin:
- Start by calling
dojo_get_contextto retrieve full project state, history, and artifacts - During the skill, follow the workflow steps documented above
- Save outputs using
dojo_save_artifactwith theartifactsoutput directory - Update project state by calling
dojo_update_stateto record skill completion and any phase transitions
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.

