Close Session and Create Vault Node

VerifiedSafe

Workflow to close a session, write a summary, classify decisions, and create a structured vault conversation node.

Sby Skills Guide Bot
DocumentationAdvanced
7/23/2026
Claude Code
#knowledge-management#session-notes#vault#ontology#handoff

Recommended for

Automated summary

Closes a working session by triaging whether a vault conversation node is warranted, then writing that structured node under docs/vault/conversations/.

Strengths

  • A explicit triage step that prevents creating a node for a pure Q&A session.
  • Cleanly separates human judgment (summary, forward sections) from mechanical classification delegated to Sonnet.
  • Enforces a fixed frontmatter and section layout: expiry date, contradictions, expected importance and its rationale.
  • Ships discriminating rules to tell open questions, next steps and recommendation apart.

Limitations

  • Relies on a repo-specific ontology file (docs/vault/ontology-conventions.md) and its directory layout.
  • Depends on delegating to a Sonnet agent, which ties it to Claude Code and makes it hard to port.
  • The node template is highly prescriptive: adopting it on another vault means rewriting the schema.
When to use it

Use it at the end of a Claude Code session that touched vault docs, domain code, tests or architectural decisions.

When not to use it

Avoid it for a pure Q&A session with no changes or decisions, or in a repository without a docs/vault ontology.

Security analysis

Safe
Quality score80/100

The skill is a pure documentation/bookkeeping workflow: it writes a markdown node, delegates classification to sub-agents, and deletes a designated scratchpad file after saving. There is no network access, no shell pipeline, no credential handling, no obfuscation, and no attempt to weaken safety controls. The only destructive-capable instruction is a narrowly scoped cleanup of a known session file. Nothing here is exfiltration or privilege-related, so it rates safe.

Findings
  • •Instructs deletion of a scratchpad file in `claude/current_conversations/` (scoped, only after the node is saved — low risk but destructive-capable)
  • •Spawns sub-agents (Sonnet) that receive session summaries and file lists — no tool scoping declared, so delegated agents inherit default capabilities
  • •Depends on external references (`docs/vault/ontology-conventions.md`, `.claude/skills/custom/backlog-pattern.md`, `docs/vault/backlog/{topic}.md`) whose contents are not shown; behavior is undefined if they are missing or differ
How this analysis is made

Examples

Close after code and vault changes
Close this session. We refactored the ingest pipeline and updated docs/vault/specs/ingest.md — create the conversation node.
Q&A-only triage
Close out the session; we only asked questions about the ontology conventions and changed nothing.
Session that contradicts a node
Close the session and record that our new caching test contradicts the caching premise node — add the edge and draft the forward sections.

name: close-session description: Close a session and create a vault conversation node

Close Session Workflow

Classification source of truth: docs/vault/ontology-conventions.md.


Step 0 — Triage

Create a node if any is true: vault doc changed/created/deleted, domain code changed, architectural decision made, tests added/modified, contradiction found/resolved.

Skip if: no vault/code changes AND purely Q&A with no decisions. Say "Q&A-only session. No vault node created." and stop.

Scratchpad: Check claude/current_conversations/ for a session file. If found, use it as primary input and delete it after saving the node.


Step 1 — Write Summary (do this yourself)

Write up to 10 sentences: what the session set out to do, what was decided (and why), what was done. No sub-headings, no per-file detail. A reader should grasp the arc without access to the conversation. Also draft the Forward lines yourself (Step 3). The discriminating test is a judgment — never delegated to Sonnet.


Step 2 — Delegate classification to Sonnet

Spawn an Agent (model: sonnet) with your summary + list of files touched. It returns:

  1. node_type (first match wins): constitution → premise → conceptual → test → discovery → implementation-plan → audit → spec (fallback).
  2. tags, layer, nature per ontology-conventions.md.
  3. expected_importance (0–10) + importance_rationale (one sentence).
  4. Contradictions — only if a vault node was validated, contradicted, or questioned. One bullet per edge. Omit section if none.
  5. Files touched — flat list of paths, no descriptions. Git has the detail.

Sonnet returns the above only — it never writes the ## Forward block (that block is yours, Step 1).


Step 3 — Assemble the node

File: docs/vault/conversations/YYYY-MM-DD-HHMM-{short-slug}.md

---
tags: [{tag1}, {tag2}]
node_type: {type}
is_session: true
layer: {layer}
nature: {nature}
status: active
created: YYYY-MM-DD
timestamp: YYYY-MM-DDTHH:MM:SS±HH:MM
expires: {created + 60 days}
conversation_id: {id}
decisions_made: true | false
contradictions_found: true | false
specs_updated: [paths or []]
promoted_candidates: [nodes or []]
expected_importance: {0-10}
importance_rationale: "{sentence}"
---

# {Title}

## Summary

{max 10 sentences from Step 1}

## Contradictions

{Omit if none. One bullet per edge: "validates/contradicts/questions {node} — reason."}

## Open questions

{A claim the session did NOT decide — a question or conjecture, never a task. Node-less only: a question naming a vault/spec node is a `questions {node}` Contradictions edge, not an Open question. Omit if nothing is genuinely undecided.}

## Next steps

{A decided action, method known — only labor remains. Imperative, priority-ordered, what+where. A step worth standing tracking is promoted to the backlog and linked via `promoted_candidates`; the line here is then a pointer. Omit if the arc is closed.}

## Recommendation

{Your call: of the items above, the keystone and how the next session should attack it. Recommend a direction, never assert the outcome; name the licensing fact — a validated node, a landed test, a resolved contradiction — or self-label a hunch. References only items above. Omit on routine sessions; never a placeholder.}

## Files touched

{Flat bullet list of paths. No table, no descriptions.}

Forward registers

Apply these while drafting (Step 1) and assembling (Step 3) the three forward sections.

  • Three distinct registers, written by you. Open questions are undecided (resolved, never "done"); Next steps are decided labor; Recommendation ranks across them and asserts nothing new. If a line fits two, apply the discriminating test — can it be done? does it claim a truth? — and move it.
  • Open questions are node-less only. A question naming a vault/spec node is a questions {node} edge → ## Contradictions, not Open questions (else the two double-record). Mechanical test: if the target can be written as an existing file path, it is a Contradictions edge; otherwise an Open question.
  • Next steps defer to the backlog. A step worth standing tracking is promoted to the backlog and linked via promoted_candidates; the Next-steps line is then only a pointer. To promote: append it to docs/vault/backlog/{topic}.md per .claude/skills/custom/backlog-pattern.md, then list that path. Not promoting? Keep it body-only and leave promoted_candidates: [].
  • Recommendation obeys the subset rule. Recommend a direction, never assert the outcome; name the licensing fact (validated node, landed test, resolved contradiction) or self-label a hunch. It references only items in the sections above.
  • Omit, don't pad. No open business → omit the empty sections entirely. Absence is the signal.

Hard cap: The body (below frontmatter) must not exceed 200 lines. If it does, you are writing too much — cut. The three forward sections count inside the 200 and are the lowest-priority — if over cap, trim them first, then omit them.


Step 4 — Review (two Sonnet agents)

Before the node is final, spawn two Agents (model: sonnet) in parallel, each given the assembled node + the list of files touched. They review independently:

  1. Classification & frontmatter — node_type, tags, layer, nature, importance, and any edges match ontology-conventions.md; frontmatter is well-formed; the body is within the 200-line cap.
  2. Body discipline — the three forward registers obey the discriminating test and subset rule; Open questions are node-less; Next steps defer to the backlog; Recommendation references only items above and names a license or self-labels a hunch; no narration.

Each returns PASS or a list of concrete problems. If either returns problems, send the node back to the writing agent (the one that wrote it, Steps 1/3) to fix, then re-review. Only a clean PASS from both finalizes the node.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/close-session-and-create-vault-node-mrx3xzsw/download' --output '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md.part' && mv '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md.part' '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md' && test -s '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/close-session' && cp -R '.skill-downloads/close-session-and-create-vault-node-mrx3xzsw' '.claude/skills/close-session'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/close-session-and-create-vault-node-mrx3xzsw'

openskills read 'close-session-and-create-vault-node-mrx3xzsw'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/close-session-and-create-vault-node-mrx3xzsw/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills