docs

docs is a command for coding agents from nasrulhazim/claude. It costs 0 tokens per session (2,170 once invoked), scanned A, original, MIT.

A set of commands for managing project documentation in a standard folder structure, using rules from a separate guidelines file.

In plain words
What is it for?
Detecting a project type, creating documentation sections such as architecture, development, deployment, and API guides, and following the project’s documentation standards.
Why use it?
It helps keep documentation organized and consistent across different kinds of software projects.

Command

Part of the claude-toolkit plugin — 26 skills, 11 commands, 20 agents 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 commands/nasrulhazim/claude/docs
Clone the repo
git clone --depth 1 https://github.com/nasrulhazim/claude

Or install claude-toolkit, the plugin that ships this one along with the rest of its 26 skills, 11 commands, 20 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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nasrulhazim/claude/docs.svg)](https://agentmods.dev/commands/nasrulhazim/claude/docs)
Your own site
<a href="https://agentmods.dev/commands/nasrulhazim/claude/docs"><img src="https://agentmods.dev/badge/commands/nasrulhazim/claude/docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,170 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.00000 $0.02170
Opus 5 $0.00000 $0.01085
Sonnet 5 $0.00000 $0.00434
Haiku 4.5 $0.00000 $0.00217

Measured 3d ago against content hash c97feaa6ecb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

commands/docs.md · 211 lines

How it starts

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

Documentation Management

You are a specialized documentation management assistant. Follow the global documentation standards defined in ~/.claude/docs-guidelines.md.

Quick Reference

Standard Structure

graph TD
    root["docs/"]
    root --> readme["README.md"]
    root --> arch["01-architecture/"]
    root --> dev["02-development/"]
    root --> deploy["03-deployment/"]
    root --> api["04-api/"]

    arch --> arch_readme["README.md"]
    arch --> arch_01["01-overview.md"]
    arch --> arch_02["02-patterns.md"]
    arch --> arch_03["03-data-layer.md"]

    dev --> dev_readme["README.md"]
    dev --> dev_01["01-getting-started.md"]
    dev --> dev_02["02-workflows.md"]
    dev --> dev_03["03-testing.md"]

    deploy --> deploy_readme["README.md"]
    api --> api_readme["README.md"]

    rootreadme["README.md (Project overview)"]

    style root fill:#e1f5fe
    style arch fill:#e8f5e9
    style dev fill:#fff3e0
    style deploy fill:#fce4ec
    style api fill:#f3e5f5

Project Detection

Before creating documentation, analyze the project to determine its type:

Indicator Project Type Suggested Template Registry
composer.json + artisan Laravel Application Full-Stack Application --
composer.json + src/ (no artisan) PHP/Laravel Package Laravel Package Packagist
package.json + src/ Node.js Library/SDK Library/SDK npm
package.json + routes/ or pages/ Full-Stack JS App Full-Stack Application --
CLI entry point (bin/, cli.js) CLI Tool CLI Tool npm (if published)
openapi.yaml or swagger.json API Service REST API --
setup.py or pyproject.toml Python Package Library/SDK PyPI
requirements.txt + app structure Python Application Full-Stack Application --
Gemfile + *.gemspec Ruby Gem Library/SDK RubyGems
Gemfile + config/routes.rb Rails Application Full-Stack Application --
Cargo.toml (lib) Rust Crate Library/SDK crates.io
Cargo.toml (bin) Rust Application CLI Tool --
*.csproj or *.sln .NET Package/App Library/SDK NuGet
pom.xml or build.gradle Java Package/App Library/SDK Maven Central
go.mod Go Module Library/SDK Go Modules
pubspec.yaml Dart/Flutter Package Library/SDK Pub.dev
mix.exs Elixir Package Library/SDK Hex.pm

Read the full file on GitHub · 211 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. 3d ago First seen · 211 lines · 0 tokens per session scan A c97feaa6ecb9

Subscribe to this mod's changes

docs is a command published in the GitHub repository nasrulhazim/claude (21 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,170 tokens. 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.