# Obsidian Memory Capture

> Capture Codex assistant answers from session JSONL into Obsidian raw inbox notes for manager distillation. Use when maintaining long-term memory artifacts in `00-Inbox` and append only new, unlogged answers.

- **Type:** Skill
- **Install:** `agentstack add skill-mbtz-agent-skills-obsidian-memory-capture`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mbtz](https://agentstack.voostack.com/s/mbtz)
- **Installs:** 0
- **Category:** [Productivity](https://agentstack.voostack.com/c/productivity)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [mbtz](https://github.com/mbtz)
- **Source:** https://github.com/mbtz/agent-skills/tree/main/skills/knowledge/obsidian-memory-capture

## Install

```sh
agentstack add skill-mbtz-agent-skills-obsidian-memory-capture
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Obsidian Memory Capture

Use this skill to ingest Codex session outputs into raw inbox notes with deduplicated, append-only capture.

## Bundle layout

- Script: `scripts/capture_session_answers.py`
- Config: `scripts/config.json`
- Install wizard: `INSTALL_WIZARD.json`
- Hook installer: `scripts/install_post_operation_hook.py`
- Hook templates: `scripts/hooks/post_operation_obsidian_memory.{sh,py}`

When installed via `askill`, the installer prompts for machine-specific paths and writes `scripts/config.json`. It also offers an opt-in action to install and enable the Codex post-operation hook locally (`~/.codex/hooks` + `~/.codex/config.toml`). You can still edit any file manually later.

## Standard usage

From this skill directory:

```bash
python3 scripts/capture_session_answers.py
```

Optional explicit session:

```bash
python3 scripts/capture_session_answers.py --session-id "$CODEX_THREAD_ID"
```

Dry run preview:

```bash
python3 scripts/capture_session_answers.py --dry-run
```

## Post-Operation Hook (recommended)

If you opt in during `askill` installation, hook files and config are installed automatically.
Manual setup is still supported. Add to `~/.codex/config.toml`:

```toml
notify = ["~/.codex/hooks/post_operation_obsidian_memory.sh"]
notifications = ["agent-turn-complete"]
```

Hook scripts:

- `~/.codex/hooks/post_operation_obsidian_memory.sh`
- `~/.codex/hooks/post_operation_obsidian_memory.py`

## Rules

- `00-Inbox` is raw capture only; do not normalize here.
- Default project slug is `obsidian-memory`.
- The script ingests assistant messages from Codex session JSONL and appends only unseen entries.
- The script must be called at the end of each answered turn when this memory workflow is active.
- In interactive use, prefer the post-operation hook so capture happens automatically after each answer.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mbtz](https://github.com/mbtz)
- **Source:** [mbtz/agent-skills](https://github.com/mbtz/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mbtz-agent-skills-obsidian-memory-capture
- Seller: https://agentstack.voostack.com/s/mbtz
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
