close
Skill25 starsChanged 7 days agoMITView on GitHub
Save session outcomes to durable vault memory and prepare a resume point. Use when ending a session, wrapping up, or done for today.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- matthewwong525/WongStacktheir own version, first seen Nov 8, 2026
- vzhukovs/podman-desktop-kittheir own version, first seen Nov 1, 2026
- sophonfinance-wq/finance-automation-portfoliotheir own version, first seen Nov 1, 2026
- PapiScholz/session-closuretheir own version, first seen Oct 17, 2026
- GusevV1987/ai-workspace-kittheir own version, first seen Oct 15, 2026
- charly-vibes/incitacionestheir own version, first seen Oct 14, 2026
Used with
Projects with it also use validate, plan and 2 more.
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.
Microsoft AzureSkillvalidate
Run the full CI validation workflow locally before submitting a PR. Use this as a final check to ensure all Azure DevOps CI pipeline steps will pass.
Also in 4 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 8 projects that use this
OpenAISkillbootstrap
Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db/dev commands happen in the correct safe order.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 5 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- Kanevry/session-orchestrator★ 53same name
- sophonfinance-wq/finance-automation-portfolio★ 16same name
- maxwellsdm1867/wheeler★ 12same name
- matteo-stratega/claude-cortex★ 8same name
- matthewwong525/WongStack★ 7same name
- snapsynapse/skill-provenance★ 7same name
- BriGadja/iapreneurs-claude-code-kit★ 6same name
- Magnus-Gille/claude-skills★ 5same name
- apideck-libraries/api-skills★ 4same name
- charlie947/skills-for-everyone★ 2same name
16 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 repository71 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- agent-fitnessSkill
- body-checkSkill
- briefSkill
- capsule-compactSkill
- codex-adapterSkill
- cognitive-updateSkill
- comms-summarizeSkill
- compact-noteSkill
- context-capsuleSkill
- context-hygieneSkill
- critique-planSkill
- decideSkill
- deep-reconSkill
- DiagnoseSkill
- digestSkill
- dreamSkill
- EnvelopeSkill
- find-weaknessSkill
- First 10 MovesSkill
- first-winSkill
- frontend-slidesSkill
- Honesty CheckSkill
- humanize-docsSkill
- impeccableSkill
- learn-from-failureSkill
- LearnSkill
- memory-bridgeSkill
- meta-improveSkill
- meta-improve-vaultSkill
- nightly-close-paritySkill
- nightly-ledger-captureSkill
- nightlySkill
- openSkill
- operator-setupSkill
- orientSkill
- pauseSkill
- ponytailSkill
- port-specSkill
- PromoteSkill
- reconcileSkill
- research-deepSkill
- resumeSkill
- Sandbox RoutingSkill
- scout-vaultSkill
- Self-ReviewSkill
- semantic-searchSkill
- setupSkill
- ship-adapterSkill
- Skill AuditSkill
- skill-huntSkill
- skill-recallSkill
- solution-huntSkill
- sprite-specSkill
- startSkill
- statusSkill
- StuckSkill
- supersedeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. 0 are common, 10 are distinctive, and 17 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run the aigent-OS end-of-session memory commit inline.
- Very specific: line 14
All operator-owned durable state lives under vault/.
- Distinctive: line 40
Run these checks before writing the daily note.
- Very specific: line 44
If the session included non-trivial work, completed-task claims, multi-file edits, or consequential decisions and …
- Very specific: line 46
Run /honesty-check on the most consequential work block.
- Very specific: line 52
If consequential work was described as fixed, verified, tested, deployed, complete, shipped, ready, running, merged, or passing and …
- Very specific: line 56
If /diagnose established a verified cause, append it to vault/memory/FAILURE_MODES.md unless an equivalent entry already exists.
- Distinctive: line 60
If the operator answered a decision-aging prompt, use the dedicated writer before closing:
- Very specific: line 83
Read vault/memory/MEMORY_CANDIDATES.md.
- Very specific: line 87
Create vault/memory/capsules/<capsule_id>.md when any of these are true:
- Very specific: line 94
Use the context-capsule schema, set status: active, and connect resumed sessions with parent_capsule_id.
- Very specific: line 96
Update vault/memory/BODY_STATE.json at state.last_capsule only after the capsule file is durable.
- Distinctive: line 102
Update only files whose owned state changed.
- Distinctive: line 120
Create new notes with YAML frontmatter and relevant wikilinks.
- Distinctive: line 126
Read the current version.
- Distinctive: line 130
Avoid duplicate local entry keys, claim IDs, fact IDs, and capsule IDs.
- Very specific: line 134
Create or update vault/daily/YYYY-MM-DD.md:
- Very specific: line 166
Add one entry near the top of vault/memory/SESSION_LOG.md:
- Distinctive: line 187
Use the current session's stable local key for idempotency.
- Very specific: line 193
Run the shared Dream protocol in skills/dream/SKILL.md.
- Very specific: line 203
If it reports red, use skills/context-hygiene/SKILL.md to archive whole dated blocks before trimming, then re-run the checker.
- Distinctive: line 235
Only update an integration validation ledger when that integration was configured and used.
- Distinctive: line 262
After all vault writes:
- Very specific: line 268
Read vault/memory/runtime/ACTIVE_STATE.json and include active reflexes in the close summary when they require action.
- Distinctive: line 279
Do not list every file that was merely read.
- Very specific: line 283
Write the current UTC ISO timestamp to .aigent/last-close only after the durable memory writes complete:
- Very specific: line 297
If any required write failed, do not advance the close marker.
“Common” is measured: kept by at least 6 in 10 of the 21 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 Close
Deprecated. This skill is superseded by [[skills/context-capsule/SKILL.md|/context-capsule]] (docs/two-verb-lifecycle.md). New installs should reach for
/context-capsule; this file stays for anyone still invoking/closeby habit during the transition.
Run the aigent-OS end-of-session memory commit inline. The close must be idempotent: rerunning it after a partial failure must not duplicate ledger entries, capsules, or session summaries.
All operator-owned durable state lives under vault/. Framework indexes such as memory/SKILL_LEDGER.md remain outside the vault and are not session memory.
Hardened compatibility contract
The active two-verb lifecycle does not run a second close ceremony, but manual
/close keeps the same shared postconditions as nightly:
- exact already-authored decision outcomes append only through
daemons/nightly-decision-outcome.mjs, with a unique decision/interval match and compare-and-swap; - bounded Session Log or Active Priorities trimming runs only through
skills/context-hygiene/SKILL.md, archives before removal, and must end inCONTEXT_HYGIENE PASS; - Dream synthesis follows
skills/dream/SKILL.mdand must end inDREAM_CONTRACT PASS; - cognitive changes follow
skills/cognitive-update/SKILL.mdand must end inCOGNITIVE_CONTRACT PASS; - missing canonical input is failure, not "nothing to do";
- judgment-bearing measurement entries are staged through
skills/nightly-ledger-capture/SKILL.md.
These helpers use local memory, Git, stderr, and the SessionStart surface. No external coordination service is required.
Step 0: discipline audit
Run these checks before writing the daily note.
Gate A: honesty ledger
If the session included non-trivial work, completed-task claims, multi-file edits, or consequential decisions and vault/memory/HONESTY_LEDGER.md was not updated:
- Run
/honesty-checkon the most consequential work block. - Append one structured entry covering verified, inferred, guessed, tradeoffs, stopped short, cost implications, self-rating, and resolution.
- Continue only after the entry is durable.
Gate B: trust-decay capture
If consequential work was described as fixed, verified, tested, deployed, complete, shipped, ready, running, merged, or passing and vault/memory/TRUST_DECAY.md was not updated, append one to three open Phase 1 claims. Do not convert confident language into evidence after the fact.
Gate C: failure corpus
If /diagnose established a verified cause, append it to vault/memory/FAILURE_MODES.md unless an equivalent entry already exists.
Gate D: decision outcomes
If the operator answered a decision-aging prompt, use the dedicated writer before closing:
node daemons/nightly-decision-outcome.mjs --root "$AIGENT_ROOT" \
--as-of <YYYY-MM-DD> --decision-date <YYYY-MM-DD> \
--decision-title "<exact heading>" --interval <30|60|90> \
--outcome "<enum>" --operator-text "<exact enum>" \
--operator-source "<durable direct operator ref>" \
--expected-file-sha "<pre-read sha256>"Ambiguous, not-yet-due, already-recorded, or raced correspondence is staged instead of guessed.
Gate E: weekly measurement
On Friday, include one line summarizing honesty entries, trust-decay captures, failure modes, and decision outcomes for the week. Zero activity after a non-trivial week is a signal that the measurement loop did not fire.
Step 0.5: somatic integrations
Review staged memory
Read vault/memory/MEMORY_CANDIDATES.md. If staged candidates exist, run /digest. Promotion remains human-gated; a close may record deferral but must not silently promote candidates.
Create a context capsule when needed
Create vault/memory/capsules/<capsule_id>.md when any of these are true:
- Context pressure is medium or higher.
- More than five delegations remain open.
- A non-trivial task shipped.
- The operator explicitly requested a capsule.
Use the context-capsule schema, set status: active, and connect resumed sessions with parent_capsule_id. If a previous capsule is still active, demote it to resumed before making the new one active.
Update vault/memory/BODY_STATE.json at state.last_capsule only after the capsule file is durable.
Skip capsule creation when there is no meaningful state to preserve.
Step 1: identify durable changes
Update only files whose owned state changed. Typical sessions touch two to six notes.
| Location | Update when |
vault/memory/SESSION_LOG.md | Always, with one idempotent entry per session |
vault/memory/DECISION_LOG.md | A lasting, non-obvious decision was made |
vault/memory/ACTIVE_PRIORITIES.md | Priority, mode, blocker, or completion changed |
vault/memory/DELEGATION_TRACKER.md | A delegation opened, moved, blocked, or closed |
vault/projects/*.md | Project state materially changed |
vault/agents/*.md | Agent scope or capability changed |
vault/people/*.md | A person or role changed |
vault/concepts/*.md | Durable doctrine or a reusable technique changed |
vault/memory/PRODUCT_STATE.md | Its map-of-content links changed |
vault/memory/BUSINESS_CONTEXT.md | Material business context changed |
vault/memory/PEOPLE_AND_ROLES.md | Its map-of-content links changed |
vault/memory/BOTTLENECK_PATTERNS.md | A repeated bottleneck appeared or resolved |
vault/memory/IDEA_QUEUE.md | A useful idea should survive the session |
Create new notes with YAML frontmatter and relevant wikilinks. Do not manufacture notes merely to make the close look busy.
Step 2: apply edits
For each file:
- Read the current version.
- Make the smallest accurate change.
- Preserve user-authored material.
- Add relevant wikilinks.
- Avoid duplicate local entry keys, claim IDs, fact IDs, and capsule IDs.
Step 3: daily note
Create or update vault/daily/YYYY-MM-DD.md:
---
title: "YYYY-MM-DD"
tags:
- daily
date: YYYY-MM-DD
---
# YYYY-MM-DD
## Session Work
- Work completed, linked to notes touched
## Decisions
- Lasting decisions
## Comms
- Material communication state
## Open Threads
- Unresolved work and owners
## Links
Previous: [[YYYY-MM-DD]]Preserve an existing ## Session Captures section written by hooks. Merge session prose around it rather than overwriting it.
Step 4: session log
Add one entry near the top of vault/memory/SESSION_LOG.md:
## YYYY-MM-DD - session topic
**Objective:** one line
**Completed:**
- completed work or None
**Decisions:**
- durable decision or None
**Open threads:**
- unresolved item or None
**Next action:** action and owner
See [[YYYY-MM-DD]].Use the current session's stable local key for idempotency. If the same entry already exists, update it instead of appending another block. Keep five detailed recent entries and collapse older entries into the archive.
Step 4.5: synthesis and bounded context hygiene
Run the shared Dream protocol in skills/dream/SKILL.md. Capture an
operating-system temp pre-write snapshot and require literal
DREAM_CONTRACT PASS; a caller-supplied candidate count is not evidence.
Then run:
node "$AIGENT_ROOT/daemons/nightly-context-hygiene.mjs" --root "$AIGENT_ROOT"If it reports red, use skills/context-hygiene/SKILL.md to archive whole dated
blocks before trimming, then re-run the checker. Refuse unfamiliar shapes and
compare-and-swap races.
Step 5: rebuild memory heat
Run:
node "$AIGENT_ROOT/daemons/memory-heat/compute-heat.js"The output belongs at vault/memory/HEAT_INDEX.json. Surface failures; do not hide them behind unconditional 2>/dev/null.
Step 6: usage sync
Run, when present:
bash "$AIGENT_ROOT/daemons/sync-usage.sh"A missing optional daemon is a skip, not a successful run.
Step 6.5: temporal facts
Append concrete, verifiable state changes to vault/memory/facts/facts.jsonl. Facts need provenance, confidence, validity dates, and a stable ID. When a new fact contradicts an old one, close the old validity window and connect it with superseded_by before appending the replacement.
Skip this step when no verifiable fact changed.
Step 7: optional integration validation
Only update an integration validation ledger when that integration was configured and used. Do not claim an optional MCP, plugin, or connector was validated merely because its documentation exists in the repo.
For remindb, use vault/memory/REMINDB_VALIDATION.md and record whether a memory tool ran and whether a defined failure occurred.
Step 7.5: system check
Run:
bash "$AIGENT_ROOT/daemons/system-check.sh"- PASS: include one concise line.
- FAIL: include the failure lines and continue closing.
- INFO: report the count and durable log location.
The audit does not block memory persistence, but failures must not be described as success.
Step 7.75: conservative cognitive update
Execute skills/cognitive-update/SKILL.md. It may touch only the four files in
that skill's ownership fence. Require literal COGNITIVE_CONTRACT PASS. Zero
qualifying updates are valid when the skipped count and source scope are
recorded.
Step 8: recompute runtime state
After all vault writes:
python3 "$AIGENT_ROOT/daemons/runtime/update-active-state.py"Read vault/memory/runtime/ACTIVE_STATE.json and include active reflexes in the close summary when they require action.
Step 9: output a brief commit summary
Report:
- Notes updated and why.
- Notes created.
- Checks that failed or were skipped.
- The single most important next-session pickup.
Do not list every file that was merely read.
Step 10: stamp the close
Write the current UTC ISO timestamp to .aigent/last-close only after the durable memory writes complete:
mkdir -p .aigent
date -u +%Y-%m-%dT%H:%M:%SZ > .aigent/last-closeOn PowerShell:
New-Item -ItemType Directory -Force .aigent | Out-Null
(Get-Date -AsUTC).ToString('yyyy-MM-ddTHH:mm:ssZ') | Set-Content .aigent\last-closeIf any required write failed, do not advance the close marker. State exactly which artifact remains incomplete so the next /open can recover it.
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.

