session-learnings
Skill0 starsChanged 4 months agoMITView on GitHub
Extract recurring user corrections and tool failures from the current session, then make small, high-leverage updates to the appropriate guidance. Use when asked for session learnings, to reduce iteration, or to encode a newly discovered workflow or style constraint.
In this repository13 other files it gives its agents.
- buildkiteSkill
- englogSkill
- githubSkill
- golang-developmentSkill
- jiraSkill
- optimize-workspace-contextSkill
- plan-with-reviewSkill
- pull-requestSkill
- python-developmentSkill
- review-claude-configSkill
- review-claude-settingsSkill
- review-pull-requestSkill
- triage-dependency-prsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use the current conversation as the primary source.
- Distinctive: line 21
If none are present, say that no updates are needed.
- Distinctive: line 25
Write a short rule only when it is reusable, specific, and supported by the session.
- Distinctive: line 44
If the answer is no, omit the update or use a narrower home.
- Distinctive: line 50
Keep additions to 1–6 bullets unless a concise procedural sequence is necessary.
- Distinctive: line 51
Add a verification step when a recurring failure is otherwise easy to repeat.
- Distinctive: line 65
Keep a command thin when its corresponding skill owns the full workflow.
- Very specific: line 66
Keep public skills generic.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Session Learnings
Turn repeated corrections and proven workflow discoveries into durable guidance so future sessions start closer to the desired result.
Gather evidence
Use the current conversation as the primary source. Also inspect relevant diffs and files named by the user. If the context was compacted and local guidance identifies a transcript facility, retrieve only the missing sections.
Look for:
- Explicit user corrections or preferences.
- Tool failures, wrong syntax, permission constraints, or failed fallback paths.
- Work that had to be redone because a workflow step was missed.
- Stable ordering, placement, or project conventions.
If none are present, say that no updates are needed. Do not create guidance merely to produce a change.
Decide what to retain
Write a short rule only when it is reusable, specific, and supported by the session. Drop one-offs and transient state.
| Learning | Home |
| Tool behavior, command syntax, or a repeatable tool workflow | The relevant skill or command guidance |
| Durable workflow shared across projects | User-level guidance |
| Repository or subsystem convention | The closest repository guidance |
| Personal communication preference or user context | The active agent's memory or personal guidance, when available |
Consult active-agent and repository guidance for the exact locations and capabilities available in the current environment. Prefer the narrowest scope that prevents repetition; do not duplicate the same rule across layers.
Apply the learning
An explicit request for session learnings authorizes small, targeted updates to the selected guidance. Before editing, apply this filter:
- Is the rule useful beyond this one session?
- Does the selected file own this behavior?
- Is the wording a short default with a clear exception, if needed?
If the answer is no, omit the update or use a narrower home.
When updating guidance:
- Fix misleading instructions instead of adding competing workarounds.
- Preserve existing structure and local conventions.
- Keep additions to 1–6 bullets unless a concise procedural sequence is necessary.
- Add a verification step when a recurring failure is otherwise easy to repeat.
Validate and report
Re-read every edited section. Return:
- The learned rules and their rationale.
- Each file changed and why it was the right scope.
- Any candidate deliberately not retained.
Common patterns
- Replace a wrong CLI example with the verified form rather than appending a warning.
- Capture the reason behind a placement or ordering correction, not just the requested position.
- Keep a command thin when its corresponding skill owns the full workflow.
- Keep public skills generic; route environment- or user-specific behavior to private or local guidance.
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
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.

