docs-init

docs-init is a command for Claude Code from ihudak/ihudak-claude-plugins. It costs 140 tokens per session (15,019 once invoked), scanned A, original, MIT.

A setup command that creates the initial structure for a documentation repository, including page stubs, public and internal builds, navigation, writing checks, and continuous integration checks.

In plain words
What is it for?
Use it when starting documentation for a project from scratch. It prepares the repository and its automated checks, but does not write the actual documentation beyond explanatory placeholders.
Why use it?
It gives a project with no documentation a working place to build, preview, check, and publish pages. The generated stubs provide structure without pretending to be finished content.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions .claude-plugin.

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 docs-workflows plugin — 1 skill, 6 commands, 11 agents shipped together

Good fit Use it when starting documentation for a project from scratch. It prepares the repository and its automated checks, but does not write the actual documentation beyond explanatory placeholders.

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 ihudak/ihudak-claude-plugins
Claude Code
/plugin install docs-workflows

Made for: Claude Code.

Or install docs-workflows, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 11 agents.

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/docs-init"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/docs-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 15,019 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.00140 $0.15019
Opus 5.5 $0.00056 $0.06008
Sonnet 5.5 $0.00028 $0.03004
Haiku 4.5 $0.00014 $0.01502

Measured 2mo ago against content hash 2ebe6c41e4e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

plugins/docs-workflows/commands/docs-init.md · 342 lines

How it starts

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

Core references. A citation of the form workflows-core:<name> names a shared reference in the workflows-core plugin. Load it with Skill(skill: "workflows-core:reference", args: "<name>") — never by path: ${CLAUDE_PLUGIN_ROOT} resolves to this plugin, which does not carry it.

Scaffold a documentation repository: $ARGUMENTS

/docs-init creates a documentation repository that builds, serves, lints, and is profiled — for a project that has no documentation at all. It never writes documentation content beyond the skeleton and its own explanatory stubs: what it produces is a portal shape, two working builds, a linter that will not cry wolf on day one, a CI workflow that asserts the public/internal boundary on built output, and the .dev-workflows/docs-profile.yml that /docs-workflows:docs-serve, /docs-workflows:document and /docs-workflows:docs-brand read on the repository afterwards (/docs-workflows:release-notes reads no docs profile at all). Its bulk lives in this plugin's own references and it does not restate them: a second copy of the page tree, the stubs or the two configs is a second thing to keep in step, and this repository has paid for that mistake more than once. This command body names the entry point it is executing at each step, and the flags that vary it.

Signature: /docs-init [<docs-repo-path>] [--generator mkdocs-material] [--no-brand] [--public-only] [--with-pricing] [--with-compliance]

It is the cold-start command, and its acceptance test is inverted because of that. Every sibling in this family that resolves a docs repository wants one that already exists — /docs-workflows:docs-profile to describe one, /docs-workflows:docs-brand to brand one, /docs-workflows:docs-serve to serve one, /docs-workflows:docs-audit to audit one, and /docs-workflows:document to write into one. This one wants a place to make one, so a directory carrying a docs signal is a stop, not a match (design D23). An implementer who copies a sibling's ladder gets that exactly backwards, and the scaffold then refuses the one directory it was pointed at.


Phase 0 — Resolve and validate

  1. Flags. Strip --generator <name> (together with the token immediately after it), --no-brand, --public-only, --with-pricing and --with-compliance from $ARGUMENTS wherever they appear, before reading a positional token. What remains is the optional <docs-repo-path>. Record each flag; they are consumed at Phases 3, 4 and 5. --generator accepts mkdocs-material and nothing else today — any other value stops with DOCS_INIT_UNKNOWN_GENERATOR: <value> is not a generator this command can scaffold (mkdocs-material is the only one). The flag exists so the profile's generator field has an author rather than a default nobody chose (D8, D9); a second generator is a new template, not a rewrite of this command.

  2. Resolve the target. Execute resolve-scaffold-target from ${CLAUDE_PLUGIN_ROOT}/references/docs-workflow/repo-resolution.md §2 — the inverted form, since this command creates a docs repository rather than adopting one. Do not restate its ladder here; the entry point owns it, and §4 of that file explains why the two forms are opposite. Report which rung answered, per its own hard rule — a scaffold that quietly writes into an unexpected directory is expensive to unpick. A $DOCS_PATH that carries a signal is never skipped in silence at that ladder's rung 2: report it together with the redirect to /docs-workflows:docs-profile before continuing, because it is almost certainly the repository the operator meant.

  3. Specs-repo preflight. Invoke Skill(skill: "workflows-core:reference", args: "specs-repo-git specs-preflight") and execute its specs-preflight entry point (§3) inline, as early as $SPECS_PATH is known: flush any leftover session artifacts from an earlier run, retry an artifact commit that failed to push, and settle the branch. This runs against $SPECS_PATH only — git -C "$SPECS_PATH", never a cd, so the docs repo this run is about to create is untouched (§1 rule 1). Prompt-free and silent when the specs repo is clean and on its default branch. If a guard fires, emit its §5 notice; if it returns specs_git: blocked (§3.3 G0), carry that flag for the whole run — the terminal commit-artifacts step skips on it. This family creates no branch in $SPECS_PATH — its deliverable is the docs repository — so this preflight only ever settles a branch that already exists; it never switches onto one this run made.

Read the full file on GitHub · 342 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. 2mo ago Changed 2ebe6c41e4e5
  2. 2mo ago Changed · +1 lines b1b80417a202
  3. 2mo ago First seen · 341 lines · 140 tokens per session scan A 306d40af8f8a

Subscribe to this mod's changes

docs-init is a command published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 140 tokens to every session and 15,019 once invoked, about $0.0006 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-09-19.

Related

docs-init compared with commands from other repositories

docs-init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-initihudak/ihudak-claude-pluginsCommand22mo agoMITA140Claude Code
plan-decisionjuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA39Claude Code, OpenCode
sync-docsjuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA10Claude Code, OpenCode
plan-changejuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA13Claude Code, OpenCode
review-deepjuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA22OpenCode
write-test-planjuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA6Claude Code, OpenCode
write-planjuliusz-cwiakalski/agentic-delivery-osCommand47yesterdayMITA5Claude Code, OpenCode