init

init is a command for Claude Code from doneyli/claude-code-plugins. It costs 45 tokens per session (457 once invoked), scanned A, original, MIT.

A command that creates the starting files and folders for an LLM wiki, a knowledge base compiled with a language model. It creates places for original sources, categorized wiki pages, an index, a log, and the rules that pages should follow.

In plain words
What is it for?
Use it to start a new research wiki in an empty directory. Afterward, you can place source files in raw/ and run the wiki's ingestion command to compile them.
Why use it?
It removes the repetitive setup needed before adding research to a wiki. It also checks whether the current directory is safe to initialize before creating the structure.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the llm-wiki plugin — 1 skill, 6 commands, 1 agent, 2 hooks shipped together

Good fit Use it to start a new research wiki in an empty directory. Afterward, you can place source files in raw/ and run the wiki's ingestion command to compile them.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add doneyli/claude-code-plugins
Claude Code
/plugin install llm-wiki

Made for: Claude Code.

Or install llm-wiki, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 1 agent, 2 hooks.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/doneyli/claude-code-plugins/init/github.svg)](https://agentmods.dev/commands/doneyli/claude-code-plugins/init)
Your own site
<a href="https://agentmods.dev/commands/doneyli/claude-code-plugins/init"><img src="https://agentmods.dev/badge/commands/doneyli/claude-code-plugins/init/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 init

Your own site · 80×15
<a href="https://agentmods.dev/commands/doneyli/claude-code-plugins/init"><img src="https://agentmods.dev/badge/commands/doneyli/claude-code-plugins/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 457 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.00045 $0.00457
Opus 5.5 $0.00018 $0.00183
Sonnet 5.5 $0.00009 $0.00091
Haiku 4.5 $0.00005 $0.00046

Measured 1mo ago against content hash 951e41b6ce6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

init 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 1mo 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.

llm-wiki/commands/init.md · 58 lines

What it actually says

Scaffold a Karpathy-style LLM wiki in the current working directory.

Steps:

  1. Check that the current directory is either empty or contains only a .git/. If it has existing content beyond that, warn the user and ask before proceeding.

  2. Create the directory structure:

    • raw/
    • wiki/
    • wiki/entities/
    • wiki/concepts/
    • wiki/themes/
    • wiki/comparisons/
    • wiki/synthesis/
  3. Write wiki/index.md with empty category sections:

    # Wiki Index
    
    ## Entities
    _No pages yet._
    
    ## Concepts
    _No pages yet._
    
    ## Themes
    _No pages yet._
    
    ## Comparisons
    _No pages yet._
    
    ## Synthesis
    _No pages yet._
    
  4. Write wiki/log.md:

    # Wiki Log
    
    Append-only. Format: `## [YYYY-MM-DD] <op> | <title>` where op ∈ {ingest, query, lint}.
    
  5. Copy the schema template from ${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.md to the current directory. If an argument was given ($1), substitute the {{DOMAIN_TITLE}} placeholder with it. Otherwise use "Research".

  6. Create a .gitignore that excludes raw/_originals/.

  7. Print a summary:

    • "Wiki initialized at $(pwd)"
    • "Next: drop a markdown file into raw/ then run /llm-wiki:ingest "
    • "Or: /llm-wiki:ingest --all to compile every file in raw/"

If CLAUDE.md already exists in the current directory, do NOT overwrite it. Report "Wiki already initialized here" and exit.

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. 1mo ago First seen · 58 lines · 45 tokens per session scan A 951e41b6ce6b

Subscribe to this mod's changes

init is a command published in the GitHub repository doneyli/claude-code-plugins (4 stars, last pushed 6mo ago), licensed MIT. It adds 45 tokens to every session and 457 once invoked, about $0.0002 per session on Opus 5.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-31.