English | 中文
Official Site · Showcase · Report Bug
Turn your codebase into a polished documentation site with a single slash command — analyze, generate, translate, and publish, all inside your AI coding agent.
See it in action — Browse real documentation sites generated by DocSmith: Showcase
- How it Works
- Features
- Prerequisites
- Installation
- Quick Start
- Available Skills
- Workspace Structure
- FAQ
- Contributing
- License
flowchart LR
A[Analyze Project] --> B[Plan Structure]
B --> C[Generate Docs]
C --> D[Translate]
D --> E[Publish]
A -.- A1[Source code & project files]
B -.- B1[User confirms outline]
C -.- C1[HTML with AI images]
D -.- D1[Multi-language support]
E -.- E1[DocSmith Cloud URL]
| Feature | Description |
|---|---|
| Smart Analysis | Scans source code, README, configs to understand your project |
| Structured Planning | Generates document outline for user review before writing |
| HTML Generation | Produces clean, navigable HTML documentation |
| AI Images | Auto-generates diagrams, flowcharts, and architecture charts |
| Multi-language | Translates docs to any language with terminology consistency |
| Incremental Updates | Hash-based change detection — only re-translates what changed |
| One-click Publish | Deploy to DocSmith Cloud and get a shareable preview URL |
- An AI coding agent that supports Skills — Claude Code, Cursor, Codex, Gemini CLI, or 35+ more
- Node.js >= 18
npx skills add AIGNE-io/doc-smith-skillsPowered by skills — the universal skill format for AI coding agents.
Or simply tell your AI coding agent:
Please install Skills from github.com/AIGNE-io/doc-smith-skills
Via Claude Code Plugin Marketplace
# Register marketplace
/plugin marketplace add AIGNE-io/doc-smith-skills
# Install plugin
/plugin install doc-smith@doc-smith-skillsPublish your documentation via OpenClaw:
- Visit DocSmith OpenClaw page
- Sign in and click "Generate Publish Prompt"
- Copy the prompt and paste it into OpenClaw
The prompt includes skill installation, credential setup, and publish instructions — OpenClaw handles the rest. The credential is saved automatically and persists across sessions.
Step 1 — Generate documentation:
/doc-smith-create Generate English documentation for the current projectDocSmith will analyze your project, then present a document outline for you to review and confirm.
After your confirmation, it generates full HTML documentation with AI images in .aigne/doc-smith/dist/.
Step 2 — Translate to other languages (optional):
/doc-smith-localize Translate docs to Japanese and Chinese
/doc-smith-localize --lang ja --lang zhOnly changed documents are re-translated. Use --force to translate everything.
Step 3 — Publish online:
/doc-smith-publishUploads your docs to DocSmith Cloud and returns a shareable URL.
| Skill | Description |
|---|---|
| doc-smith-create | Generate structured documentation from project sources |
| doc-smith-localize | Translate documents to multiple languages |
| doc-smith-publish | Publish to DocSmith Cloud for online preview |
Internal skills (called automatically, not invoked directly):
| Skill | Description |
|---|---|
| doc-smith-build | Build Markdown into static HTML |
| doc-smith-check | Validate document structure and content integrity |
| doc-smith-images | Generate AI images (diagrams, flowcharts, architecture) |
Generate comprehensive documentation from code repositories, text files, and media resources.
/doc-smith-create Generate English documentation for the current project
/doc-smith-create 为当前项目生成中文文档Features & Details
- Analyzes source code and project structure
- Infers user intent and target audience
- Plans document structure with user confirmation
- Generates organized documentation with HTML output
- AI-generated images for diagrams and architecture charts
- Supports technical docs, user guides, API references, and tutorials
Translate documents to multiple languages with batch processing and terminology consistency.
/doc-smith-localize Translate docs to English
/doc-smith-localize 把文档翻译成英文和日文
/doc-smith-localize --lang en --lang jaOptions
| Option | Description |
|---|---|
--lang <code> |
Target language code (repeatable) |
--path <path> |
Translate specific document only |
--force |
Force re-translate all documents |
Features & Details
- HTML-to-HTML translation (no intermediate Markdown step)
- Batch translation with progress tracking
- Terminology consistency across documents
- Image text translation support
- Incremental translation with hash-based change detection
Publish generated documents to DocSmith Cloud for online preview.
/doc-smith-publishOptions
| Option | Description |
|---|---|
--dir <path> |
Publish specific directory (default: .aigne/doc-smith/dist) |
--hub <url> |
Custom hub URL |
Features & Details
- One-click publish to DocSmith Cloud
- Automatic asset upload and optimization
- Returns online preview URL
DocSmith creates a workspace in .aigne/doc-smith/ with its own git repository:
View directory layout
my-project/
├── .aigne/
│ └── doc-smith/ # DocSmith workspace (independent git repo)
│ ├── config.yaml # Workspace configuration
│ ├── intent/
│ │ └── user-intent.md # User intent description
│ ├── planning/
│ │ └── document-structure.yaml # Document structure plan
│ ├── docs/ # Document metadata
│ ├── dist/ # Built HTML output
│ │ ├── zh/ # Chinese docs
│ │ ├── en/ # English docs
│ │ └── assets/ # Styles, scripts, images
│ ├── assets/ # Generated image assets
│ └── cache/ # Temporary data (not in git)
What project types does DocSmith support?
DocSmith works with any project — it analyzes source code, configuration files, README, and other project files regardless of language or framework.
Where is the workspace located?
All DocSmith data lives in .aigne/doc-smith/ under your project root. It uses its own git repository, so it won't interfere with your project's version control.
How does incremental translation work?
DocSmith uses content hashing to detect changes. When you run /doc-smith-localize, only documents that have changed since the last translation will be re-translated. Use --force to override this behavior.
Can I customize the output theme?
Yes. DocSmith generates a theme.css file in the dist assets directory. You can modify it to customize colors, fonts, and layout.
Contributions are welcome! Please feel free to submit a Pull Request.
- GitHub Issues — Bug reports and feature requests
- Official Site — Documentation and showcase
- ArcBlock — Learn more about ArcBlock
ArcBlock - blocklet@arcblock.io
GitHub: @ArcBlock