session-end
Skill0 starsChanged 7 months agoMITView on GitHub
Use when ending a work session, when the user says "Session beenden", "fuer morgen", "Feierabend", "Session zusammenfassen", "was haben wir gemacht", "next-session aktualisieren" or "fuer naechste Session". Archives the session summary, updates next-session.md slim, commits changes; pushes only after explicit user confirmation.
- Reads credentials
- Sends data out
- Commits and pushes
28 other projects use a version of this.
Adopted by
Most recently taken up by
- spizganed/skillstheir own version, first seen Nov 8, 2026
- edxleon/runspectortheir own version, first seen Nov 8, 2026
- salvo8519/fairmarktheir own version, first seen Nov 8, 2026
- puritysb/AgentDecktheir own version, first seen Nov 2, 2026
- ravindu57/SCMLtheir own version, first seen Nov 1, 2026
- IlyaGorsky/memory-toolkittheir own version, first seen Nov 1, 2026
Used with
Projects with it also use session-start and ship.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
bitwize-music-studioSkillsession-start
Runs the session startup procedure - verifies setup, loads config and state, checks skill models, and reports project status. Use at the beginning of a fresh session.
Also in 11 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- puritysb/AgentDeck★ 288same name
- faizkhairi/claude-code-blueprint★ 73same name
- Kanevry/session-orchestrator★ 53same name
- valpere/session-indexer★ 42same name
- namedtoaster/The-Last-Mile★ 39same name
- iamneilroberts/claude-skills★ 26same name
- IlyaGorsky/memory-toolkit★ 13same name
- edxleon/runspector★ 9same name
- mae616/ai-template★ 9same name
- freskhu/genesis★ 5same name
18 more not listed
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 repository10 other files it gives its agents.
- accessibility-a11ySkill
- bulletproof-containerSkill
- claude-features-updateSkill
- create-agentSkill
- create-skillSkill
- dokumentenaustauschSkill
- find-skillsSkill
- owasp-securitySkill
- projekt-audit-kundenplanSkill
- setup-claude-envSkill
The file
Files
Session-End Skill — Session dokumentieren, committen, (optional) pushen
Ziel dieses Skills: eine saubere Abschluss-Routine fuer eine Arbeitssession. Die Routine soll
- einen kompakten Handoff in
next-session.mdhinterlassen, - die vollstaendige Session-Zusammenfassung ins Archiv schreiben (nicht in die Haupt-Handoff-Datei),
- alle relevanten Aenderungen committen,
- erst NACH ausdruecklicher Zustimmung pushen,
- Repo-lokale Schreib-Policies respektieren (MANUAL-/DASHBOARD-GENERATED-
Bloecke, append-only-Regeln, projekt-spezifische Hinweise in
CLAUDE.mdundAGENTS.md).
Wann aktivieren
Der Skill aktiviert sich, wenn der User sagt:
- "Session beenden"
- "fuer morgen" / "fuer naechste Session"
- "Feierabend"
- "Session zusammenfassen"
- "next-session aktualisieren"
- "was haben wir gemacht"
Grundprinzipien
next-session.mdist operativer Kurz-Handoff, kein Session-Log. Keine neuen## Session {DATUM}-Blöcke in diese Datei schreiben.- Session-Details kommen in
next-session-archiv.mdbzw. das projekt- spezifische Archiv (z.B.docs/next-session-archive-YYYY-Q.md, wenn ein Projekt seine Archive nach Quartal organisiert). - Lese-Reihenfolge und Prioritaetsregeln aus projekt-lokalen Dateien
(
CLAUDE.md,AGENTS.md, Sub-CLAUDE.md) immer respektieren. Wenn ein Projekt eine abweichende Handoff-Regel definiert (z.B.NOW-next-critical- path.mdals primaere Prioritaetsdatei), diese uebernehmen. - MANUAL-/DASHBOARD-GENERATED-Bloecke nicht ueberschreiben, ausser der Skill
ist als
sourcedes Blocks ausgewiesen. - Unmarkierter Text gilt als manuell und ist schreibgeschuetzt.
- Push ist kein Default. Immer nur, wenn der User ausdruecklich zustimmt oder dies explizit verlangt hat.
Ablauf
1. Projekt-Root ermitteln
PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)Falls kein Git-Repo: fragen, ob trotzdem weitergemacht werden soll.
2. Session-Aktivitaet erheben
git status -s
git log --oneline --since="12 hours ago"
git diff --stat HEAD~10..HEAD 2>/dev/null | tail -30Aus dem Log + dem Status eine kurze Zusammenfassung bilden:
- welche Features / Fixes / Docs neu sind
- welche Dateien geaendert wurden
- offene Punkte (aus TODO, Tests, Logs)
3. Repo-Konventionen lesen
Pruefen auf projekt-lokale Regeln:
CLAUDE.mdim Repo-RootAGENTS.mdim Repo-Root- Sub-
CLAUDE.mdin relevanten Verzeichnissen (sprints/,services/,routes/)
Typische Signale:
- append-only-Regel fuer
next-session.md - MANUAL-/DASHBOARD-GENERATED-Block-Konvention
- Hinweis auf eine
NOW-next-critical-path.mdoder aehnliche operative Prioritaetsdatei - Hinweis auf
next-session-archiv*.mdoderdocs/next-session-archive-*.md
Der Skill respektiert diese Regeln, ohne manuell geschriebene Abschnitte zu kuerzen oder umzuformulieren.
4. Archiv-Datei bestimmen und befuellen
Archiv-Zielort pruefen in dieser Reihenfolge:
next-session-archiv.mdim Repo-Rootdocs/next-session-archive-*.md- sonst neu anlegen:
next-session-archiv.mdim Repo-Root
Neueste Session zuerst einfuegen (oben in der Datei). Format:
## Session {ISO-DATUM} — {Titel}
### Was erledigt wurde
- {Feature 1}
- {Feature 2}
### Git-Commits{git log --oneline}
### Betroffene Dateien
| Datei | Aenderung |
|-------|-----------|
| ... | ... |
### Offene Punkte fuer naechste Session
- {TODO 1}Alles, was aktuell in next-session.md als Session-Block steht und nicht
zum Kurz-Handoff gehoert (also saemtliche ## Session ..., Sprint-
Historie, abgeschlossene Tasks), zuerst in die Archivdatei ueberfuehren.
5. next-session.md als schlanken Handoff aktualisieren
Nur die operativen Felder anpassen. Der Header am Anfang der Datei:
> **Letzte Aktualisierung:** {DATUM}
> **Status:** {EIN_SATZ_STAND}
> **Naechste Aufgabe:** {NAECHSTE_AUFGABE}Operative Abschnitte (sofern vorhanden):
## Was gilt jetzt— aktueller Arbeitsstand, kein Verlaufstext## Naechste Aufgaben/## NOW / NEXT / LATER— offene Punkte## Wie naechste Session starten— Lese-Reihenfolge respektieren## Operative Hinweise— Service-Infos, Logs, Backup-Pfade
Nicht:
- keine neuen
## Session {DATUM}-Bloecke anfuegen - keine kompletten Diff-Listen oder Commit-Dumps in
next-session.md
Wenn der Repo-Flow einen einzeiligen "Update {DATUM}"-Block in
next-session.md verlangt (manche Projekte nutzen dieses Muster fuer
Dashboard-Sync), darf ein knapper Block von max. 5 Zeilen angefuegt
werden, aber keine Langfassung.
6. Commit
Gezielt stagen. Nicht git add -A:
git add next-session.md next-session-archiv.md <geaenderte-Dateien>Nicht stagen: secrets/, .env*, *.pdf, node_modules/, .next/,
.astro/, .kilocode/, Build-Artifacts.
Commit-Message:
git commit -m "$(cat <<'EOF'
docs: Session {DATUM} dokumentiert
- {Haupt-Aenderung 1}
- {Haupt-Aenderung 2}
Co-Authored-By: Claude Code <noreply@anthropic.com>
EOF
)"Co-Author-Zeile ohne Modell-Versions-Hardcoding, damit sie ueber mehrere Model-Generationen stabil bleibt.
7. App-Sync — Summary und Next Step in die Datenbank schreiben (optional, projekt-spezifisch)
Dieser Schritt ist nur sinnvoll, wenn das Projekt eine eigene Status-/
Session-API betreibt, die Summary und Next-Step entgegennimmt
(POST /api/sessions/{id}/summary und POST /api/sessions/{id}/next-step).
Bei Projekten ohne solche API: diesen Schritt komplett ueberspringen.
Nur ausfuehren wenn im aktuellen Repo eine docker-compose.yml vorhanden ist
die auf einen App-Container hinweist (Stichwort uvicorn oder Port-Mapping
XXXX:8000) UND das Projekt eine /api/sessions-Route bereitstellt.
7a. App-URL ermitteln
grep -A3 "ports:" docker-compose.yml 2>/dev/null | grep -oP '\d+(?=:8000)'Gefundener Host-Port ergibt APP_URL=http://localhost:<PORT>.
Kein Port gefunden → APP_URL=http://localhost:8000.
7b. project_key ermitteln
Reihenfolge:
.envnachPROJECT_KEY=durchsuchen- Argument des Skill-Aufrufs falls angegeben
- Fallback:
default
7c. Aktive Session ermitteln
curl -sf "${APP_URL}/api/sessions?project_key=${PROJECT_KEY}"Aus dem JSON-Array die neueste Session nehmen bei der status != "archived"
ist (erstes Element, da nach updated_at desc sortiert). Session-id
merken.
Schlaegt curl fehl (App nicht erreichbar, Exit-Code != 0) → Schritt
ueberspringen, im Output vermerken: "App nicht erreichbar — kein DB-Sync."
7d. Summary schreiben
Summary = ein kompakter Satz/Absatz was in dieser Session erledigt wurde (aus Schritt 2 bereits bekannt).
curl -sf -X POST "${APP_URL}/api/sessions/${SESSION_ID}/summary" \
-H "Content-Type: application/json" \
-d "{\"summary\": \"${SUMMARY_TEXT}\"}"7e. Next Step schreiben
Next Step = das wichtigste offene TODO fuer die naechste Session
(aus Schritt 5 next-session.md Abschnitt NOW/NEXT bereits bekannt).
curl -sf -X POST "${APP_URL}/api/sessions/${SESSION_ID}/next-step" \
-H "Content-Type: application/json" \
-d "{\"next_step\": \"${NEXT_STEP_TEXT}\"}"Schlaegt ein Call fehl → Fehler im Output nennen, aber Ablauf nicht abbrechen.
8. Push — nur nach Rueckfrage
Niemals automatisch pushen. Stattdessen:
- Aktuellen Remote-Stand melden:
git remote -v git status -b -s - Dem User berichten, dass der Commit lokal erstellt ist und fragen, ob gepusht werden soll (welcher Remote).
- Erst nach expliziter Zustimmung:
git push <remote> <branch>
Wenn der User zuvor in dieser Session pauschal "immer pushen" gesagt hat, darf gepusht werden — sonst nicht.
Ausgabe
Nach Abschluss:
Session dokumentiert.
Archiv: <archiv-dateiname>
Handoff: next-session.md aktualisiert
Datum: {DATUM}
Commits: {ANZAHL}
App-Sync: Session {ID} — Summary + Next Step geschrieben ← neu
(oder: App nicht erreichbar — kein DB-Sync)
Push: offen (Rueckfrage an User)
Zusammenfassung:
- {Feature 1}
- {Feature 2}
Naechste Session:
- {TODO 1}
- {TODO 2}Hinweise
next-session.mdschlank halten. Ziel: max. 130 Zeilen nach Archivierung. Alles darueber hinaus: ins Archiv.- Projekt-Konventionen haben Vorrang vor den Default-Pfaden in diesem
Skill. Wenn das Repo z.B. eigenes Archiv unter
docs/pflegt, dieses nutzen. - Keine sensiblen Daten committen.
- Bei unfertigen Features Status "IN ARBEIT" in der Aufgaben-Liste setzen, nicht als "done" in der Status-Tabelle.
- Wenn ein Projekt eine Prioritaetsdatei wie
NOW-next-critical-path.mdpflegt, vor dem Handoff-Update pruefen, ob dort Anpassungen noetig sind (z.B. abgeschlossene NOW-Punkte ruecken nach NEXT nach).
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.

