cortex-automate
Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me…
Author first-class wiki pages (ADRs, specs, file docs, notes) that live alongside Cortex memory. Use when the user says 'this is an ADR', 'document this decision', 'write an ADR', 'add a spec', 'spec this out', 'document this file', 'add a note about', 'link these pages',
Claude Code
$ npx -y skills add cdeust/Cortex --skill cortex-wiki-author --agent claude-code
Codex
$ npx skills add cdeust/Cortex --skill cortex-wiki-author -a codex -y
Cursor
$ npx skills add cdeust/Cortex --skill cortex-wiki-author -a cursor -y
Gemini CLI
$ npx skills add cdeust/Cortex --skill cortex-wiki-author -a gemini-cli -y
GitHub Copilot
$ npx skills add cdeust/Cortex --skill cortex-wiki-author -a github-copilot -y
OpenCode
$ npx skills add cdeust/Cortex --skill cortex-wiki-author -a opencode -y
Windsurf
$ npx skills add cdeust/Cortex --skill cortex-wiki-author -a windsurf -y
name: cortex-wiki-author description: "Author first-class wiki pages (ADRs, specs, file docs, notes) that live alongside Cortex memory. Use when the user says 'this is an ADR', 'document this decision', 'write an ADR', 'add a spec', 'spec this out', 'document this file', 'add a note about', 'link these pages', 'bookmark this as a spec', or when finalizing a design decision that should persist as a human-readable document."
adr, spec, decision, design doc, rfc, file doc, notes, wiki, documentation, link pages, bidirectional link, supersedes, implements, depends on
Cortex's wiki is a Markdown authoring surface for the long-form artifacts that don't fit the thermodynamic memory model: architecture decision records, specs, per-file documentation, and free-form notes. Pages live under `~/.claude/methodology/wiki/` and are **never pruned** — they are first-class authored content, not derived views. Every write also registers a protected pointer memory in PostgreSQL so `recall` surfaces wiki pages alongside regular memories.
**Use this skill when:** the user is making a decision that should persist, finalizing a spec, documenting a file's purpose, or asking for two wiki pages to be linked.
**Do NOT use for:** ephemeral facts (use `remember`), domain profiles (use `query_methodology`), or regenerating documentation from memory (the wiki is authored, not projected).
cortex:wiki_adr({
"title": "Use pgvector for retrieval",
"context": "We need a searchable memory store with hybrid ranking.",
"decision": "Adopt PostgreSQL + pgvector + pg_trgm as the single backend.",
"consequences": "No SQLite fallback. Operator must provision Postgres 15+.",
"status": "accepted",
"tags": ["storage", "retrieval"]
})Returns `{ path, number, title, status, ... }`. ADR numbers auto-increment.
cortex:wiki_write({
"path": "specs/wiki-authoring.md",
"content": "# Wiki authoring\n\n## Summary\n\nClaude authors ADRs and specs during sessions..."
})Pass the final markdown you want to land. Use `"mode": "append"` to add to an existing page, `"replace"` to overwrite.
cortex:wiki_write({
"path": "files/mcp_server-handlers-wiki_write.md",
"content": "# `mcp_server/handlers/wiki_write.py`\n\n## Purpose\n\nComposition root for the wiki authoring tool..."
})cortex:wiki_link({
"from_path": "adr/0001-use-pgvector-for-retrieval.md",
"to_path": "specs/retrieval-pipeline.md",
"relation": "implements"
})Adds the forward relation to `from_path` and the inverse (`implemented_by`) to `to_path`. Idempotent. Known relations: `supersedes`/`superseded_by`, `implements`/`implemented_by`, `depends_on`/`depended_on_by`, `derived_from`/`derives`, `see_also`.
cortex:wiki_read({ "path": "adr/0001-use-pgvector-for-retrieval.md" })cortex:wiki_list({}) // all kinds
cortex:wiki_list({ "kind": "adr" }) // just ADRscortex:wiki_reindex({})Writes `.generated/INDEX.md`. This is the only file ever auto-regenerated — authored pages are untouched.
~/.claude/methodology/wiki/ adr/NNNN-<slug>.md # numbered decision records specs/<slug>.md # feature specs, PRDs, design docs files/<slug>.md # per-source-file documentation notes/<slug>.md # free-form notes and investigations .generated/INDEX.md # auto-generated table of contents
Cross-platform persistent memory MCP for Codex, Gemini CLI, Claude Code, and other local MCP hosts. 36 cited neuroscience mechanisms, local-first SQLite/PostgreSQL, hybrid retrieval, decay-based consolidation, and reproducible benchmarks. Claude adds optional automatic lifecycle hooks.
Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me…
Run memory maintenance — decay old memories, compress stale content, consolidate episodic memories into semantic knowledge, and…
Debug and fix memory system issues — validate memories, rate quality, manage protection, forget bad memories, and restore from…
Explore the memory system's state, find gaps in knowledge, assess coverage, and get diagnostic information. Use when the user…
Import memories from other AI memory systems into Cortex. Supports claude-mem (SQLite), Claude Desktop sessions, ChatGPT web…
Navigate the knowledge graph — trace entity relationships, explore causal chains, drill into memory clusters, and traverse…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.