aemerson-commits/shareable-skills/session-notes

Claude Code and agent skill by aemerson-commits/shareable-skills

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

End-of-session notes. Two modes — cheap `checkpoint`, the default and the only mode Claude may pick; the full close-out ONLY on explicit request (the clock is not a signal). Triggers: 'close out', 'wrap up', 'done for the day', 'checkpoint'. NOT for reading past notes.

Install

npx vskill@latest install aemerson-commits/shareable-skills/session-notes

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as aemerson-commits/shareable-skills/session-notes.

Session Notes — Obsidian Vault Update

Vault files

The vault is a folder of Markdown files. Read and write it directly: the Read and Edit tools on {{vault_path}}/<path>, or a plain file append. Do not route a checkpoint through the Obsidian CLI. Driving the desktop binary from a shell is the unreliable path: an append can hang past two minutes, launch the app instead of acting, or stall on the binary's update check, and each of those costs a checkpoint.

Resolve {{vault_path}} at runtime (an env var, else the per-user default) and never hardcode a username.

⚠️ `$USER` is EMPTY in the Bash tool on Windows — $USERNAME carries it. A bare $USER silently builds /c/Users//..., which fails a [ -f ] test and reads as "not installed" rather than as a broken path. Always ${USERNAME:-$USER}.

The CLI recipes that remain are the full close-out's (references/close-out-artifacts.md), where vault-wide tasks and search queries have no file-read equivalent. If one of its read or append recipes hangs, the direct file read or append is the fallback. CLI output goes to stderr, so append 2>&1 and filter the startup noise:

bash
OBS="/c/Program Files/Obsidian/Obsidian.exe"
[ ! -f "$OBS" ] && OBS="/c/Users/${USERNAME:-$USER}/AppData/Local/Programs/obsidian/Obsidian.exe"
"$OBS" <command> [args] 2>&1 | grep -v "Loading\|out of date"
DirectoryContent
{{project}}/Sessions/Daily session notes
{{project}}/{ViewName}/View/tab documentation
{{project}}/Learnings/Debugging patterns, API gotchas, architecture decisions
{{project}}/Roadmap.mdBacklog and completed items

Pick the mode first — this is the whole cost story

If this skill runs several times a day, most of those runs are mid-day checkpoints paying for a full close-out they don't need — every Roadmap edit, every project note, the gotcha routing, the help-content pass. That's the cost, and it's nearly all waste unless the day is actually ending.

CheckpointFull close-out
WhenDefault. Any request that isn't an explicit ask for a full close-out.Only when the user says so in words.
DoesAppends to today's note. Nothing else.Everything below.
CostsOne append.The full checklist.
Say"Checkpointed — full close-out on request."Full report.

Checkpoint is the default, and the only mode you may pick on your own. Run the full close-out only when the user explicitly asks for one — "full close-out", "close out the day", "run the whole checklist." Nothing else licenses it:

  • A bare "session notes" / "wrap up" / "checkpoint" → checkpoint.
  • A second or third "session notes" the same day → still checkpoint. Repetition is not

escalation.

  • The clock, the hour, or a sense the day looks over → not a signal. You cannot see when

the user is actually done.

  • A feature shipping today does not upgrade the mode. It means the day still owes one full

close-out when the user calls for it — see § Relationship to the Feature-Ship Checklist. Don't pre-emptively spend the checklist on the user's behalf.

Don't ask which mode to use — just checkpoint, and say the full close-out is available on request. Treating ambiguity as a reason to ask is itself the failure mode: it turns an unambiguous cheap default into a prompt, and a repeated "session notes" ends up misread as an escalation it never was.


Mode A — Checkpoint

Append one compact block to today's session note. Do not touch Roadmap, project frontmatter, memory, help content, or the skill tracker.

Write the block to a scratch file first:

markdown
### {HH:MM} — {topic} (session {id8}, {host})
-{what landed}
-Left off: {state}

Then append it with a direct file write and confirm it landed:

bash
NOTE="{{vault_path}}/{{project}}/Sessions/$(date +%F).md"
[ -f "$NOTE" ] || printf '# %s\n' "$(date +%F)" > "$NOTE" # start the day's note when there is none
before=$(grep -c "session {id8}" "$NOTE")
{ printf '\n'; cat "<scratch>/checkpoint.md"; } >> "$NOTE"
after=$(grep -c "session {id8}" "$NOTE"); [ "$after" -gt "$before" ] && echo "confirmed" || echo "NOT CONFIRMED"

If several sessions can write the same note, put the append in a small helper that holds a per-note lockfile and re-reads the note afterwards, so two appends cannot interleave and an unconfirmed write says so through its exit code.

When the vault is a git clone, the helper should also pull before it writes, then commit the day note alone and push it. Do not leave that to an auto-commit plugin. If the plugin stops committing on one machine, nobody notices: that machine's close-out never sees the other machines' checkpoints, and its stale copy of the note then blocks every later pull. Give "written and confirmed here, but NOT pushed" its own exit code (no connection, rebase in progress, push refused). Report it in the checkpoint line, and re-run later: the helper writes nothing twice and only retries the push.

Work from an earlier day (a session that sat idle overnight): the block belongs in the note for the day the work happened, not today's. Point NOTE at that date, then check that the day's note holds your block exactly once.

Write any Learnings bullets in the routed shape now (see § Session Learning Protocol) so an end-of-day ingest — yours or a script's — can pick them up. That's what makes checkpointing safe to keep cheap: the raw material for the full close-out is already captured as you go.

End each block's heading with (session {id8}, {host}): the first 8 characters of the session id and the output of hostname. When several machines write one note, an hourly auto-backup commit sweeps every session's lines into one, and neither fact is recoverable from the log afterward. The full close-out's ## Session N block carries the same suffix.

An auto-sync or backup commit can delete the note you are writing (a concurrent clone with a stale view of the file gets committed over the current one). Treat an append as unconfirmed until you have re-read the note and seen your block. If it vanished, git log --oneline --diff-filter=D -- "<note path>" names the deleting commit and git show <sha>^:"<note path>" recovers the pre-deletion text. Re-append from that, never from memory; a retyped note is stale-memory carry-forward waiting to happen.

Then stop. Report one line. This is a complete, correct outcome — not a partial close-out.


Mode B — Full close-out

Before any shared-doc edit: scan for conflict markers

A memory index, a working-state note, session notes, or a roadmap can be written by several sessions or processes at once — including an auto-sync plugin, if your vault uses one. A file can be sitting in an unresolved merge, and an edit against it either fails to match the expected text or writes around the markers and silently corrupts the file.

bash
grep -cE '^(<{7}|={7}|>{7})( |$)' "$FILE" # 0 = safe to edit

The pattern is anchored on purpose: a marker only counts at the start of a line. Session notes quote the marker in prose, and an unanchored grep -c '<<<<<<<' counts those quotes as conflicts.

Non-zero: resolve before editing — don't edit around it.

bash
git -C "$(dirname "$FILE")" diff :2:"$FILE" :3:"$FILE" # ours vs theirs
# pick a side or merge by hand, then: git add "$FILE"

If the merge/rebase that produced the markers is still in progress and the content is recoverable from the remote, aborting and resetting to the remote's copy is often the faster exit than resolving by hand. A pull-rebase-then-append helper, if you have one, prevents new conflicts — it doesn't detect existing ones. Run the grep even when using it.

Step 0 — Final state first (blocking prerequisite)

Notes must reflect final state, not in-progress state. Before anything below:

  1. Review & suggest improvements in structure/architecture, documentation, security,

skills & methods, efficiency/performance, and future ideas from the session's work.

  1. Present suggestions for approval; implement what's approved.
  2. Git commit and push.
  3. Deploy if needed.
  4. Verify the deploy — curl live endpoints, check CI, confirm a healthy status. Only report

"deployed and verified" once you've actually checked.

  1. THEN write the notes below — they must describe what actually landed, not what you

intend to land.

This skill IS the Feature-Ship Checklist. The Roadmap, help-content, and memory artifacts below are the same items the checklist mandates land in the same session as the feature commit, alongside the session note itself. If a feature shipped today, all of them complete before the session closes — skipping any creates the silent-drift pattern the checklist exists to prevent.

Agent Teams Architecture

When running a full close-out, dispatch these agent teams simultaneously after Step 0 completes (all model: "sonnet" — doc-writing agents don't need a stronger model):

Team A — Vault Updates (3 parallel agents):

  • Agent: Session Note Writer — Create/update today's session note. Needs: session

summary, commits, files changed.

  • Agent: Roadmap + Learnings Updater — Read session notes from today, then update the

Roadmap: mark completed items, update active project statuses, add new completed milestone sections with dates. Also update Learnings/ if new gotchas were discovered.

  • Agent: Help Content Updater — Update in-app help content if ANY user-facing feature was

added/changed this session. ALWAYS run this agent — it determines internally whether changes are needed.

Team B — Memory & Tracking (2 parallel agents):

  • Agent: Memory Updater — Update memory/MEMORY.md and topic-specific memory files.

Needs: key decisions, state changes, new patterns.

  • Agent: Skill Tracker — Update the skill-usage tracker with this session's skill

invocations. Needs: list of skills used + outcomes.

MANDATORY agents: Session Note Writer, Roadmap Updater, Memory Updater, and Help Content Updater MUST always be dispatched. Skill Tracker is optional if no skills were invoked.

If the Agent tool is unavailable, run every step INLINE in the main loop — this is NOT a blocked close-out. Some sessions run under a configuration that forbids subagents unless the user explicitly asks for them. When that is in force, dispatching is not an option and the close-out must still happen: work the artifact steps yourself, in order, in the main loop. The mandatory list above is a list of OUTPUTS, not a list of subagents — session note, Roadmap, project status, memory, help content. What must not be skipped is the artifact; the dispatch mechanism is an implementation detail.

Two practical notes when running inline:

  • It is usually cheaper, not a degradation — the main loop already holds the session

context each agent would have to be re-fed. Keep the same token discipline the agent prompts impose: targeted greps and line-ranged reads, never a whole-file read of a 1000+ line document.

  • Log it as a success with a note that the harness blocked agents, not as "partial".

Recording it as partial run after run is what makes an environment limitation look like a recurring skill failure.

Incremental-append preference (token economy): if the session already appended milestones to today's note as work landed (the cheap pattern — a one-line append per shipped item during the day, i.e. Mode A run repeatedly through the day), close-out is a TRIM-and-organize of that note, not a from-scratch reconstruction. Tell agents what already exists so they extend rather than regenerate.

Full artifact detail — session note template, Roadmap, project frontmatter, help content, memory, skill tracker → read references/close-out-artifacts.md. Load it only when actually running Mode B; a checkpoint never needs it.


This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aemerson-commits/shareable-skills/session-notes/badge)](https://verified-skill.com/skills/aemerson-commits/shareable-skills/session-notes)

Something wrong with this skill or its page? Tell us.