close
End-of-session protocol — push, checkpoint, docs, story episode
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
End-of-session protocol — push, checkpoint, docs, story episode
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Babysit a sibling Claude Code session in another tmux pane through a long-running plan. On every idle, ask the session if /clear is useful; if yes, sibling Writes its self-contained next-prompt body to /tmp/orchestrate-next.txt, orchestrator runs /clear and tells sibling to Read+execute that file (no paste-buffer). Halt on design questions or unexpected deviations. On every /orchestrate invocation it FIRST reads the handoff doc /srv/grappa/.orchestrate/orchestrator-resume.md (the persistent brain) then reconciles against the per-pane daemon state — so /orchestrate alone resumes with zero extra instruction; user can /clear freely to save tokens.
Dispatch parallel codebase or architecture review agents per docs/reviewing.md
Session start protocol — workflow gates, pending work, status report
| name | close |
| description | End-of-session protocol — push, checkpoint, docs, story episode |
Session closing skill. Invoke with /close at end of session.
git log --oneline origin/main..HEAD
If commits exist, push:
git push
Find the active checkpoint (status: active in docs/checkpoints/).
Add a new session section (## Sn — YYYY-MM-DD — descriptive title).
Content per session:
Use existing checkpoint sections as format reference. Concise but complete — the checkpoint is the permanent record.
Count session headers (## S) and total lines in active checkpoint.
Rotate if ANY of:
Rotation procedure:
status: active → status: done in frontmatterdocs/checkpoints/YYYY-MM-DD-cpNN.md
with status: active, # CPNN, and a Previous: line summarising
the closed checkpoint## State at checkpoint creation with current statsdocs: close CPxx, create CPyyCheck whether this session's work affects:
README.md — spec changes (rare; usually only at phase boundaries)docs/DESIGN_NOTES.md — every architectural decision MUST land here
with date + rationale + apply-ruleCLAUDE.md — new patterns or rules that should outlive the sessiondocs/todo.md — already handled in step 3Skip docs that weren't affected. Don't touch docs for cosmetic reasons.
Staleness check: grep the living docs for references to renamed/ removed modules, schemas, contexts, or changed patterns from this session. Fix any stale references found. Don't touch archived docs — they're historical records.
Every session gets an episode in docs/project-story.md. There is
always something to say — a design decision, a debugging rabbit hole,
a production surprise, a moment where the plan met reality. Even
"routine" sessions have a story: why was this the priority, what was
the tradeoff, what did we learn. The project story is the narrative
history. Gaps in the story are gaps in institutional memory.
Find the angle. Some sessions have obvious drama (production crashes, reverts, architectural pivots). Others need you to look harder — the small surprise that changed the approach, the assumption that turned out wrong, the thing that was harder (or easier) than expected. If nothing went wrong, write about what went right and why.
When writing:
Commit all doc changes:
docs: close session — CP update + [whatever else changed]
Push to origin.
Tell the human: