agent-prompts-warmup
Audit and sync agent instruction files across all coding agent formats. FRE (first-run) checks scaffolding completeness; ongoing…
Periodic maintenance of the Zettelkasten card network.
$ npx -y skills add iamtouchskyer/memex --skill memex-organize --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/memex-organizeContext preview
The summary Claude sees to decide when to auto-load this skill.
Periodic maintenance of the Zettelkasten card network.
name: memex-organize description: Periodic maintenance of the Zettelkasten card network. whenToUse: When the user asks to organize, maintain, or clean up their memory cards. Also when running scheduled maintenance to detect orphans, hubs, contradictions, and rebuild the keyword index.
You are maintaining a Zettelkasten memory system. Your job is to keep the card network healthy.
Three equivalent interfaces — use whichever your environment supports:
| CLI (memex in PATH) | Plugin CLI fallback (Claude Code) | MCP tool (VSCode / Cursor) | |----------------------|-----------------------------------|----------------------------| | `memex search [q]` | `node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js search [q]` | `memex_search` with optional query arg | | `memex read <slug>` | `node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js read <slug>` | `memex_read` with slug arg | | `memex write <slug>` | `node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js write <slug>` | `memex_write` with slug arg and body | | `memex links` | `node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js links` | `memex_links` with no args | | `memex links <slug>` | `node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js links <slug>` | `memex_links` with slug arg | | `memex archive <slug>` | `node ~/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js archive <slug>` | `memex_archive` with slug arg |
**Resolution order:** Try `memex` in PATH first. If not found, define a shell function and use it:
memex() { node $HOME/.claude/plugins/cache/cc-plugins/memex/*/dist/cli.js "$@"; }If both CLI approaches fail, use MCP tools.
The rest of this skill uses `memex` CLI syntax for brevity.
The rest of this skill uses CLI syntax for brevity. Substitute MCP tool calls if CLI is unavailable.
digraph organize {
"Organize report" -> "Detect orphans (in=0)";
"Detect orphans (in=0)" -> "For each orphan: memex read + search related";
"For each orphan: memex read + search related" -> "LLM decides: append links / mark stale / leave alone";
"Organize report" -> "Detect hubs (in >= 10)";
"Detect hubs (in >= 10)" -> "LLM decides: split into smaller cards or leave alone";
"Organize report" -> "Recently modified pairs";
"Recently modified pairs" -> "Genuinely contradicts?" [shape=diamond];
"Genuinely contradicts?" -> "Mark status: conflict, surface to human" [label="yes"];
"Genuinely contradicts?" -> "Evolution?" [label="no"];
"Evolution?" -> "Merge + archive old card" [label="yes"];
"Evolution?" -> "Leave alone" [label="no"];
"Organize report" -> "Resolve existing conflicts";
"Resolve existing conflicts" -> "Ask user which belief wins";
"All checks done" -> "Rebuild keyword index";
}1. Run `memex links` to get global link graph stats 2. **Orphan detection**: For cards with 0 inbound links:
3. **Hub detection**: For cards with >= 10 inbound links:
4. **Contradiction/staleness detection**: The organize report includes recently modified cards paired with their neighbors. For each pair:
5. **Resolve existing conflicts**: Check the "Unresolved Conflicts" section. For each card with `status: conflict`:
6. **Rebuild keyword index** (always, as last step)
The keyword index (`index` card) is a curated concept → card mapping, inspired by Luhmann's Schlagwortregister. It is the primary entry point for the recall skill.
After completing all checks, rebuild the index:
1. `memex search` (no args) to get all card slugs and titles 2. `memex read` each card (or at least new/modified ones) 3. Group cards by concept/topic — use your judgment to create meaningful categories 4. Write the index card:
--- title: Keyword Index created: <original creation date> source: organize --- ## <Concept Category 1> - [[slug-a]] — one-line description - [[slug-b]] — one-line description ## <Concept Category 2> - [[slug-c]] — one-line description
Rules for the index:
Use `memex write index` to save the index.
1. Read last run date: `cat ~/.memex/.last-organize 2>/dev/null` 2. If the file exists, only process cards where frontmatter `modified` >= that date, plus their linked neighbors 3. If the file doesn't exist, this is the first run — process all cards 4. After completing all checks, write today's date: `echo "YYYY-MM-DD" > ~/.memex/.last-organize` (use actual date)
When the
Persistent memory for AI coding agents. Your agent remembers what it learned across sessions.
Audit and sync agent instruction files across all coding agent formats. FRE (first-run) checks scaffolding completeness; ongoing…
A-MEM-inspired agentic memory workflow for structured knowledge capture.
Zettelkasten best practices for building a high-quality knowledge graph.
Load prior knowledge from Zettelkasten memory when the task likely benefits from past context.