plur-session-end — скилл для Claude Code: что делает и как установить
В конце сессии скилл извлекает из разговора устойчивые знания: исправления, предпочтения, решения и правила проекта. Он пригодится, чтобы сохранить их для будущих сессий.
npx skills add plur-ai/plur --skill plur-session-end -a claude-codeЧто делает plur-session-end
Скилл отбирает из разговора сведения, которые могут пригодиться позже, и отбрасывает временный статус, очевидные по коду факты и секреты. Каждое знание оформляется как отдельное утверждение с типом, областью действия и тегами. Расплывчатые или сомнительные выводы лучше пропустить.
Для сохранения используются MCP-инструменты plur_learn или plur_session_end: первый вызывают отдельно для каждого знания, второй принимает несохранённые предложения. Одни и те же сведения нельзя отправлять обоими способами. Для работы нужны соответствующие инструменты PLUR; они доступны в lean и full MCP profiles. Без них скилл не сможет сохранить знания.
Какие задачи решает
- сохранить исправление, которое агенту важно помнить в следующих сессиях
- записать предпочтения пользователя как отдельные утверждения
- зафиксировать соглашения и решения проекта с областью действия
- отсеять временный статус и секреты при завершении работы
Примеры запросов агенту
- Перед завершением сессии сохрани важные для следующих задач исправления и предпочтения.
- Зафиксируй соглашения проекта, которые мы выяснили, и добавь для каждого подходящие теги.
- Подведи итог сессии и передай на сохранение только устойчивые знания, без временного статуса и секретов.
Как установить plur-session-end
1Через Skills CLI (Vercel)
npx skills add plur-ai/plur --skill plur-session-end -a claude-code2Вручную: положить файлы
~/.claude/skills/plur-session-end/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/plur-session-end/
1Через Skills CLI (Vercel)
npx skills add plur-ai/plur --skill plur-session-end -a codex2Вручную: положить файлы
.agents/skills/plur-session-end/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add plur-ai/plur --skill plur-session-end -a cursor2Вручную: положить файлы
.cursor/skills/plur-session-end/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install plur-ai/plur plur-session-end2Вручную: положить файлы
.github/skills/plur-session-end/SKILL.md1Через Skills CLI (Vercel)
npx skills add plur-ai/plur --skill plur-session-end -a gemini-cli2Командой платформы
gemini skills install https://github.com/plur-ai/plur --path skills/plur-session-endВручную: положить файлы
.devin/skills/plur-session-end/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add plur-ai/plur --skill plur-session-end -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о plur-session-end
Как установить plur-session-end в Claude Code?
Выполните npx skills add plur-ai/plur --skill plur-session-end -a claude-code. Файл скилла появится по пути ~/.claude/skills/plur-session-end/SKILL.md.
Что делает plur-session-end?
В конце разговора он отбирает долговечные знания — например, исправления, предпочтения и правила проекта — и сохраняет их через инструменты PLUR. Временный статус и секреты он отбрасывает.
Чем сохранять знания: plur_learn или plur_session_end?
plur_learn вызывают отдельно для каждого знания. Вместо этого можно передать несохранённые предложения в plur_session_end, но нельзя отправлять одни и те же знания обоими способами.
Исходный текст
SKILL.md · Apache-2.0
---
name: plur-session-end
description: Extract durable learnings at the end of a session. Saves corrections, preferences, and codebase patterns as engrams — nothing ephemeral, nothing sensitive.
version: 1.0.0
metadata:
hermes:
tags: [memory, learning, session-end, engrams, wrap-up]
category: productivity
requires_toolsets: []
---
# PLUR Session End
Run this at the end of a conversation to extract what is worth remembering.
PLUR stores durable knowledge — corrections, conventions, preferences, decisions. It does not store session logs, one-off status, or anything that will be irrelevant next week. This skill enforces that discipline.
## When to Use
- The user says "wrap up", "end session", "we're done", or similar
- The conversation is winding down after completing a task
- You want to record what you learned before the context window closes
## Procedure
### Step 1 — Identify learning candidates
Scan the conversation for:
| Category | Examples |
|----------|---------|
| **Corrections** | "No, the API returns snake_case" / "Don't use X, use Y" |
| **Preferences** | "Always run lint before committing" / "User prefers concise explanations" |
| **Codebase conventions** | "This project uses repository pattern" / "Tests live in `__tests__/`" |
| **Decisions** | "We chose PostgreSQL for ACID compliance" |
| **Gotchas** | "The staging env needs `NODE_ENV=staging`, not `production`" |
| **Terminology** | "They call it a 'slot' not a 'channel'" |
### Step 2 — Filter ruthlessly
Skip:
- Anything already obvious from reading the codebase
- Session-specific state ("we're working on the login page right now")
- One-off status ("the build was red this morning")
- Anything you are not confident about
- Secrets, credentials, API keys — never
### Step 3 — Write each learning as a durable assertion
Format: a single clear statement that will make sense to a future agent with no session context.
Good: `"The publish script requires npm 2FA — always run 'npm publish' interactively, never from CI."`
Bad: `"We talked about the publish issue."`
### Step 4 — Assign metadata
For each learning, determine:
- `type`: `behavioral` | `terminological` | `procedural` | `architectural` — choose the MCP schema category; correction/preference/gotcha can be tags
- `domain`: the project, library, or topic area (e.g., `"plur"`, `"typescript"`, `"project:acme"`)
- `scope`: the scope of applicability (e.g., `"global"`, `"project:acme"`)
- `tags`: 2–5 descriptive tags
### Step 5 — Save
`plur_learn` and `plur_session_end` are direct tools in both lean and full MCP profiles. For less-common operations, use `plur_admin` with `{ "action": "help" }` to discover the current actions and schemas.
Save with `plur_learn`:
```
plur_learn({ statement, type, domain, scope, tags })
```
Call once per learning. Do not batch into one call — separate engrams decay and strengthen independently.
Alternatively, pass unsaved learnings as `engram_suggestions` to `plur_session_end`, following its live schema. Do not submit the same learnings through both paths.
## Quality bar
Fewer, stronger engrams beat many weak ones.
- Prefer **no engram** over a vague one
- One sentence per engram — if you need two sentences, split it into two engrams
- If you're unsure whether something is reusable, skip it
## What a good wrap-up looks like
```
Session learnings saved (3 engrams):
1. [correction] The API returns timestamps in Unix seconds, not milliseconds.
domain: project:acme | tags: api, timestamps
2. [preference] User prefers TypeScript strict mode — always enable in tsconfig.
domain: typescript | tags: tsconfig, preferences
3. [gotcha] The staging deploy requires a manual cache bust at /admin/cache.
domain: project:acme | tags: deploy, staging, ops
```
Keep the user-facing summary short. Show what you saved; do not narrate your reasoning.
## Integration with plur-memory
This skill pairs with `plur-memory`:
- `plur-memory` guides recall and learning; automatic injection depends on the installed editor adapter
- `plur-session-end` runs once — it extracts and saves what the session produced
Together they close the memory loop: inject at start, learn at end.
© plur-ai · Apache-2.0 · plur-ai/plur