docs-init

docs-init is a command for coding agents from RaNDoM6913/claude-code-superkit. It costs 13 tokens per session (762 once invoked), scanned A, original, MIT.

A command that starts a project's documentation setup, preferably by handing the work to the intelligent Superkit setup command. If that command is unavailable, it creates a basic documentation structure.

In plain words
What is it for?
Use it to initialize architecture documentation, codebase trees, and the project's CLAUDE.md instructions.
Why use it?
It gives a project a documented starting point while avoiding replacement of an existing root CLAUDE.md file.

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/random6913/claude-code-superkit/docs-init
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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 docs-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/random6913/claude-code-superkit/docs-init.svg)](https://agentmods.dev/commands/random6913/claude-code-superkit/docs-init)
Your own site
<a href="https://agentmods.dev/commands/random6913/claude-code-superkit/docs-init"><img src="https://agentmods.dev/badge/commands/random6913/claude-code-superkit/docs-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00013 $0.00762
Opus 5 $0.00006 $0.00381
Sonnet 5 $0.00003 $0.00152
Haiku 4.5 $0.00001 $0.00076

Measured today against content hash 708df2f31f69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-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 today.

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.

packages/core/commands/docs-init.md · 76 lines

How it starts

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

Initialize Project Documentation

Role

Set up project documentation. Prefer /superkit-init (intelligent scan + auto-populated docs). Run the manual fallback ONLY when that command is not installed.

Hard Rules

  • If /superkit-init exists, redirect to it and stop — never also run the fallback.
  • Never overwrite an existing root CLAUDE.md; create it only when absent.
  • Never reference kit-source paths (packages/...); they do not exist in installed projects. Use the inline skeleton below.
  • Fallback touches only: docs/architecture/, docs/trees/, and CLAUDE.md (when absent).
  • Forward the caller's arguments to /superkit-init unchanged.

Steps

  1. Detect the preferred command. Glob .claude/commands/superkit-init.md.

    • Found → do Step 2 (redirect).
    • Not found → do Step 3 (fallback).
    • Done-when: you have chosen redirect or fallback.
  2. Redirect (preferred). Invoke /superkit-init, forwarding the caller's arguments verbatim: $ARGUMENTS Then stop — do NOT run Step 3.

    • Done-when: /superkit-init finished and its report is shown.
  3. Fallback scaffold (only when Step 1 found no superkit-init.md):

    1. mkdir -p docs/architecture docs/trees
    2. Dispatch the tree-generator agent to populate docs/trees/. If the agent is unavailable, note it and skip.
    3. Read the project root: if CLAUDE.md already exists, leave it unchanged. If absent, Write it from the skeleton below, keeping the TODO: markers for the user to fill in.
    • Done-when: both dirs exist, trees generated (or skipped with a note), and a root CLAUDE.md exists.

Inline CLAUDE.md skeleton (used by fallback Step 3, only when no root CLAUDE.md exists)

# YOUR_PROJECT_NAME
> TODO: one-line project description.

## Tech Stack
TODO: backend / frontend / infra.

## Structure
TODO: top-level directory layout.

## Key Commands
TODO: build / test / lint / migrate / dev-server commands.

## Conventions
TODO: formatting, error handling, commit format, API style, env vars.

## Architecture Reference
| Doc | Description |
|-----|-------------|
| docs/architecture/*.md | TODO: fill in per generated template |
| docs/trees/tree-monorepo.md | Project directory structure |

Read the full file on GitHub · 76 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. today First seen · 76 lines · 13 tokens per session scan A 708df2f31f69

Subscribe to this mod's changes

docs-init is a command published in the GitHub repository RaNDoM6913/claude-code-superkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 762 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-09-03.