iamtouchskyer/memex/memex-organize
Claude Code and agent skill by iamtouchskyer/memex
- community
Checking that the SKILL.md file is still in the repository.
Periodic maintenance of the Zettelkasten card network.
Install
npx vskill@latest install iamtouchskyer/memex/memex-organizeSKILL.md
Memory Organize
You are maintaining a Zettelkasten memory system. Your job is to keep the card network healthy.
Tools Available
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:
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.
Process
- Run
memex linksto get global link graph stats - Orphan detection: For cards with 0 inbound links:
memex readthe orphanmemex searchfor potentially related cards- Decide: append a link from a related card to this orphan, or leave alone if truly standalone
- Hub detection: For cards with >= 10 inbound links:
memex readthe hub and its linkers- Decide: is this card too broad? Should it be split into smaller atomic concepts?
- Contradiction/staleness detection: The organize report includes recently modified cards paired with their neighbors. For each pair:
- Read both cards' content (excerpts are in the report,
memex readfor full content if needed) - Determine: do these cards genuinely contradict each other, or is one simply an evolution of the other?
- If evolution (new info supersedes old): merge the cards — append the old card's unique content to the new one, then
memex archivethe old card - If genuine contradiction (two conflicting beliefs, unclear which is correct): mark the newer card with
status: conflictin frontmatter and add a note explaining the contradiction. Do NOT auto-resolve — the human decides which belief wins - If no conflict: leave both cards alone
- Resolve existing conflicts: Check the "Unresolved Conflicts" section. For each card with
status: conflict:
- Surface it to the user: "Card X conflicts with card Y — which perspective should we keep?"
- If the user resolves it, remove
status: conflictfrom frontmatter and merge/archive as directed
- Rebuild keyword index (always, as last step)
Keyword Index Maintenance
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:
memex search(no args) to get all card slugs and titlesmemex readeach card (or at least new/modified ones)- Group cards by concept/topic — use your judgment to create meaningful categories
- Write the index card:
Rules for the index:
- Each card should appear under 1-2 categories (not more)
- Categories should be meaningful concepts, not arbitrary groupings
- Descriptions should be one line, explaining what the card is about (not just the title)
- Archived cards must be removed from the index
- New cards must be added
Use memex write index to save the index.
Incremental Strategy
- Read last run date:
cat ~/.memex/.last-organize 2>/dev/null - If the file exists, only process cards where frontmatter
modified>= that date, plus their linked neighbors - If the file doesn't exist, this is the first run — process all cards
- After completing all checks, write today's date:
echo "YYYY-MM-DD" > ~/.memex/.last-organize(use actual date)
When the organize skill creates new cards (e.g., splitting hubs), use source: organize in the frontmatter.
Operation Rules
- Append only: When adding links to existing cards, append to the end of the body. Never modify existing prose.
- Merge: Read both cards, append source content to target card via
memex write, thenmemex archivethe source. - Archive: Use
memex archive <slug>to move stale cards out of active search. - No raw secrets: Never search for or write actual secrets, credentials, tokens, or exact secret file contents. Use redacted examples and abstract descriptions instead.
- Be conservative: When in doubt, leave cards alone. It's better to under-organize than to break useful connections.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/memex-organize/SKILL.md
Popularity
- Repository stars
- 129
- Repository forks
- 38
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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
[](https://verified-skill.com/skills/iamtouchskyer/memex/memex-organize)