agentleFS
plur-aiplur-ai/plur/skills/plur-session-end/SKILL.md

plur-session-end

Skill298 starsChanged 57 days agoApache-2.0View on GitHub

Extract durable learnings at the end of a session. Saves corrections, preferences, and codebase patterns as engrams — nothing ephemeral, nothing sensitive.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this at the end of a conversation to extract what is worth remembering.

    line 14
  2. Very specific:

    If plur_learn is available:

    line 68
  3. Distinctive:

    Call once per learning. Do not batch into one call — separate engrams decay and strengthen independently.

    line 74
  4. Very specific:

    If plur_session_end is available, pass learnings as engram_suggestions for batch review.

    line 76
  5. Distinctive:

    Prefer no engram over a vague one

    line 82
  6. Distinctive:

    If you're unsure whether something is reusable, skip it

    line 84
  7. Distinctive:

    Keep the user-facing summary short.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

CategoryExamples
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: correction | preference | convention | decision | gotcha | fact
  • 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

If plur_learn is available:

plur_learn(statement, { type, domain, scope, tags })

Call once per learning. Do not batch into one call — separate engrams decay and strengthen independently.

If plur_session_end is available, pass learnings as engram_suggestions for batch review.

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 runs continuously — it injects relevant engrams at the start of each turn
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.