llm-wiki-newsroom: Command for Claude Code

.claude/commands/wiki-export.md

wiki-export is a command for Claude Code from alfadur7/llm-wiki-newsroom. It costs 0 tokens per session (1,358 once invoked), scanned A, original, MIT.

A command that exports a wiki into merged files for use as Claude.ai project reference material. A wiki is a collection of linked pages, and the export keeps selected summaries and indexes in a compact form.

In plain words
What is it for?
Use it to run the wiki export, create merged overview, contradiction, timeline, synthesis, and trail files, and prepare the export folder for an approved commit and push.
Why use it?
It avoids loading every full page into the project context, which can exceed the amount of text Claude can handle at once. The detailed pages remain available through the wiki’s graph data.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is alfadur7/llm-wiki-newsroom's own configuration. It tells Claude Code how to work on llm-wiki-newsroom itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-wiki-newsroom configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tools/export.py.

Reuse

Borrowing it

Nothing to install: this file belongs to alfadur7/llm-wiki-newsroom. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alfadur7/llm-wiki-newsroom/main/.claude/commands/wiki-export.md
Clone the repo
git clone --depth 1 https://github.com/alfadur7/llm-wiki-newsroom

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-export

README.md
[![agentmods](https://agentmods.dev/badge/commands/alfadur7/llm-wiki-newsroom/wiki-export/github.svg)](https://agentmods.dev/commands/alfadur7/llm-wiki-newsroom/wiki-export)
Your own site
<a href="https://agentmods.dev/commands/alfadur7/llm-wiki-newsroom/wiki-export"><img src="https://agentmods.dev/badge/commands/alfadur7/llm-wiki-newsroom/wiki-export/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-export

Your own site · 80×15
<a href="https://agentmods.dev/commands/alfadur7/llm-wiki-newsroom/wiki-export"><img src="https://agentmods.dev/badge/commands/alfadur7/llm-wiki-newsroom/wiki-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01358
Opus 5.5 $0.00000 $0.00543
Sonnet 5.5 $0.00000 $0.00272
Haiku 4.5 $0.00000 $0.00136

Measured 22d ago against content hash 8e2c286f5821, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/wiki-export.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Export wiki to merged files for Claude.ai Project Knowledge.

Usage: /wiki-export

Traversal Pattern

Outside the matrix — Meta layer (deterministic). The Editor-in-Chief calls tools/export.py.

Cycle Owner
Trigger Editor-in-Chief
Export tools/export.py (deterministic)
Commit·Push Editor-in-Chief → explicit approval from the wiki operator (CLAUDE.md § Human Reviewer Gate, external commit/push)

Output (wiki-export/ Folder)

Root meta copies (1:1 copy)

  • overview.md·contradiction.md·index.md

Sub-folder merges (# All FOLDER (N) header + --- separator) — synthesis layer only

  • all-overviews.md · all-contradictions.md · all-timelines.md · all-syntheses.md · all-trails.md
  • all-entities.md and all-concepts.md are NOT generated (hub bodies = the graph layer). On a full-scale corpus those two files alone (≈1.24M tokens, as measured on the original large corpus) would overwhelm the Claude.ai project context (~200K, fully loaded, not searched) → the chief culprit of context-overflow errors. The full text lives in the graph/_pages.json nodes (#q=), and the directory is held by index.md (one line + deep link per entity·concept). (python tools/export.py prints the live RAG-budget estimate for the current corpus.)

Sources — a one-line index instead of full bodies

  • all-sources-index.md (single file) — one line per source ( `slug` — title (date)), grouped by graph/_clusters.json primary cluster. No summary snippet (slim — the snippet was most of this index's ~118K tokens, the headline is enough, and the full text is one graph deep link away).

Claude.ai project instruction document (README.md)

  • README.md — the complete custom-instruction document: 2-tier structure explanation + file-structure table (derived from ROOT_META + FOLDER_MERGES + index, drift-impossible) + upload budget guide (Core/Optional are auto-filled greedily up to _CONTEXT_LIMIT in _TIER_PRIORITY order and split — as the corpus grows, large synthesis files are auto-demoted to Optional; fixed numbers, drift-impossible) + answer rules + deep-link convention + wiki-structure reference. Paste this entire document into the Claude.ai project instruction field. The per-file handoff block is discarded (the instruction field is the single channel — removing the 11× ~9K-token duplication).

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed 8e2c286f5821
  2. 1mo ago Changed 60ee45e69d2e
  3. 1mo ago First seen · 56 lines · 0 tokens per session scan A e4d9252f7422

Subscribe to this mod's changes

wiki-export is a command published in the GitHub repository alfadur7/llm-wiki-newsroom (173 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,358 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

slm-media

Save pictures and PDFs in SuperLocalMemory and find them again by describing them. Covers when to save a picture or document, remembermedia, rememberdocument, getmedia, mediastatus and mediauploadlink, how recall returns pictures and PDF pages, the limits, what stays private, turning the feature on with slm media (16…

qualixar/superlocalmemory · 101 tokens

output

Generate output artifacts from active wiki content — summaries, reports, study guides, slide outlines, timelines, glossaries, comparisons. Outputs are filed back into the wiki.

nvk/llm-wiki · 33 tokens

slm-mesh

Cross-session peer coordination via the SLM mesh network. Lets multiple AI agent sessions on the same machine, and web apps the owner has allowed (ChatGPT, Claude on the web, Grok Bot, Muse, Composio), discover each other, send messages, wait for replies with meshwait, share lightweight state, and lock files to avoid…

qualixar/superlocalmemory · 150 tokens

slm-bot-memory

Cross-bot memory on a shared computer (Grok Bot, Cursor plugin, any host where several agents share one machine). Explains agentid attribution vs. profile/scope access, how to namespace by agentid + profile + scope, and what must never be written to memory. Read this before the first remember/recall on a new…

qualixar/superlocalmemory · 82 tokens

show

Display a past OCR review session.

spencermarx/open-code-review · 7 tokens

add-source

Guided add of a new source store to sources/supported-stores.json — evaluate, register, refresh, verify catalog impact.

fabioc-aloha/Alex_Skill_Mall · 25 tokens