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,327 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/.

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,327 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.01327
Opus 5 $0.00000 $0.00664
Sonnet 5 $0.00000 $0.00265
Haiku 4.5 $0.00000 $0.00133

Measured 12d ago against content hash e4d9252f7422, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 12d 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 (memory git-approval)

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. 12d 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 (85 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,327 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.