swarm-memory
Skill3 starsChanged 10 days agoMITView on GitHub
Use this skill at the start and end of every non-trivial task to recall and record durable project knowledge through graphyloop memory - what to search before planning, what is worth storing, what must never be stored, and how to correct a wrong memory.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- clawsouls/clawsouls-claude-code-plugintheir own version, first seen Apr 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- clawsouls/clawsouls-claude-code-plugin★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository72 other files it gives its agents.
- workflow/AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- ai-video-prompt-engineerSkill
- api-contract-designSkill
- api-hardeningSkill
- brainstormingSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- councilSkill
- database-migrationsSkill
- deep-researchSkill
- dependency-auditSkill
- deployment-patternsSkill
- e2e-testingSkill
- error-handlingSkill
- exa-searchSkill
- finishing-a-development-branchSkill
- frontend-securitySkill
- github-opsSkill
- graphifySkill
- graphyloop-wavesSkill
- graphyloop-workflowSkill
- gsap-coreSkill
- gsap-frameworksSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-reactSkill
- gsap-scrolltriggerSkill
- gsap-timelineSkill
- gsap-utilsSkill
- high-end-visual-designSkill
- image-to-codeSkill
- last30daysSkill
- minimalist-uiSkill
- postgres-patternsSkill
- prisma-patternsSkill
- receiving-code-reviewSkill
- redesign-existing-projectsSkill
- remotion-video-creationSkill
- requesting-code-reviewSkill
- search-firstSkill
- secrets-hygieneSkill
- security-reviewSkill
- security-scanSkill
- short-video-productionSkill
- story-engineeringSkill
- supabase-setupSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- terminal-opsSkill
- threejs-animationSkill
- threejs-fundamentalsSkill
- threejs-geometrySkill
- threejs-interactionSkill
- threejs-lightingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 14
START of any non-trivial task, in the same parallel block as the first reads and before the context pack and contract.
- Distinctive: line 16
When a past decision is being revisited ("why is it done this way?").
- Distinctive: line 58
Write the entry yourself at the end.
≈ “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
Swarm memory
Memory is only useful if it is read before deciding and written after learning. A store that is written but never searched is a diary; one that is searched but never corrected repeats its mistakes forever.
When to activate
- START of any non-trivial task, in the same parallel block as the first reads and before the context pack and contract. A trivial single-file edit skips memory.
- END of any task that produced a decision, a gotcha, or a reusable approach.
- When a past decision is being revisited ("why is it done this way?").
Procedure
- Recall first.
memory_searchwith 2-4 concrete keywords from the task (component names, error text, feature nouns). Optionaltypefilter:decision,pattern,lesson,event,task.- Results exist → use them, and say which memory informed the plan.
- Nothing → say nothing and proceed. Never invent a recalled memory.
- Store at the end, one entry.
memory_storewith the right type:decision— a choice made and why (the alternative rejected matters more than the choice).lesson— a gotcha hit and how it was resolved. This is the highest-value type.pattern— a reusable approach with the file that demonstrates it.event— something that happened (a deploy, a migration, an incident).
- Correct, do not accumulate. A wrong or outdated memory gets
memory_forgetwith its id, then a corrected entry. Leaving both means the next session gets contradictory advice with no way to pick.
What makes an entry worth keeping
Good: one dense line, searchable nouns, an anchor.
decision: state lives in <project>/.graphyloop/state.json (was .opencode/graphyloop) — three of four harnesses are not opencode; migration in lib/engine.mjs
lesson: node --test hangs when a failing assert skips stdin.end() on a spawned server — the child holds the stdio pipes; close it in a finally
pattern: file-to-file credential sync (env_sync) keeps values out of the model context — see lib/secrets.mjsBad, and why:
"fixed the bug"— unsearchable, no anchor, no cause.- A pasted 200-line diff — the repo already has it; memory is for the why.
"user prefers dark mode"when it was said once about one screen — over-generalized preferences become wrong rules.
Never store
- Credentials, tokens, connection strings, or anything from a
.envfile — not even partially. Store the key NAME if it matters. - Personal data about the user or third parties beyond what the work needs.
- Speculation stated as fact. If it was not verified, either verify it or label it.
Rules
- One entry per task, not one per file touched. A flooded store ranks badly.
- Write the entry yourself at the end; do not delegate it to a subagent whose context is narrower than the task.
- Memory survives
shutdownand restarts. State does not — re-readswarm_stateafter a restart instead of trusting recall for live task status. - Blocked roots (home directory, harness config dirs, system dirs) refuse memory writes by design. Accept the skip; do not retry in another directory.
- A build leaves two frozen files next to each other:
ctx-<slug>.md(context pack) andcontract-<slug>.md. Store the lesson or decision, not their content.
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.

