Skip to content
Agentmart
Submit a tool

save-session

Triggered when the user types /save or asks to save the session.

Skill by jpmsilva1

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jpmsilva1-save-session

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Triggered when the user types /save or asks to save the session. Generates a session log and saves it to the Obsidian Vault.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/save-session

What's inside

Skill name
save-session
Description
Triggered when the user types /save or asks to save the session. Generates a session log and saves it to the Obsidian Vault.
License
MIT
Instructions
26 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Skill: save-session

Whenever this skill is invoked, the Agent must mandatorily execute the following steps:

**Phase 1: Context Recovery (Token Budget)**
First check whether the session trace file exists at:
`<appDataDir>/brain/<conversation-id>/scratch/session-trace.md`

- **If the file exists and has content:** Use it as the primary timeline source. It contains the notes you took yourself during the session. Do NOT read `transcript.jsonl` -- that is redundant and wastes tokens.
- **If the file does NOT exist or is empty (new session or crash):** Perform emergency recovery:
  - **If you are Antigravity:** Use the `grep_search` tool on `transcript.jsonl` (located at `<appDataDir>/brain/<conversation-id>/.system_generated/logs/`). Search for `"type":"USER_INPUT"` to reconstruct the timeline.
  - **If you are Claude Code:** Scan the logs in `.claude/` or ask the user to run `/compact`.

**Phase 2: Zettelkasten Generation**
Format a `markdown` document with the extracted information:
   - Add YAML frontmatter (`title`, `tags`, `date`).
   - Record what was done in detail, including the observation tags: `#decision`, `#change`, `#bugfix`, `#discovery`, `#feature`, `#file`.
   - Record the decisions made.
   - Record the pending items (next steps).
   - Use `[[wikilinks]]` to connect concepts.
3. Use your file-writing capability to generate a note `YYYY-MM-DD-topic.md` at the exact path: `{{VAULT_PATH}}/logs/`.
4. Update `{{VAULT_PATH}}/wiki/changelog.md` with a `session` entry.
5. Update `{{VAULT_PATH}}/wiki/index.md` if new wiki pages were created during the session.
6. **Delete the trace file** `<appDataDir>/brain/<conversation-id>/scratch/session-trace.md`. The permanent log has been generated; the trace is temporary memory and should now be removed.
7. Confirm to the user that the log was saved to Obsidian.

From jpmsilva1/ai-research-ecosystem, MIT.

More from jpmsilva1/ai-research-ecosystem

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 13, 2026 (2 months ago)
Last release
Aug 14, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jpmsilva1

Cite this page

save-session skill. Agent Mart. https://agentmart.dev/skills/jpmsilva1-save-session (last updated 2026-10-24)