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.
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.
git clone --depth 1 https://github.com/sopaco/deepwiki-rsnpx agentmods add skills/sopaco/deepwiki-rs/smart-docsWrote 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.
[](https://agentmods.dev/skills/sopaco/deepwiki-rs/smart-docs)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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.
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
- Progressive Analysis: Analyze codebases incrementally, not all at once
- Pattern Recognition: Identify common architectural patterns
- C4 Model: Structure documentation following C4 model levels
- Mermaid Diagrams: Use Mermaid for all visualizations
- Markdown Output: Generate well-structured markdown files
Workflow
Phase 1: Project Discovery (5-10 minutes)
Objective: Understand project structure, technology stack, and scope
Steps:
-
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/*' -
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 -
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.*
- README files:
-
Read Key Files: Use Read tool to analyze:
- README.md (if exists)
- Package/build config files
- Main entry point files
-
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
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.
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.
- 1mo ago First seen · 563 lines · 80 tokens per session scan A bd79febaf48d
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.
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…
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.
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.
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…
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.
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.