Skip to content

AIGNE-io/doc-smith-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocSmith Skills

DocSmith Skills

Version Agent Skill MCP Compatible License GitHub Stars

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

Table of Contents

How it Works

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]
Loading

Features

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

Prerequisites

Installation

npx skills add AIGNE-io/doc-smith-skills

Powered 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-skills

Use with OpenClaw

Publish your documentation via OpenClaw:

  1. Visit DocSmith OpenClaw page
  2. Sign in and click "Generate Publish Prompt"
  3. 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.

Quick Start

Step 1 — Generate documentation:

/doc-smith-create Generate English documentation for the current project

DocSmith 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 zh

Only changed documents are re-translated. Use --force to translate everything.

Step 3 — Publish online:

/doc-smith-publish

Uploads your docs to DocSmith Cloud and returns a shareable URL.

Available Skills

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)

doc-smith-create

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

doc-smith-localize

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 ja
Options
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

doc-smith-publish

Publish generated documents to DocSmith Cloud for online preview.

/doc-smith-publish
Options
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

Workspace Structure

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)

FAQ

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.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

Author

ArcBlock - blocklet@arcblock.io

GitHub: @ArcBlock

License

Apache-2.0

About

Agent Skill version of DocSmith

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages