dream — скилл для Claude Code: память и установка
Скилл пересматривает файлы памяти агента, объединяет полезные сведения и обновляет индекс. Запускайте его периодически, чтобы поддерживать заметки в порядке.
npx skills add sneg55/agent-starter --skill dream -a claude-codeЧто делает dream
dream просматривает каталог памяти, читает MEMORY.md и проверяет тематические файлы, чтобы дополнить существующие записи, а не плодить похожие. Он может сверяться с журналами и искать нужный контекст в транскриптах через grep.
Скилл распределяет заметки по типам: сведения о пользователе, обратная связь, проекты и справочные ссылки. Затем он удаляет устаревшие или опровергнутые факты и обновляет MEMORY.md: это индекс, которому задан предел в 200 строк и примерно 25 КБ. Кодовые шаблоны, историю Git и временные детали задач сохранять не следует.
В конце агент возвращает краткий отчёт об изменениях. Для поиска по транскриптам нужны доступные файлы в .claude/transcripts/; без них этот источник контекста использовать не получится.
Какие задачи решает
- объединить новые сведения с существующими файлами памяти
- удалить устаревшие и опровергнутые заметки
- обновить индекс
MEMORY.mdи убрать лишние ссылки - сохранить важную обратную связь и контекст проекта
Примеры запросов агенту
- Проведи ревизию файлов памяти и обнови
MEMORY.md. - Сверь свежие журналы с заметками, объедини дубли и удали опровергнутые факты.
- Найди в транскриптах контекст по этой теме и сохрани только то, что пригодится в будущих сессиях.
Как установить dream
1Через Skills CLI (Vercel)
npx skills add sneg55/agent-starter --skill dream -a claude-code2Вручную: положить файлы
~/.claude/skills/dream/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/dream/
1Через Skills CLI (Vercel)
npx skills add sneg55/agent-starter --skill dream -a codex2Вручную: положить файлы
.agents/skills/dream/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sneg55/agent-starter --skill dream -a cursor2Вручную: положить файлы
.cursor/skills/dream/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sneg55/agent-starter dream2Вручную: положить файлы
.github/skills/dream/SKILL.md1Через Skills CLI (Vercel)
npx skills add sneg55/agent-starter --skill dream -a gemini-cli2Командой платформы
gemini skills install https://github.com/sneg55/agent-starter --path skills/dreamВручную: положить файлы
.devin/skills/dream/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add sneg55/agent-starter --skill dream -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о dream
Как установить dream в Claude Code?
Выполните npx skills add sneg55/agent-starter --skill dream -a claude-code. Файл скилла находится по пути ~/.claude/skills/dream/SKILL.md.
Что делает скилл dream?
Он пересматривает файлы памяти, объединяет полезные сведения, удаляет устаревшие записи и поддерживает MEMORY.md как краткий индекс.
Какие сведения dream сохраняет в памяти?
Скилл предлагает разделять записи на сведения о пользователе, обратную связь, контекст проекта и справочные ссылки. Кодовые паттерны, историю Git и временные детали задач он предлагает не сохранять.
Исходный текст
SKILL.md · MIT
---
name: dream
description: Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.
user_invocable: true
allowed-tools:
- Read
- Write
- Edit
- Bash
- Glob
- Grep
---
# 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 can orient quickly.
## Phase 1 - Orient
- `ls` the memory directory to see what already exists
- Read `MEMORY.md` to understand the current index
- Skim existing topic files so you improve them rather than creating duplicates
- If `logs/` or `sessions/` subdirectories exist, review recent entries there
## Phase 2 - Gather recent signal
Look for new information worth persisting. Sources in rough priority order:
1. **Daily logs** (`logs/YYYY/MM/YYYY-MM-DD.md`) if present - these are the append-only stream
2. **Existing memories that drifted** - facts that contradict something you see in the codebase now
3. **Transcript search** - if you need specific context, grep transcripts for narrow terms:
`grep -rn "<narrow term>" .claude/transcripts/ --include="*.jsonl" | tail -50`
Don't exhaustively read transcripts. Look only for things you already suspect matter.
## Phase 3 - Consolidate
For each thing worth remembering, write or update a memory file. Use these type conventions:
| Type | What belongs | Examples |
|------|-------------|----------|
| **user** | User's role, goals, preferences, knowledge | "senior Go dev, new to React" |
| **feedback** | Corrections AND confirmations from user | "don't mock DB in tests", "bundled PR was right call" |
| **project** | Ongoing work context, deadlines, initiatives | "merge freeze 2026-03-05 for mobile release" |
| **reference** | Pointers to external systems | "pipeline bugs in Linear project INGEST" |
Each memory file uses this format:
```markdown
---
name: {{name}}
description: {{one-line description}}
type: {{user, feedback, project, reference}}
---
{{content - for feedback/project: rule, then **Why:** and **How to apply:**}}
```
Focus on:
- Merging new signal into existing topic files rather than creating near-duplicates
- Converting relative dates ("yesterday", "last week") to absolute dates
- Deleting contradicted facts - if today's investigation disproves an old memory, fix it at the source
## Phase 4 - Prune and index
Update `MEMORY.md` so it stays under 200 lines AND under ~25KB. It's an **index**, not a dump:
- Each entry: one line under ~150 chars: `- [Title](file.md) - one-line hook`
- Never write memory content directly into MEMORY.md
- Remove pointers to stale, wrong, or superseded memories
- Shorten verbose entries - move detail to the topic file
- Add pointers to newly important memories
- Resolve contradictions - if two files disagree, fix the wrong one
## What NOT to save
- Code patterns, architecture, file paths - derivable from the project
- Git history - `git log` / `git blame` are authoritative
- Debugging solutions - the fix is in the code
- Anything already in CLAUDE.md
- Ephemeral task details or conversation context
---
Return a brief summary of what you consolidated, updated, or pruned. If nothing changed, say so.
© sneg55 · MIT · sneg55/agent-starter