Back to Documentation & Writing

DeepWiki-rs (Litho)

documentationrustc4-modelarchitectureai-tools
⭐ 1.0kπŸ“„ MITπŸ•’ 2026-05-16Source β†—

Install this skill

npx skills add sopaco/deepwiki-rs

Works across Claude Code, Cursor, Codex, Copilot & Antigravity

Litho, also known as deepwiki-rs, is a high-performance documentation engine built in Rust that transforms source code into structured technical manuals. It bridges the gap between raw implementation and architectural clarity by automating the creation of C4 model diagramsβ€”covering context, containers, components, and code levels. By scanning repository structures and analyzing logic patterns, it produces professional wikis that track system evolution and design intent. This tool supports various languages including Rust, Python, and JavaScript, making it an essential utility for developers managing legacy systems or complex microservices. It significantly reduces the manual burden of maintaining internal project documentation, ensuring that team members have an updated, accurate reference for system architecture, dependency relationships, and technical workflows directly generated from the latest codebase state.
By sopaco

What this skill does

  • β€’Automatic extraction of architectural relationships from source code
  • β€’Generation of standardized C4 model documentation
  • β€’Support for multi-language repository analysis
  • β€’Dual-model processing for balancing speed and analytical depth
  • β€’Customizable output formatting for project wikis

When to use it

  • βœ“Generating architectural documentation for onboarding new engineers
  • βœ“Creating C4 diagrams for complex microservice systems
  • βœ“Updating legacy codebases that lack maintained technical specs
  • βœ“Preparing internal project wikis during CI/CD pipelines

When not to use it

  • βœ•Small projects where the documentation overhead exceeds the codebase size
  • βœ•Highly ephemeral scripts that undergo daily, radical structure changes
  • βœ•Projects requiring manual, highly personalized technical storytelling

How to invoke it

Example prompts that trigger this skill:

  • β€œAnalyze the current directory and generate documentation to the default output folder.”
  • β€œRun a deep analysis on the /src folder using both an efficient and a powerful AI model.”
  • β€œPerform a quick scan of the codebase without full architectural research.”
  • β€œGenerate full project documentation, skipping the initial preprocessing phase for speed.”
  • β€œCreate a C4-compliant architectural summary of the entire repository.”

Example workflow

  1. Install the binary using 'cargo install deepwiki-rs'.
  2. Navigate to the root directory of the project target.
  3. Execute 'deepwiki-rs -p .' to initiate the initial scan.
  4. Refine results by specifying models with '--model-efficient' and '--model-powerful'.
  5. Review the generated 'litho.docs' folder for C4 diagrams and markdown reports.

Prerequisites

  • –Rust toolchain (cargo)
  • –API keys for supported LLM providers
  • –Internet access for AI research and analysis

Pitfalls & limitations

  • !Large codebases may encounter API rate limits if not properly batch-configured.
  • !Preprocessing phase can be memory-intensive on limited hardware.
  • !Requires careful configuration to ensure generated diagrams align with specific company standards.

FAQ

What languages are supported by Litho?
Litho works with any language that maintains a consistent code structure, including Rust, Python, Java, Go, C#, JavaScript, and TypeScript.
How does the dual-model system work?
You can assign an efficient model for fast, routine scanning and a more powerful model for deep, complex architectural reasoning to balance speed and accuracy.
Can I automate this in my CI/CD pipeline?
Yes, the tool is built for integration into automated pipelines to ensure your project documentation stays in sync with code updates.

How it compares

Unlike writing documentation manually, Litho ensures technical specs stay synchronized with the actual codebase implementation by generating them directly from source analysis.

Source & trust

⭐ 1.0k starsπŸ“„ MITπŸ•’ Updated 2026-05-16πŸ›‘ runs-shell, network

From the source: β€œ# Litho (deepwiki-rs) - AI-Powered Documentation Generation ## Quick Start Guide **Use Litho when you need to:** - Analyze entire codebases and generate architecture documentation - Create C4 model diagrams (Context, Container, Component, Code) - Understand complex software systems and module relati…”

View the full SKILL.md source

# Litho (deepwiki-rs) - AI-Powered Documentation Generation

## Quick Start Guide

**Use Litho when you need to:**
- Analyze entire codebases and generate architecture documentation
- Create C4 model diagrams (Context, Container, Component, Code)
- Understand complex software systems and module relationships
- Generate comprehensive technical specifications
- Document architecture evolution and design decisions

**Core Workflow:**
```bash
# Basic codebase analysis
deepwiki-rs -p ./src

# Complete C4 documentation with dual models
deepwiki-rs -p ./project --model-efficient gpt5-mini --model-powerful gpt5
```

## Decision Tree

### πŸ“‹ **Comprehensive Documentation** β†’ Use "Full Litho Workflow"
Generate complete C4 model documentation with architecture diagrams and technical specs.

### ⚑ **Quick Code Analysis** β†’ Use "Basic Analysis Mode"  
Fast code insights without full documentation pipeline.

### πŸ—οΈ **Architecture Understanding** β†’ Use "Advanced C4 Generation"
Deep architectural analysis with detailed component relationships.

### πŸ”„ **CI/CD Integration** β†’ Use "Automated Pipeline"
Continuous documentation generation for development workflows.

## Key Capabilities

### Multi-Language Support
- Rust, Python, Java, Go, C#, JavaScript/TypeScript
- Any language with recognizable code structure

### Documentation Structure
```
project-docs/
β”œβ”€β”€ 1. Project Overview
β”œβ”€β”€ 2. Architecture Overview  
β”œβ”€β”€ 3. Workflow Overview
└── 4. Deep Dive/
    β”œβ”€β”€ Topic1.md
    └── Topic2.md
```

### Essential Parameters
- `-p, --path`: Source directory
- `-o, --output`: Output location (default: ./litho.docs)
- `--model-efficient`: Fast model for quick analysis
- `--model-powerful`: Capable model for deep analysis
- `--skip-preprocessing`: Skip initial scanning phase
- `--skip-research`: Skip AI research phase

## Advanced Resources

For detailed configuration, troubleshooting, and advanced patterns:
- See [configuration.md](./configuration.md) for comprehensive setup guides
- See [examples.md](./examples.md) for real-world usage patterns  
- See [integration.md](./integration.md) for CI/CD and automation
- See [troubleshooting.md](./troubleshooting.md) for common issues

## Security & Performance Notes

- Install only from trusted sources
- Use `--model-efficient` for large codebases
- Batch processing helps avoid API rate limits
- Memory-constrained environments: use `--skip-preprocessing`

## Installation
```bash
# Install from crates.io (recommended)
cargo install deepwiki-rs

# Build from source
git clone https://github.com/sopaco/deepwiki-rs.git && cd deepwiki-rs && cargo build --release
```

Quoted from sopaco/deepwiki-rs for reference β€” see the original for the authoritative, latest version.

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/skill-litho/
  3. Save the file as SKILL.md
  4. The agent will automatically discover the skill based on its description.

Option B: Global Installation (All Agents)

Save the file to these locations to make it available across all projects:

  • Claude Code: ~/.claude/skills/sopaco/deepwiki-rs/skill-litho/SKILL.md
  • Cursor: ~/.cursor/skills/sopaco/deepwiki-rs/skill-litho/SKILL.md
  • Antigravity: ~/.gemini/antigravity/skills/sopaco/deepwiki-rs/skill-litho/SKILL.md

πŸš€ Install with CLI:
npx skills add sopaco/deepwiki-rs

Read the Master Guide: Mastering Agent Skills β†’

Recommended Rules

View more rules β†’

Recommended Workflows

View more workflows β†’

Recommended MCP Servers

View more MCP servers β†’

Take It Further

Maximize your productivity with these powerful resources

πŸ“‹

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
πŸ“–

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid documentation & writing issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under Documentation & Writing and is published by sopaco, maintained in sopaco/deepwiki-rs.

← Browse All Agent Skills
Sponsored AI assistant. Recommendations may be paid.