saving-workspace-context — скилл для Claude Code: память проекта
Скилл сохраняет результаты исследований, решения и шаблоны в файлы рабочей папки, чтобы следующая сессия начиналась не с нуля.
npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a claude-codeЧто делает saving-workspace-context
Агент ведёт что-то вроде институциональной памяти проекта. В начале разговора он читает context/, файл контекста продукта вроде .agents/product-marketing-context.md или PROJECT.md, доменные папки (companies/, docs/, research/) и шаблоны. Если папки context/ ещё нет, он создаст её при первом же сохранении.
Дальше он следит за разговором и раскладывает находки по местам: детали продукта и позиционирование — в файл контекста проекта, исследование по компании или теме — в context/{topic-slug}.md, стратегические решения — туда же, но с датами, повторяемые шаблоны — в templates/. Многошаговый процесс, который пригодится ещё раз, он предложит оформить как новый скилл в .cursor/skills/ или .agents/skills/, а постоянное ограничение — как правило в .cursor/rules/. Мелкие сохранения делает молча и просто сообщает, что записал; перед созданием скилла или правила спросит разрешение, потому что они влияют на все будущие разговоры. Существующие файлы дополняет датированными записями, а не перезаписывает.
Всё это работает только внутри рабочей папки проекта. Агенту нужны права на запись в неё, иначе сохранять будет некуда. И ещё: скилл не разбирается, что для вас важно, — он сохраняет то, что счёл стоящим, так что мусор в context/ накапливается быстро, если не чистить.
Какие задачи решает
- восстановить контекст проекта в новой сессии без пересказа с нуля
- сохранить исследование по компании, чтобы не повторять его
- зафиксировать стратегическое решение с датой и вернуться к нему позже
- вынести повторяемый шаблон в
templates/для переиспользования - превратить повторяющийся многошаговый процесс в отдельный скилл
Примеры запросов агенту
- посмотри, что уже есть в
context/, и продолжи работу над лендингом - сохрани в контекст проекта, что мы сменили целевую аудиторию на разработчиков
- оформи наш процесс подготовки к созвоном как новый скилл
Как установить saving-workspace-context
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a claude-code2Вручную: положить файлы
~/.claude/skills/saving-workspace-context/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/saving-workspace-context/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a codex2Вручную: положить файлы
.agents/skills/saving-workspace-context/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a cursor2Вручную: положить файлы
.cursor/skills/saving-workspace-context/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills saving-workspace-context2Вручную: положить файлы
.github/skills/saving-workspace-context/SKILL.md1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a gemini-cli2Командой платформы
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/saving-workspace-contextВручную: положить файлы
.devin/skills/saving-workspace-context/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о saving-workspace-context
Как установить saving-workspace-context в Claude?
Выполните npx skills add spencerpauly/awesome-cursor-skills --skill saving-workspace-context -a claude-code. После этого файл скилла окажется в ~/.claude/skills/saving-workspace-context/SKILL.md.
Что делает saving-workspace-context?
Следит за разговором и записывает полезное в файлы проекта: контекст продукта, исследования, решения, шаблоны. В начале следующей сессии агент читает эти файлы, поэтому не приходится объяснять всё заново.
Скилл спрашивает разрешение перед записью?
Для небольших сохранений — нет, он просто делает это и сообщает, что записал. А вот перед созданием нового скилла или правила спросит, потому что они меняют поведение агента во всех будущих разговорах.
Исходный текст
SKILL.md · CC0-1.0
---
name: saving-workspace-context
description: Automatically persist useful context — research, decisions, learnings, templates — to workspace files so knowledge survives across conversations.
user-invocable: false
---
# Saving Workspace Context
You are an agent that builds institutional memory. As you work, watch for information that should outlast this conversation and save it to the workspace so future sessions start smarter.
## At the Start of Every Conversation
Load existing context before doing anything else:
1. Check for a `context/` directory — read any files relevant to the current task
2. Check for a product/project context file (e.g. `.agents/product-marketing-context.md`, `PROJECT.md`, or similar) for positioning, goals, and constraints
3. Check for any domain-specific directories the project uses (e.g. `companies/`, `docs/`, `research/`)
4. Check for templates or reusable assets that might apply
If the project doesn't have a `context/` directory yet, that's fine — create one when you first have something worth saving.
## During a Conversation
Watch for information that should be persisted. Save it as soon as you recognize it — don't wait until the end.
| Signal | Where to Save |
|---|---|
| Product details, positioning, ICP changes | Project context file (e.g. `.agents/product-marketing-context.md`) |
| Research on a company, person, or topic | `context/{topic-slug}.md` or a domain-specific directory |
| Strategy decisions or learnings | `context/{topic}.md` with dated entries |
| Reusable templates or boilerplate | `templates/` or a project-appropriate location |
| A repeatable multi-step workflow | New skill in `.cursor/skills/` or `.agents/skills/` |
| A persistent constraint or convention | New rule in `.cursor/rules/` |
### How to Save
- **Don't ask permission** for small context saves — just do it and mention what you saved
- **Do ask permission** before creating new skills or rules (they affect all future conversations)
- **Append, don't overwrite** when adding to existing context files — use dated entries
- **Use clear file names** — future you (or a future agent) needs to find this by scanning a directory listing
## At the End of a Conversation
Before finishing, ask yourself:
- Did I learn anything about this project that isn't captured in workspace files?
- Did I do research that would be painful to redo?
- Did I discover a pattern that should become a skill or rule?
- Did I create content that could be templated for reuse?
If yes to any, save it before the conversation ends.
## File Formats
### Context Files (`context/{slug}.md`)
```markdown
# {Topic}
## {Date} — {Brief title}
{What was learned, decided, or discovered}
## {Earlier date} — {Earlier entry}
{Previous context}
```
Keep entries reverse-chronological (newest first). Date your entries so they age gracefully.
### Project Context File
A single file capturing the current state of the project's identity:
```markdown
# {Project Name} — Context
- **What it is:** {one line}
- **Who it's for:** {target audience}
- **Key differentiator:** {why this vs alternatives}
- **Current stage:** {pre-launch / beta / growth / etc.}
- **Current goals:** {what matters right now}
## Positioning
{How we talk about the product}
## Constraints
{Things to always keep in mind}
```
## When to Create a New Skill
Create a skill when you find yourself doing the same multi-step workflow more than once:
- Researching a topic (check multiple sources, synthesize, save findings)
- Preparing for a meeting or call (pull context, recent history, prep talking points)
- Running a campaign or process (select targets, personalize, track progress)
## When to Create a New Rule
Create a rule when a persistent constraint should apply across all conversations:
- Voice/tone guidelines that get refined through feedback
- Naming conventions or file organization patterns
- Domain-specific constraints ("never mention X", "always check Y first")
## Rules
- Be proactive — save context without being asked, but mention what you saved
- Keep files scannable — future agents will skim directory listings to find context
- Don't save trivial information — if it's easily re-derived, skip it
- Date everything that accumulates over time
- Check for existing files before creating new ones to avoid duplicates
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills