/memory:wikifrom memory
Operates an LLM Wiki: ingests sources (URLs or files), queries the knowledge base, and lints for contradictions, orphans, or stale claims. Requires `/wiki-init` to have run.
Ships in memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Operate the LLM Wiki — ingest a source, query for answers, or lint for contradictions — reading .red/agents/wiki.md first (source of truth for this repo's conventions).
.red/wiki/ exists..red/agents/wiki.md exists..red/wiki/ is in .gitignore (verify before any operation that writes).If any of those fails, stop and tell the user to run /wiki-init.
Map the opening verb to an operation; if ambiguous, ask which one:
WebFetch the content, slugify the title (kebab-case), save to .red/wiki/raw/<slug>.md with a minimal YAML header (url:, fetched:, title:). Linked images: download to .red/wiki/raw/assets/<slug>-<n>.<ext> and rewrite the refs.pdftotext <pdf> .red/wiki/raw/<slug>.txt (or similar), then normalise to md at raw/<slug>.md. Keep the original PDF alongside.raw/<slug>.md if it isn't already there.Read the source. Before writing pages, discuss the 3–5 main takeaways with the user. Ask about emphasis: "highlight X or Y more?".
Use the templates in ../wiki-init/:
pages/<slug>.md, type: source. Bullets, key claims, quotes, "touches" filled in at the end.sources:, revise Overview, update updated:, add new facts.## Contradictions section on the affected page citing both sides.Add or update entries in the right sections. Alphabetical order within each section. Each entry: [Title](./pages/slug.md) — one-liner. N sources.
Append to .red/wiki/log.md:
## [YYYY-MM-DD] ingest | <Source title>
- source: raw/<slug>.md
- touched: pages/a.md, pages/b.md, pages/c.md
- notes: <one line on the most important change>
If .red/wiki/C4.md exists, check whether the new source introduces a service, integration, or dependency not yet on the diagram. If so, update C4.md and bump its updated: field. If the project doesn't yet have a C4 but the new source describes enough architectural surface to warrant one (≥3 services or non-trivial integration), propose creating it. When C4 work triggers, read the C4 reference for the model structure and conventions.
Before finishing: confirm .red/wiki/ is still in .gitignore. If it was removed, alert and re-add.
Read .red/wiki/index.md. Identify candidate pages by title and one-liner. If nothing matches, fall back to grep -ri "<term>" .red/wiki/pages/ or ripgrep.
Read the candidate pages. Follow cross-links if a page cites another relevant one.
Pick the most useful output format:
Other formats (slides, charts) — only on explicit request. The agent can improvise but it's not the default.
Every answer cites the pages (and via them the sources) used. Format: (via [page-x](./pages/page-x.md)).
If the answer has durable value (a fresh analysis, a non-obvious comparison, a timeline), ask: "file as a synthesis page?" If yes:
pages/<slug>.md with type: synthesis and the appropriate template.index.md.## [date] query | "<question>" → answer-filed: pages/<slug>.md.If it isn't worth a page, just append to the log: ## [date] query | "<question>".
Runs checks against .red/wiki/. Does not auto-fix — reports and asks what to do.
Contradictions — scan pages; flag pairs that assert conflicting things. Look for: negations ("X is Y" in one, "X is not Y" in another); different numbers for the same attribute; conflicting dates.
Stale — pages whose updated: is >90 days old and whose referenced sources: have created: more recent than the page's updated: (or whose sources have been superseded by newer sources on the same topic via tags).
Orphans — pages with no inbound link (grep -l "./<slug>.md" .red/wiki/pages/ returns empty).
Stubs — pages with < 10 lines of content (after the frontmatter).
Missing concepts — terms repeated >= 5x across pages but lacking a page of their own (heuristic: lowercase + frequent bigrams/trigrams).
Gaps — questions in "Open questions" unresolved for >60 days.
C4 staleness — if .red/wiki/C4.md exists, flag when its updated: is older than the most recent created: of any source page whose touches: list names a container or component appearing in the diagram. Suggested action: regenerate the affected level — when C4 work triggers, read the C4 reference.
Markdown report grouped by the checks above. For each item:
Append to log: ## [date] lint — orphans: N, stale: N, contradictions: N, stubs: N, gaps: N.
.red/agents/wiki.md first.raw/ — it is immutable.[[...]] — use standard markdown [...](./...)..red/wiki/ — verify .gitignore before any git add.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reddb-io/red-skills --plugin memory14 skills in this plugin
/context-statusReport the project context stack posture without mutating anything. Use when checking whether agent rules, domain docs, ADRs, Memory graph/telemetry, and LLM Wiki are ready before a large task or self-improvement loop./doctorInspect and maintain the memory graph — list stale nodes (long-unaccessed and never recalled) and, only after explicit confirmation, prune them. Use when the user says "memory doctor", "clean up memory", "what's stale in memory", "prune old memory", or wants a health check of the graph. Graph mode only./exportExport the memory graph to a self-contained, navigable bundle — graph.json (data), graph.html (an interactive node-link view that opens straight from disk), and audit.md (a health summary). Use when the user says "export memory", "visualize the memory graph", "show me the graph", "dump the memory graph", or wants to browse what's stored. Graph mode only.Other plugins' skills for the same job