smart-docs

smart-docs is a skill for Claude Code from RockaRhymeLLC/claude-code-skills. It costs 59 tokens per session (2,231 once invoked), scanned A, original, MIT.

A code-documentation workflow that examines functions, classes, exports, and types to produce README sections, API references, and guides. An API is the set of interfaces other code can call.

In plain words
What is it for?
Use it to document a file, directory, or project, generate API reference material, explain modules, or create or update a README.
Why use it?
It reduces the manual effort of turning an unfamiliar codebase into documentation that users and contributors can follow.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bmobot-skills plugin — 7 skills shipped together

Good fit Use it to document a file, directory, or project, generate API reference material, explain modules, or create or update a README.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockarhymellc/claude-code-skills/smart-docs
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.

Any agent
npx skills add RockaRhymeLLC/claude-code-skills --skill smart-docs
Clone the repo
git clone --depth 1 https://github.com/RockaRhymeLLC/claude-code-skills

Made for: Claude Code.

Or install bmobot-skills, the plugin that ships this one along with the rest of its 7 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 smart-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockarhymellc/claude-code-skills/smart-docs/github.svg)](https://agentmods.dev/skills/rockarhymellc/claude-code-skills/smart-docs)
Your own site
<a href="https://agentmods.dev/skills/rockarhymellc/claude-code-skills/smart-docs"><img src="https://agentmods.dev/badge/skills/rockarhymellc/claude-code-skills/smart-docs/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 smart-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockarhymellc/claude-code-skills/smart-docs"><img src="https://agentmods.dev/badge/skills/rockarhymellc/claude-code-skills/smart-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,231 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.00059 $0.02231
Opus 5 $0.00030 $0.01115
Sonnet 5 $0.00012 $0.00446
Haiku 4.5 $0.00006 $0.00223

Measured 8d ago against content hash 4ffd1d0efe78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

smart-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 8d 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/smart-docs/SKILL.md · 348 lines

How it starts

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

Smart Docs Generator

Generate clear, comprehensive documentation from your codebase automatically.

When to Activate

  • User says /smart-docs, "document this", "generate docs", "write a README"
  • User asks for API reference, module documentation, or function docs
  • User wants to document a file, directory, or entire project

Instructions

Step 1: Determine Scope

Ask what needs documenting if unclear:

Single file: /smart-docs src/auth.ts Directory: /smart-docs src/services/ Full project: /smart-docs (no arguments — documents the whole project) Specific focus: /smart-docs --api or /smart-docs --readme

# Understand the project structure
find . -maxdepth 3 -type f \( -name "*.ts" -o -name "*.js" -o -name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.java" \) | head -50

# Check for existing docs
ls -la README.md CHANGELOG.md docs/ 2>/dev/null

# Check package metadata
cat package.json 2>/dev/null | head -20
cat pyproject.toml 2>/dev/null | head -20
cat Cargo.toml 2>/dev/null | head -20

Step 2: Analyze Code

Read the target files and extract:

Exports & Public API
  • Exported functions, classes, types, constants
  • Their signatures, parameters, return types
  • Existing JSDoc/docstring/doc comments (preserve and enhance, don't replace)
Architecture
  • Module dependencies (imports/requires)
  • Inheritance hierarchies
  • Design patterns used (factory, singleton, observer, etc.)
  • Entry points and main flows
Configuration
  • Environment variables used
  • Config files read
  • CLI arguments accepted
  • Default values
Examples
  • Look for existing tests — they're the best documentation
  • Look for example files or usage in README
  • Check for examples/ or __tests__/ directories
# Find test files for usage examples
find . -path "*/test*" -name "*.test.*" -o -name "*.spec.*" | head -20

# Find example files
find . -name "example*" -o -name "demo*" -o -name "sample*" 2>/dev/null | head -10

Read the full file on GitHub · 348 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. 8d ago First seen · 348 lines · 59 tokens per session scan A 4ffd1d0efe78

Subscribe to this mod's changes

smart-docs is a skill published in the GitHub repository RockaRhymeLLC/claude-code-skills (1 stars, last pushed 6mo ago), licensed MIT. It adds 59 tokens to every session and 2,231 once invoked, about $0.0003 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

auth-architect

Designs and implements authentication and identity systems. Covers OAuth2 and OIDC flows including authorization code, PKCE, and client credentials; JWT design including RS256 vs HS256, key rotation, token blacklisting, and refresh token strategy; RBAC and ABAC modeling; SSO with Google, GitHub, and SAML 2.0; session…

mturac/hermes-supercode-skills · 166 tokens

obs-guardian

Builds observability, monitoring, alerting, and incident visibility for production systems. Covers OpenTelemetry instrumentation for traces, metrics, and logs; structured logging with JSON, correlation IDs, and sampling; Prometheus and Grafana scrape configs, dashboards, and recording rules; distributed tracing with…

mturac/hermes-supercode-skills · 165 tokens

api-sculptor

Designs and implements APIs: REST, GraphQL, gRPC, and WebSocket. Produces OpenAPI 3.1 specs, GraphQL SDL schemas, Protocol Buffer definitions, and working server implementations. Use this skill when the user asks about API design, endpoint structure, schema definition, versioning strategy, pagination, authentication…

mturac/hermes-supercode-skills · 143 tokens

db-whisperer

Diagnoses and improves application-layer databases: Postgres, MySQL, SQLite, and MongoDB. Covers EXPLAIN ANALYZE, slow query detection, index strategy, N+1 detection, schema migrations with up/down scripts, connection pooling, replication setup, and vacuum/analyze operations. Use this skill when the user says "this…

mturac/hermes-supercode-skills · 131 tokens

prompt-forge

Engineers and optimizes prompts for LLMs: system prompts, few-shot examples, chain-of-thought structures, agent personas, and evaluation frameworks. Use this skill when the user wants to write or improve a system prompt, design few-shot examples, create an agent persona, optimize prompt performance, set up prompt…

mturac/hermes-supercode-skills · 129 tokens

quantum-debugger

Debugs complex, hard-to-reproduce issues: race conditions, memory leaks, deadlocks, performance regressions, heisenbugs, and crash analysis. Uses scientific debugging methodology with hypothesis generation, systematic testing, and root cause isolation. Use this skill when the user reports intermittent crashes…

mturac/hermes-supercode-skills · 143 tokens