smart-docs

smart-docs is a skill for Claude Code from sopaco/deepwiki-rs. It costs 80 tokens per session (3,361 once invoked), scanned A, original, MIT.

A codebase documentation generator that examines a software project and produces structured Markdown documentation, including architecture diagrams. It uses the C4 model, a way to describe software from the big picture down to individual parts.

In plain words
What is it for?
Use it to document an existing project, explain its architecture, create technical specifications, and generate Mermaid diagrams that show how its parts fit together.
Why use it?
It helps turn an unfamiliar codebase into a readable guide without requiring someone to document every part by hand. The step-by-step analysis also makes it easier to understand how the project is organised.

Skill for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./docs/.

Good fit Use it to document an existing project, explain its architecture, create technical specifications, and generate Mermaid diagrams that show how its parts fit together.

Compare 6 skills from other repositories ↓
About the project

Litho is a Rust-based AI documentation generator that analyzes a codebase and produces architecture documentation in the C4 model format. Developers, architects, and technical leads use it to create and maintain diagrams and code-level documentation, while the catalogue provides skills for working with the project.

sopaco/deepwiki-rs · 3,142 stars · on GitHub · deepwiki.netlify.app

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sopaco/deepwiki-rs
agentmods
npx agentmods add skills/sopaco/deepwiki-rs/smart-docs

Made for: Claude Code.

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/sopaco/deepwiki-rs/smart-docs/github.svg)](https://agentmods.dev/skills/sopaco/deepwiki-rs/smart-docs)
Your own site
<a href="https://agentmods.dev/skills/sopaco/deepwiki-rs/smart-docs"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/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/sopaco/deepwiki-rs/smart-docs"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/smart-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,361 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00080 $0.03361
Opus 5.5 $0.00032 $0.01344
Sonnet 5.5 $0.00016 $0.00672
Haiku 4.5 $0.00008 $0.00336

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

The scan reads SKILL.md. This mod also ships 1 executable file (install.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 563 lines

How it starts

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

Smart Documentation Generator

You are an expert software architect and technical writer. Your task is to generate comprehensive, professional codebase documentation similar to Litho/deepwiki-rs, but using Claude Code's native capabilities without external LLM API calls.

Core Principles

  1. Progressive Analysis: Analyze codebases incrementally, not all at once
  2. Pattern Recognition: Identify common architectural patterns
  3. C4 Model: Structure documentation following C4 model levels
  4. Mermaid Diagrams: Use Mermaid for all visualizations
  5. Markdown Output: Generate well-structured markdown files

Workflow

Phase 1: Project Discovery (5-10 minutes)

Objective: Understand project structure, technology stack, and scope

Steps:

  1. Get Project Overview:

    # Get directory structure
    tree -L 3 -I 'node_modules|target|build|dist|vendor|__pycache__|.git'
    
    # Or if tree not available:
    find . -type d -maxdepth 3 -not -path '*/\.*' -not -path '*/node_modules/*' -not -path '*/target/*'
    
  2. Count Lines of Code:

    # If cloc is available:
    cloc . --exclude-dir=node_modules,target,build,dist,vendor
    
    # Or basic count:
    find . -name '*.rs' -o -name '*.py' -o -name '*.java' -o -name '*.go' -o -name '*.js' -o -name '*.ts' | xargs wc -l
    
  3. Identify Entry Points: Use Glob to find:

    • README files: **/{README,Readme,readme}.md
    • Config files: **/package.json, **/Cargo.toml, **/pom.xml, **/go.mod, **/setup.py
    • Main entry points: **/main.*, **/index.*, **/app.*
  4. Read Key Files: Use Read tool to analyze:

    • README.md (if exists)
    • Package/build config files
    • Main entry point files
  5. Determine Technology Stack: Based on files found, identify:

    • Primary language(s)
    • Frameworks used
    • Build tools
    • Dependencies

Phase 2: Architecture Analysis (10-20 minutes)

Objective: Understand system architecture, modules, and relationships

Read the full file on GitHub · 563 lines

Files

What ships with it

3 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. 1mo ago First seen · 563 lines · 80 tokens per session scan A bd79febaf48d

Subscribe to this mod's changes

smart-docs is a skill published in the GitHub repository sopaco/deepwiki-rs (3,142 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 3,361 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

modlens

Plug-in vision for text-only models. Hard rule: when a file path or URL with an image extension (.png, .jpg, .jpeg, .webp, .gif, .heic, .heif) appears anywhere in the conversation (typed by the user, injected as a [Image: source: ] line, or inside a tag) and you cannot see that image's content, run this skill on it…

liustack/modlens · 240 tokens

dsh-tui-guide

Use when the user asks about dsh-tui itself (usage, shortcuts, config, themes, migration, VS Code). Load before answering; skip for normal coding tasks.

ccch1mneyyy/dsh-TUI · 41 tokens

submit-dsh-plugin

A submission checklist and workflow for adding a DeepSeek Harness plugin to the community’s public catalogue. It prepares the catalogue entry and checks the plugin’s repository, metadata, tests, and required files.

imsai-sh/awesome-deepseek-harness-plugins · 103 tokens

dsh-plugin-guide

Use when developing, reviewing, packaging, debugging, or answering questions about DeepSeek Harness (DSH) plugins — the plugin-based agent harness on vendored Cordis. Applies the official plugin-development constraints (plugin contract, cordis.yml layers, services/events/effects, tool DSL, bundles/profiles) backed by…

PerryLink/dsh-plugin-guide · 76 tokens

vision-multimodal

A skill that adds image, video, audio, document, and screenshot understanding to a text-only model. It includes tasks such as reading text from images, locating objects, transcribing speech, and analyzing media.

Yts1919/dsh-vision-complete · 112 tokens

codex-sync

Operate dsh-codex-sync from this session — preview and import Codex chats, toggle Skills/MCP/import settings, check MCP mirror health, install the reverse MCP bridge.

Walvez/dsh-codex-sync · 40 tokens