init

A command that starts a documentation wiki for an existing application. It detects the project, creates the wiki structure when needed, asks setup questions, and can continue into full documentation generation.

In plain words
What is it for?
It is for creating a wiki directory, onboarding the project, configuring database and ecosystem details, installing hooks, and optionally starting the atlas documentation workflow.
Why use it?
It replaces a manual documentation setup with a guided starting process. It also helps the agent discover the application's language, database, and supporting services.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/narailabs/doc-wiki/init
Clone the repo
git clone --depth 1 https://github.com/narailabs/doc-wiki
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 375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.00375
Opus 5 $0.00005 $0.00187
Sonnet 5 $0.00002 $0.00075
Haiku 4.5 $0.00001 $0.00038

Measured 2d ago against content hash e435cbda0b2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

commands/init.md · 12 lines

What it actually says

Invoke the doc-wiki skill to run the /doc-wiki:init workflow with the user's arguments: $ARGUMENTS

Call Skill(doc-wiki, "init $ARGUMENTS"). The skill orchestrator reads skills/doc-wiki/SKILL.md, locates the ### /doc-wiki:init — Bootstrap a wiki section, and executes the four-phase flow: (1) detect existing state, (2) scaffold the wiki directory if needed, (3) run the onboarding Q&A (language/framework detect, ORM via wiki-orm-agent, DB detection by inspecting local config files such as Docker Compose, .env, and ORM settings — plus optional gather() against the db connector for live schema introspection — followed by ecosystem services Q&A, autonomy choice, and hook install), (4) decide on atlas — if --atlas chain immediately; if --no-atlas stop; otherwise prompt the user.

If $ARGUMENTS is empty, do NOT pre-prompt — invoke the skill anyway. The skill's /doc-wiki:init section infers a default path of docs/<app-name-kebab-case>-wiki/ from the project's marker file (package.json, pyproject.toml, Cargo.toml, go.mod, pom.xml, ...) and asks the user to confirm or override via a single AskUserQuestion prompt. Arg collection lives in the skill so default-inference logic stays co-located with the rest of the orchestrator.

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. 2d ago First seen · 12 lines · 11 tokens per session scan A e435cbda0b2b

Subscribe to this mod's changes

init is a command published in the GitHub repository narailabs/doc-wiki (13 stars, last pushed 2d ago), licensed Apache-2.0. It adds 11 tokens to every session and 375 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.