dream
Skill72 starsChanged 7 months agoMITView on GitHub
You are performing a dream — a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions orient quickly. Memory directory: find the path from your system prompt — look for the "auto memory" section which says "You have a persistent, file-based memory system at <path>". That is your memory directory. If no such section exists, default to ~/.claude/projects/<sanitized-cwd>/memory/ where <sanitized-cwd> is the current working directory with / replaced by -.
28 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- fjwood69/moritheir own version, first seen Oct 3, 2026
- marinvch/Cortextheir own version, first seen Oct 1, 2026
- bhanuprakash-1/copilot-dreamtheir own version, first seen Sep 25, 2026
- braincandy-parallel/tamarindos-workflow-kittheir own version, first seen Sep 18, 2026
- damanoreshkan-beep/dream-skilltheir own version, first seen Sep 17, 2026
- hyperb1iss/hyperskillstheir own version, first seen Sep 5, 2026
Used with
Projects with it also use resume, ingest and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
genomewalkerSkillresume
Resume a thread by loading its ~800-token context capsule
Also in 3 projects that use this
raven-souravSkillingest
Also in 3 projects that use this
MicrosoftSkillinit
Generate or update chat customization files for AI coding agents
Also in 4 projects that use this
SentrySkilldeslop
Strip AI-generated noise from the diff before pushing — extra comments a human wouldn't write, defensive try/catch in trusted code paths, casts to any, inline imports in Python, and other style inconsistencies with the surrounding file. Use this immediately before commit so the diff stays clean.
Also in 3 projects that use this
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 3 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 3 projects that use this
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- sneg55/agent-starter★ 7620% same
- BenjaminG/ai-skills★ 411% same
Wrote their own version · 26
- grandamenium/dream-skill★ 151same name
- oprogramadorreal/optimus-claude★ 75same name
- seldonframe/seldonframe★ 54same name
- maxvaega/awesome-skills★ 40same name
- hyperb1iss/hyperskills★ 35same name
- fjwood69/mori★ 30same name
- wrg32786/aigent-os★ 19same name
- dandacompany/dante-skills★ 14same name
- ariaxhan/kernel-claude★ 13same name
- maxwellsdm1867/wheeler★ 12same name
16 more not listed
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 repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-healthSkill
- agent-styleSkill
- angular-best-practicesSkill
- annotateSkill
- api-designSkill
- architecture-decision-recordsSkill
- aws-serverlessSkill
- backend-architectSkill
- backend-patternsSkill
- brainstormSkill
- bug-reportSkill
- changelogSkill
- claude-apiSkill
- cloud-architectSkill
- cloud-run-puppeteerSkill
- code-review-checklistSkill
- code-reviewSkill
- code-simplificationSkill
- codex-sddSkill
- commitSkill
- context-engineeringSkill
- database-architectSkill
- db-reviewSkill
- deep-interviewSkill
- design-reviewSkill
- design-systemSkill
- devops-deploySkill
- diagnoseSkill
- django-patternsSkill
- docker-patternsSkill
- dotnet-backend-patternsSkill
- drizzle-orm-expertSkill
- estimateSkill
- event-sourcing-architectSkill
- fastapi-proSkill
- fork-joinSkill
- freezeSkill
- frontend-designSkill
- frontend-patternsSkill
- frontend-ui-dark-tsSkill
- gate-checkSkill
- gemini-api-integrationSkill
- gitlab-ci-patternsSkill
- guardSkill
- handoffSkill
- hotfixSkill
- hybrid-cloud-architectSkill
- kubernetes-architectSkill
- laravel-patternsSkill
- launch-checklistSkill
- learnerSkill
- llm-app-patternsSkill
- localizeSkill
- map-systemsSkill
- map-workflowSkill
- markdown-injection-scannerSkill
- microservices-patternsSkill
- milestone-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Session transcripts: look for *.jsonl files in the project directory inside ~/.claude/projects/ that corresponds to the current working …
- Very specific: line 28
Read MEMORY.md (if it exists) to understand the current index.
- Very specific: line 30
If logs/ or sessions/ subdirectories exist, note their presence for Phase 2.
- Distinctive: line 31
Check for topic files missing mandatory YAML frontmatter (name, description, type) — flag these for repair in Phase 3.
- Distinctive: line 39
Look for new information worth persisting.
- Distinctive: line 75
Wait for user approval before proceeding.
- Very specific: line 90
If two or more files cover the same topic (e.g., feedback_testing_1.md and feedback_testing_2.md), merge them into one canonical file.
- Distinctive: line 103
If today's investigation proves an old memory wrong, fix it at the source — edit or delete the old file.
- Very specific: line 113
Never write memory content directly into MEMORY.md — it's an index, not a dump.
- Distinctive: line 114
Remove pointers to deleted or superseded files.
- Distinctive: line 115
If an index line is over ~200 chars, shorten it — move the detail into the topic file.
“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dream: Memory Consolidation
You are performing a dream — a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions orient quickly.
Memory directory: find the path from your system prompt — look for the "auto memory" section which says "You have a persistent, file-based memory system at <path>". That is your memory directory. If no such section exists, default to ~/.claude/projects/<sanitized-cwd>/memory/ where <sanitized-cwd> is the current working directory with / replaced by -.
Session transcripts: look for *.jsonl files in the project directory inside ~/.claude/projects/ that corresponds to the current working directory. These are signal sources — grep narrowly, do NOT read whole files.
If the user passed a topic argument (e.g., /dream feedback), focus Phase 2–3 on that topic only. Still run Phase 1 and Phase 4 in full.
Phase 1 — Orient
mkdir -pthe memory directory if it doesn't exist yet.lsthe memory directory — note all existing topic files.- Read
MEMORY.md(if it exists) to understand the current index. If it doesn't exist, this is a fresh start — you'll create it in Phase 4. - Skim existing topic files to build a picture of what's already recorded — so you improve rather than duplicate.
- If
logs/orsessions/subdirectories exist, note their presence for Phase 2. - Check for topic files missing mandatory YAML frontmatter (name, description, type) — flag these for repair in Phase 3.
Report: memory directory path, file count, MEMORY.md line count (or "new"), any frontmatter issues found.
Phase 2 — Gather recent signal
Look for new information worth persisting. Do NOT exhaustively read transcripts. Look only for things you already suspect matter.
Sources in priority order:
- Daily logs (
logs/YYYY/MM/YYYY-MM-DD.md) if present — append-only stream, check recent entries first. - Drifted facts — scan existing memories for claims that may contradict the current codebase (file paths, function names, flags). Verify with Glob/Grep before marking as stale.
- Transcript search — grep JSONL files narrowly for specific context:
Useful search terms: user corrections ("don't", "no not", "stop"), confirmations ("exactly", "perfect"), role signals ("I'm a", "I own"), decisions ("we're going with", "we decided"), deadlines, external system URLs.grep -rn "<narrow term>" ~/.claude/projects/ --include="*.jsonl" | tail -50
Signal categories to look for:
| Category | Type | Trigger phrases |
| User corrections | feedback | "no", "don't", "stop doing", "not like that", "actually..." |
| Confirmed approaches | feedback | "yes exactly", "perfect", silent acceptance of unusual choice |
| Role / expertise | user | "I'm a ...", "I've been writing X for Y years", "I own the ..." |
| Project decisions | project | "we're going with", "we decided", deadlines, incidents |
| External pointers | reference | Dashboard URLs, issue trackers, Slack channels, doc links |
What NOT to gather (strict exclusions):
- Code patterns, architecture, file paths, project structure — derivable from reading code.
- Git history or who-changed-what —
git log/git blameare authoritative. - Debugging solutions — the fix is in the code; context is in the commit message.
- Anything already in CLAUDE.md files.
- Ephemeral task state or current conversation context.
- PR lists / activity summaries — save only what was surprising or non-obvious.
Phase 3 — Consolidate
Before making any file modifications, show the user a plan:
- List files to be created, updated, merged, or deleted.
- Wait for user approval before proceeding.
After approval, execute:
3a. Repair missing frontmatter
For any topic file flagged in Phase 1, add the required YAML frontmatter:
---
name: {{memory name}}
description: "Consolidates and prunes the memory directory through a 4-phase reflective pass: Orient, Gather, Consolidate, Prune. Run after intensive sessions, when memories feel duplicated, or when MEMORY.md approaches the 200-line limit."
type: {{user | feedback | project | reference}}
---3b. Merge duplicates and near-duplicates
If two or more files cover the same topic (e.g., feedback_testing_1.md and feedback_testing_2.md), merge them into one canonical file. Delete the originals after merging.
3c. Write / update memories for new signal
For each new signal found in Phase 2, either update an existing file or create a new one.
Memory type conventions:
- feedback — Lead with the rule, then
**Why:**(the reason the user gave) and**How to apply:**(when/where this kicks in). Always include Why — it enables edge-case judgement instead of blind rule-following. - project — Lead with the fact/decision, then
**Why:**(motivation, constraint, deadline) and**How to apply:**(how this shapes suggestions). Convert all relative dates to absolute dates (e.g., "Thursday" → "2026-04-10"). - user — Factual profile: role, expertise, preferences, responsibilities.
- reference — Pointer + purpose. One or two lines.
3d. Fix contradictions
If today's investigation proves an old memory wrong, fix it at the source — edit or delete the old file. Do not leave contradicting entries.
Phase 4 — Prune and index
Rebuild MEMORY.md so it stays under 200 lines AND under ~25KB.
Rules for the index:
- Each entry is exactly one line, under ~150 characters:
- [Title](file.md) — one-line hook - Never write memory content directly into
MEMORY.md— it's an index, not a dump. - Remove pointers to deleted or superseded files.
- If an index line is over ~200 chars, shorten it — move the detail into the topic file.
- Organize semantically by topic (user → feedback → project → reference), not chronologically.
Output
Return a brief summary of what was consolidated, updated, merged, pruned, or repaired. If nothing changed (memories are already tight), say so explicitly.
End with a stats line in this exact format:
Dream complete: X memories total | Y created, Z updated, W merged, V pruned.
(Omit categories with a count of 0.)
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.

