docs-init

docs-init is a skill for Claude Code, Codex from mgiovani/cc-arsenal. It costs 124 tokens per session (1,688 once invoked), scanned A, original, MIT.

A workflow that creates an initial docs/ directory for a project with little or no documentation. It explores the code and fills documentation templates only with facts supported by that code.

In plain words
What is it for?
Use it to bootstrap project documentation and create a first architecture decision record when the existing docs are missing or sparse.
Why use it?
It gives a project a starting documentation structure without inventing features or technical details. It can capture areas such as architecture, onboarding, data, deployment, security, and contributing.

Skill for Claude CodeCodex

Part of the cc-arsenal plugin — 53 skills shipped together

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 skills/mgiovani/cc-arsenal/docs-init
Any agent
npx skills add mgiovani/cc-arsenal --skill docs-init
Clone the repo
git clone --depth 1 https://github.com/mgiovani/cc-arsenal

Made for: Claude Code, Codex.

Or install cc-arsenal, the plugin that ships this one along with the rest of its 53 skills.

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/skills/mgiovani/cc-arsenal/docs-init.svg)](https://agentmods.dev/skills/mgiovani/cc-arsenal/docs-init)
Your own site
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/docs-init"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/docs-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,688 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.00124 $0.01688
Opus 5 $0.00062 $0.00844
Sonnet 5 $0.00025 $0.00338
Haiku 4.5 $0.00012 $0.00169

Measured 3d ago against content hash f5c289d3f792, 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 3d 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.

skills/docs-init/SKILL.md · 158 lines

How it starts

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

Initialize Project Documentation

Bootstrap a docs/ structure for a project with little or no existing documentation. Only generate what the codebase actually evidences.

Anti-Hallucination Guidelines

Every claim in generated docs must trace to something read or grepped in this run:

  1. Verify a file/directory exists before referencing it.
  2. Get counts from ls/find/grep, never estimate.
  3. Quote real function/class/table names, not assumed ones.
  4. An empty directory is not a feature, don't document it.
  5. If a claim can't be verified, drop it rather than guess.

Workflow

1. Explore the codebase

Find: source directories with actual code, package manager files (package.json, pyproject.toml, go.mod, Cargo.toml, ...), database/ORM files, infrastructure configs (Docker, k8s, Terraform), and any existing docs/. See Detection Commands below for the exact patterns.

If a Task/subagent tool is available, delegate this to an Explore agent with that scope. Otherwise run the same grep/find commands inline and Read each hit: the result must be the same either way.

Verify every finding before using it: read the package manifest, read the model file, confirm a directory has real files inside it, not just an empty folder.

2. Detect project characteristics

From the exploration, determine: language/framework stack, project type (web app, CLI, library, service), whether a database/ORM is present, and whether infrastructure/deployment configs exist.

3. Decide which docs to generate

  • Always: docs/architecture.md, docs/onboarding.md, docs/adr/0001-record-architecture-decisions.md (Nygard-format meta-ADR, generate inline, no template file)
  • If a database/ORM was found: docs/data-model.md
  • If deployment configs were found (Dockerfile, k8s manifest, CI workflow, IaC): docs/deployment.md, docs/security.md
  • If the project looks collaborative (multiple contributors in git log, an open-source license, no existing CONTRIBUTING): docs/contributing.md, docs/rfc/ directory

Read the full file on GitHub · 158 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 158 lines · 124 tokens per session scan A f5c289d3f792

Subscribe to this mod's changes

docs-init is a skill published in the GitHub repository mgiovani/cc-arsenal (7 stars, last pushed 3d ago), licensed MIT. It adds 124 tokens to every session and 1,688 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

acl-rule-analysis

Vendor-agnostic ACL and firewall rule analysis with shadowed rule detection, overly permissive rule identification, unused rule discovery, redundant rule flagging, and rule ordering optimization. Covers ACLs (Cisco/JunOS/EOS) and firewall policies (PAN-OS/FortiGate/CheckPoint).

LeoYeAI/openclaw-master-skills · 64 tokens

add-analytics

Add Google Analytics 4 tracking to any project. Detects framework, adds tracking code, sets up events, and configures privacy settings.

LeoYeAI/openclaw-master-skills · 32 tokens

discover-interview-synthesis

Synthesizes user research interviews into actionable insights, patterns, and recommendations. Use after conducting user interviews, customer calls, or usability sessions to extract and communicate findings across participants. Distinct from foundation-meeting-recap, which summarizes one internal meeting for its…

product-on-purpose/pm-skills · 69 tokens

architecture-refiner

Facilitate a structured conversation to define architecture principles for a repository. Supports multiple architecture styles: clean architecture (default), hexagonal / ports & adapters, modular monolith, or custom. Produces a formal architecture document that the corresponding atom will use. Use when setting up a…

techygarg/lattice · 114 tokens

lattice-init

Guided setup and upgrade-check experience for Lattice projects -- scans the repository, detects existing configuration and outdated conventions, suggests refiners and available upgrades in priority order, and creates or reconciles the .lattice/ config. Bridges the gap between installing skills and getting first value…

techygarg/lattice · 115 tokens

develop-solution-brief

Creates a concise one-page solution overview that communicates the proposed approach, key decisions, and trade-offs. Use when pitching solutions to stakeholders, aligning teams on approach, or documenting solution intent before detailed specification.

product-on-purpose/pm-skills · 46 tokens