session-retro
Skill0 starsChanged 5 months agoMITView on GitHub
Analyze how the session actually went and propose improvements to skills, hooks, rules, and workflows.
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- momentmaker/kaijutsutheir own version, first seen May 20, 2026
- phntm7/skillstheir own version, first seen May 13, 2026
- Kwangseok-Seo/skillstheir own version, first seen May 9, 2026
- Arman-Kudaibergenov/1c-ai-development-kittheir own version, first seen Mar 4, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Arman-Kudaibergenov/1c-ai-development-kit★ 166same name
- momentmaker/kaijutsu★ 3same name
- Kwangseok-Seo/skills★ 2same name
- phntm7/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- cc-bestpracticeSkill
- checkpointSkill
- codex-secondary-reviewSkill
- devils-advocateSkill
- github-issue-implSkill
- monorepo-managerSkill
- pr-context-summarySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Before ending a session, run these in order:
- Very specific: line 61
Check whether --issue is present
- Distinctive: line 97
Look back at the conversation during the session and analyse it along the angles below.
- Distinctive: line 124
If a proposal overlaps with the existing infrastructure collected in step 2b:
- Very specific: line 163
When the --issue flag is given, file only the High-priority proposals as GitHub issues.
- Distinctive: line 173
After creating an issue, append its URL to the report
- Very specific: line 189
Never put .env contents or token information in the report
“Common” is measured: kept by at least 6 in 10 of the 4 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.
Files
/session-retro
A skill that looks back at the working patterns of a session and proposes process and infrastructure improvements. It analyses them in five categories: new skills, new hooks, new rules, workflow improvements, and settings tweaks.
How it differs
| Skill | Focus | Output |
| An external logging skill (optional) | What was done (a record) | An external note (not bundled in this kit; only if you added one) |
reflexion:memorize | Improving the agent's knowledge | CLAUDE.md |
/session-retro | Process and infrastructure improvement proposals | The terminal + a GitHub issue |
Usage
# Basic run
/session-retro
# Specify the number of commits
/session-retro --commits 20
# File the High-priority proposals as GitHub issues
/session-retro --issueArguments
| Argument | Description | Default |
--commits N | The number of commits to analyse | 10 |
--issue | File the High-priority proposals as GitHub issues | false |
When to run it
Before ending a session, run these in order:
1. External logging (optional) -> record what you did externally (only if you added a logging skill)
2. /session-retro -> print the process improvement proposals
3. /reflexion:memorize -> accumulate learnings in CLAUDE.md (optional)Procedure
Step 1: Parse the arguments
- Read
--commits N(default: 10) - Check whether
--issueis present
Step 2: Collect the sources
Collect the following in parallel.
2a. Git information
# Recent commit patterns
git log --oneline -N
# Distribution of changed files
git diff --stat HEAD~N..HEAD 2>/dev/null || echo "not enough commits"
# List of changed files
git diff --name-only HEAD~N..HEAD 2>/dev/null2b. Existing infrastructure
# Skills (extract the name and description)
for f in .claude/skills/*/SKILL.md; do
name=$(head -5 "$f" | grep "^name:" | sed 's/name: //')
desc=$(head -5 "$f" | grep "^description:" | sed 's/description: //')
echo "- $name: $desc"
done
# Hooks
jq '.hooks // {}' .claude/settings.json
# Rules
ls .claude/rules/*.mdStep 3: Analyse the conversation context
Look back at the conversation during the session and analyse it along the angles below. This is the heart of the skill, and it depends on the LLM's ability to analyse itself.
Patterns to detect
- Repeated operations: the same kind of command or tool call issued several times
- Routine work: a work flow performed with the same steps every time
- Manual verification: checks done by hand that could have been automated
- Trial and error: an error → fix → retry loop
- Implicit rules: conventions or patterns followed but never written down
- Unused skills: situations an existing skill could have handled but was not used for
- Workflow deviations: work that stepped outside the flow in dev-flow.md
Step 4: Generate proposals in five categories
Cross-reference the collected data with the conversation context and produce proposals in these five categories.
| Category | What it detects | Criteria |
| skill-candidate | Turning a repeated operation into a skill | Routine work repeated twice or more |
| hook-candidate | Verification or conversion that should run automatically | Verification done by hand every time, routine post-processing after a tool run |
| rule-candidate | Implicit rules / patterns of violation | Conventions followed but never written down |
| workflow-improvement | Improving the development flow or the use of existing skills | Flow deviations, unused skills |
| settings-tweak | Improving settings.json | Too few or too many permissions, deny rules to add |
Duplicate check
- If a proposal overlaps with the existing infrastructure collected in step 2b:
- Complete overlap → drop the proposal
- Partial overlap (an extension of an existing skill) → classify it as
workflow-improvementand propose it as "making better use of an existing skill"
Step 5: Print the report
Print to the terminal in the format below.
Output language: write the report body in the language of the session (the same language you are answering the user in). The template below is the English sample and is not a set of strings to copy verbatim.
docs/rules/output-language.mdis the SSoT for the fixed label translations and the language-invariant tokens. Fixed regardless of language (never translate): the proposal category valuesskill/hook/rule/workflow/settings(downstream tallying and branching read these values).
## Session Retro report
### Summary
- Session date: {YYYY-MM-DD}
- Analysed: the conversation context + {N} git commits
- Proposals found: {total} (skill: {n}, hook: {n}, rule: {n}, workflow: {n}, settings: {n})
### Proposals
#### 1. [{category}] {proposal title}
**Observed**: {the concrete pattern observed during the session}
**Proposal**: {what the improvement actually is}
**Priority**: High / Medium / Low
**Implementation estimate**: Small / Medium / Large
---
(repeat per proposal)
### Next actions
Proposals recommended for immediate action:
1. {the highest-priority proposal and why}Step 6: File GitHub issues (only with --issue)
When the --issue flag is given, file only the High-priority proposals as GitHub issues.
gh issue create \
--title "[infra] session-retro: {proposal title}" \
--body "{proposal details (observation, proposal, category, implementation estimate)}" \
--label "enhancement"- With several High proposals, file each as its own issue
- After creating an issue, append its URL to the report
Edge cases
| Case | Response |
| Zero commits (an investigation session) | Skip the git analysis and work from the conversation context alone |
| Zero proposals | Report that "the current setup is already well optimized" |
| A proposal that duplicates an existing skill | Classify it as workflow-improvement and propose it as "a better way to use it" |
| A very short session | Report that there is not enough data to analyse |
Safety rules
- Propose only, never implement (Edit/Write are not in allowed-tools)
- Creating or changing skills, hooks, and rules is left to the user's judgment
- Filing an issue with
--issuedoes not need maintainer approval - Never put
.envcontents or token information in the report
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.

