From cortex
Creates and links long-form wiki pages including ADRs, specs, and file docs alongside Cortex memory. Auto-increments ADR numbers, supports bidirectional linking between pages.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cortex:cortex-wiki-authorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
adr, spec, decision, design doc, rfc, file doc, notes, wiki, documentation, link pages, bidirectional link, supersedes, implements, depends on
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 ADRs
cortex: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
wiki_link(new, old, "supersedes").## Related section is the source of truth for wiki-internal links — not a sidecar index.wiki_write, the page content (first 500 chars) is indexed in PostgreSQL as a protected memory tagged wiki, so recall returns it alongside regular memories.wiki_link always updates both pages. If you move or rename a file, re-run wiki_link so the related sections stay consistent.npx claudepluginhub cdeust/cortex --plugin cortexMaintains persistent wiki knowledge base with Markdown formats for entities, concepts, decisions, syntheses, index, and logs. Manages ingest, query, and lint workflows in /pith wiki mode.
Build, maintain, and query a personal LLM-managed markdown wiki where the LLM owns all writing, cross-referencing, and bookkeeping while the user curates sources. Includes idempotent scripts for ingest, query, and lint.
Queries personal wiki built with wiki-init/wiki-ingest: reads index/pages, synthesizes cited answers for facts/comparisons/how-tos, flags gaps, offers to save as new pages.