agentleFS
ProstDevProstDev/skills/.claude/skills/save-session/SKILL.md

save-session

Skill0 starsChanged 4 months agoMITView on GitHub

End-of-session routine. Saves learnings to .claude files following folder standards.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before concluding "nothing to save" for a given repo, check it for a now-stale doc or a convention this session introduced.

    line 14
  2. Distinctive:

    Add content that's already captured elsewhere in .claude files

    line 48
  3. Distinctive:

    Add content with no clear future value

    line 49

“Common” is measured: kept by at least 6 in 10 of the 8 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.

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

End-of-Session Save

Review everything from this session and persist what's useful for future sessions.

Scope: every repo/context the session touched

  • Route each learning to wherever it belongs, not just the primary working directory. Multi-repo and monorepo sessions are common — a fact learned here may belong in another repo's docs.
  • Before concluding "nothing to save" for a given repo, check it for a now-stale doc or a convention this session introduced.

What to Save

  • Conventions or patterns discovered during this session
  • Commands, workflows, or setup steps that were non-obvious
  • Gotchas or mistakes encountered (and how to avoid them)
  • Reusable domain knowledge or specialized workflows

Where to Save (follow these rules strictly)

Content typeDestination
Universal, prevents-mistakes-every-session rulesCLAUDE.md (append or update)
Specialized workflow or domain knowledgeA new or existing skill in .claude/skills/
Reusable isolated assistant with scoped tools.claude/agents/
Deterministic automation (must always run).claude/hooks/ + settings.json
Nothing useful learnedDo nothing. Say so.

Constraints

  • Invoke claude-md-and-folder-standards as the single source of truth for placement and Claude-Code config rules — don't restate them here (an inlined copy drifts). When a learning becomes a new skill, also invoke writing-skills for how to write the SKILL.md.
  • Highlights only: CLAUDE.md ≤200 lines; skills stay concise (≤500); add only what Claude would get WRONG without; no duplicating existing files; terse imperative bullets.
  • Repo-scoped. This saves to a repo's .claude/ (works in Claude Code and in Cowork/cloud sessions on a cloned repo). It can't touch the Claude app's account-level personal skills — those are managed in the app's UI, not by writing a file.

Do NOT

  • Write to MEMORY.md
  • Add content that's already captured elsewhere in .claude files
  • Add content with no clear future value
  • Exceed the 200-line CLAUDE.md cap

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.