wiki-knowledge-compiler: Command for Claude Code

.claude/commands/wiki-insights.md

wiki-insights is a command for Claude Code from bradduy/wiki-knowledge-compiler. It costs 11 tokens per session (985 once invoked), scanned A, original, Apache-2.0.

A command for finding connections, repeated patterns, contradictions, and missing information across a structured personal wiki. A wiki is a linked collection of notes and reference pages.

In plain words
What is it for?
Use it to scan topic, insight, entity, and index pages, then create insight pages about recurring themes, unexpected links, disagreements, or knowledge gaps.
Why use it?
It turns scattered notes into cross-topic findings that may not be visible when reading one page at a time.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

This is bradduy/wiki-knowledge-compiler's own configuration. It tells Claude Code how to work on wiki-knowledge-compiler 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 wiki-knowledge-compiler configures →

Part of the wiki-knowledge-compiler plugin — 7 commands, 4 agents, 1 hook shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to bradduy/wiki-knowledge-compiler. 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/bradduy/wiki-knowledge-compiler/main/.claude/commands/wiki-insights.md
Clone the repo
git clone --depth 1 https://github.com/bradduy/wiki-knowledge-compiler

Made for: Claude Code.

Or install wiki-knowledge-compiler, the plugin that ships this one along with the rest of its 7 commands, 4 agents, 1 hook.

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-insights

README.md
[![agentmods](https://agentmods.dev/badge/commands/bradduy/wiki-knowledge-compiler/wiki-insights.svg)](https://agentmods.dev/commands/bradduy/wiki-knowledge-compiler/wiki-insights)
Your own site
<a href="https://agentmods.dev/commands/bradduy/wiki-knowledge-compiler/wiki-insights"><img src="https://agentmods.dev/badge/commands/bradduy/wiki-knowledge-compiler/wiki-insights.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 985 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.00011 $0.00985
Opus 5 $0.00005 $0.00492
Sonnet 5 $0.00002 $0.00197
Haiku 4.5 $0.00001 $0.00098

Measured 7d ago against content hash da6737895f36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wiki-insights 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 7d 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-insights.md · 128 lines

How it starts

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

Wiki Insights

You are the wiki-synthesizer. Your job is to read across the knowledge base and identify non-obvious connections, patterns, and gaps.

Input

Optional focus: $ARGUMENTS

If no focus is provided, perform a broad scan.

Procedure

Step 1: Read broadly

  1. Read .data/index/master-index.md for an overview.
  2. Read all topic pages in .data/topics/.
  3. Read all existing insight pages in .data/insights/.
  4. Read entity pages in .data/entities/ — walk their relationships to find structural connections.
  5. If a focus area is provided, also read relevant concept and summary pages.

Step 2: Identify cross-cutting patterns

Look for:

  • Recurring themes across different sources that aren't yet captured in a single place
  • Contradictions between sources (explicit disagreements or incompatible assumptions)
  • Knowledge gaps — areas where multiple sources touch on a topic but none covers it fully
  • Unexpected connections between concepts from different domains or sources
  • Emerging patterns — trends visible only when viewing multiple sources together

Step 3: Draft insights

For each insight identified:

  1. Write it using templates/insight.md.
  2. Every claim must cite specific wiki pages.
  3. Rate the insight:
    • confidence: high — directly supported by multiple sources
    • confidence: medium — reasonable inference from available evidence
    • confidence: low — speculative, based on partial evidence
  4. Mark any speculative leaps with [speculative: reason].

Step 4: Check for redundancy

Before writing an insight:

  1. Search existing insights/ for similar content.
  2. If a similar insight exists, update it rather than creating a duplicate.
  3. If the new insight contradicts an existing one, note the contradiction in both.

Step 5: Identify knowledge gaps

Create a section listing:

  • Topics mentioned across multiple sources but with no dedicated concept or topic page
  • Questions raised by the synthesis that the wiki cannot currently answer
  • Areas where adding one more source would significantly improve coverage

Read the full file on GitHub · 128 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. 7d ago First seen · 128 lines · 11 tokens per session scan A da6737895f36

Subscribe to this mod's changes

wiki-insights is a command published in the GitHub repository bradduy/wiki-knowledge-compiler (11 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 985 once invoked, about $0.0001 per session on Opus 5. 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.