Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
npx skills add hugh-zhan9/agent-skills --skill "session-exporter"
Install specific skill from multi-skill repository
# Description
Export the full assistant-user conversation to ./docs/session (relative to current working directory) as markdown after any user request to save or export chat history; requires a session id.
# SKILL.md
name: session-exporter
description: Export the full assistant-user conversation to ./docs/session (relative to current working directory) as markdown after any user request to save or export chat history; requires a session id.
Session Exporter
When to use
Use this skill whenever the user asks to export/save our conversation or chat history.
If the user does not provide a session id, ask them to get it from /status and provide it.
Output requirements
- Save under
./docs/session/relative to the current working directory (create the folder if missing). - Format as markdown with the exact pattern:
```markdownuser message
assistant message
user message
assistant message
```
- File name: generate a short, descriptive kebab-case name based on your summary of the session.
Workflow
- If session id is missing, ask the user to provide it (they can get it via
/status). - Summarize the session in 4β8 words and create a kebab-case filename (e.g.
proxy-setup-and-zsh-fixes.md). - Ensure
./docs/session/exists under the current working directory. - Export the session using
scripts/export_session.pywith--session-idand--output.
Script usage
python3 scripts/export_session.py --session-id <id> --output <output_path>
The script finds the matching session JSONL under ~/.codex/sessions, formats it, and writes markdown to the given path.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.