Token导航 LogoToken导航

Agent Skill · 研究检索

smart-docs(智能文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

smart-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 38,052。

总安装 1,623周安装 69GitHub Stars 925下载 569核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:smart-docs(智能文档)
来源仓库:https://github.com/sopaco/deepwiki-rs
仓库路径:skills/smart-docs
安装命令:
npx skills add https://github.com/sopaco/deepwiki-rs --skill smart-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sopaco/deepwiki-rs --skill smart-docs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

smart-docs 用于辅助文档、README 和 Markdown 的整理与改写,帮助提炼结构和统一术语。适用于内容稿件、说明文和项目文档的结构化组织场景。使用时应保留项目已有事实和路径,避免将未确认信息写成确定结论。涉及对外文案时,需控制语气,防止过度营销或夸大能力。建议结合项目实际背景和目标读者调整表达方式。

来源仓库内路径:skills/smart-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sopaco/deepwiki-rs --skill smart-docs;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

smart-docs 怎么安装?

在终端执行 npx skills add https://github.com/sopaco/deepwiki-rs --skill smart-docs。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

smart-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

smart-docs 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

smart-docs 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

smart-docs 用的人多吗?

公开数据是累计安装 1,623 次,近一周安装 69 次,下载 569 次,GitHub 925 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

smart-docs 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
smart-docs

智能文档 · 本页

1,623925需要联网MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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.*

  1. Read Key Files: Use Read tool to analyze:

- README.md (if exists) - Package/build config files - Main entry point files

  1. 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

Steps:

  1. Identify Modules/Packages:

- Rust: src/ subdirectories, Cargo.toml workspace members - Python: Top-level directories with __init__.py - Java: Packages in src/main/java/ - Go: Directories with .go files - Node.js: src/ or lib/ subdirectories - TypeScript: Based on tsconfig.json paths

  1. Map Dependencies:

- Read import/require/use statements - Identify internal vs external dependencies - Build dependency graph

  1. Detect Architectural Patterns: Look for:

- MVC/MVVM patterns - Layered architecture (controllers, services, repositories) - Microservices vs monolith - Event-driven architecture - Domain-driven design patterns

  1. Identify Core Components:

- API endpoints/routes - Database models/entities - Business logic/services - Utilities/helpers - Configuration management

Phase 3: Documentation Generation (20-40 minutes)

Objective: Create comprehensive markdown documentation

Create ./docs/ directory structure:

./docs/
├── 1. Project Overview.md
├── 2. Architecture Overview.md
├── 3. Workflow Overview.md
└── 4. Deep Dive/
    ├── [Component1].md
    ├── [Component2].md
    └── [Component3].md
Document 1: Project Overview.md

Content Structure:

# Project Overview

## What is [Project Name]?

[Brief description of what the project does]

## Core Purpose

[Main goals and objectives]

## Technology Stack

- **Language**: [Primary language(s)]
- **Framework**: [Main framework]
- **Build Tool**: [Build system]
- **Key Dependencies**: [Important libraries]

## Key Features

- Feature 1
- Feature 2
- Feature 3

## Project Structure

[Directory tree of main components]

## Getting Started

[Quick start instructions based on README]

## Architecture Summary

[High-level architecture overview - detailed in next doc]
Document 2: Architecture Overview.md

Content Structure:

# Architecture Overview

## System Context (C4 Level 1)

[Description of system boundaries and external actors]

C4Context title System Context Diagram

Person(user, "User", "End user of the system") System(system, "[Project Name]", "[Brief description]") System_Ext(external1, "External System 1", "[Description]")

Rel(user, system, "Uses") Rel(system, external1, "Integrates with")


## Container Architecture (C4 Level 2)

[Description of major containers/services]

C4Container title Container Diagram

Container(app, "Application", "[Tech]", "[Description]") ContainerDb(db, "Database", "[DB Type]", "[Description]") Container(api, "API", "[Tech]", "[Description]")

Rel(app, api, "Calls") Rel(api, db, "Reads/Writes")


## Component Architecture (C4 Level 3)

[Breakdown of major modules and their relationships]

graph TB subgraph "Module A" A1[Component A1] A2[Component A2] end

subgraph "Module B" B1[Component B1] B2[Component B2] end

A1 --> B1 A2 --> B2


## Architectural Patterns

- **Pattern 1**: [Description and usage]
- **Pattern 2**: [Description and usage]

## Key Design Decisions

1. **Decision**: [What was decided]
  - **Rationale**: [Why]
  - **Trade-offs**: [Pros/Cons]

## Module Breakdown

### Module 1: [Name]

- **Purpose**: [What it does]
- **Key Components**: [List]
- **Dependencies**: [What it uses]

### Module 2: [Name]

- **Purpose**: [What it does]
- **Key Components**: [List]
- **Dependencies**: [What it uses]
Document 3: Workflow Overview.md

Content Structure:

# Workflow Overview

## Core Workflows

### Workflow 1: [Name]

[Description of workflow]

sequenceDiagram participant User participant Frontend participant Backend participant Database

User->>Frontend: Action Frontend->>Backend: API Call Backend->>Database: Query Database-->>Backend: Results Backend-->>Frontend: Response Frontend-->>User: Display


**Steps**:

1. Step 1 description
2. Step 2 description
3. Step 3 description

### Workflow 2: [Name]

[Similar structure]

## Data Flow

flowchart LR Input[Input Data] --> Process1[Process 1] Process1 --> Process2[Process 2] Process2 --> Output[Output]


## State Management

[How state is managed in the application]

## Error Handling

[Error handling approach]
Documents 4+: Deep Dive Components

For each major module/component, create detailed documentation:

# Deep Dive: [Component Name]

## Overview

[Detailed description of component]

## Responsibilities

- Responsibility 1
- Responsibility 2
- Responsibility 3

## Architecture

classDiagram class ComponentA { +method1() +method2() }

class ComponentB { +method3() }

ComponentA --> ComponentB : uses


## Key Files

- **`file1.ext`**: [Description]
- **`file2.ext`**: [Description]

## Implementation Details

### Feature 1

[Code explanation]

### Feature 2

[Code explanation]

## Dependencies

- Internal: [List]
- External: [List]

## API/Interface

[If applicable, document public API]

## Testing

[Testing approach for this component]

## Potential Improvements

- Improvement 1
- Improvement 2

Phase 4: Diagram Generation (10-15 minutes)

Mermaid Diagram Types to Use:

  1. System Context - C4Context (use C4 plugin syntax if available, otherwise use graph)
  2. Container Diagram - C4Container or deployment diagram
  3. Component Relationships - Graph TB/LR
  4. Sequence Diagrams - For workflows
  5. Class Diagrams - For OOP architectures
  6. State Diagrams - For state machines
  7. ER Diagrams - For data models
  8. Flow Charts - For processes

Diagram Best Practices:

  • Keep diagrams focused (max 10-12 nodes)
  • Use clear, descriptive labels
  • Include legends when needed
  • Test syntax before including
  • Provide context before diagram

Phase 5: Quality Assurance (5-10 minutes)

Checklist:

  • [ ] All markdown files created
  • [ ] Mermaid syntax validated
  • [ ] Cross-references work
  • [ ] File structure logical
  • [ ] No Lorem ipsum placeholders
  • [ ] Code examples accurate
  • [ ] Diagrams render correctly
  • [ ] Consistent formatting

Present Summary:

## Documentation Generated ✅

Created comprehensive documentation in `./docs/`:

- **1. Project Overview.md** - [X] lines
  - Technology stack identified
  - Core features documented

- **2. Architecture Overview.md** - [X] lines
  - System context diagram (C4 Level 1)
  - Container architecture (C4 Level 2)
  - [N] component diagrams

- **3. Workflow Overview.md** - [X] lines
  - [N] core workflows documented
  - [N] sequence diagrams

- **4. Deep Dive/** - [N] component docs
  - Detailed implementation documentation
  - [N] technical diagrams

**Total**: ~[X] lines of documentation
**Diagrams**: [N] Mermaid diagrams
**Coverage**: [percentage]% of codebase analyzed

Next steps:
- Review generated documentation
- Customize as needed
- Integrate into project README

Advanced Techniques

Language-Specific Patterns

Rust Projects
  • Focus on: modules, traits, lifetimes, error handling
  • Key files: Cargo.toml, src/main.rs, src/lib.rs
  • Document: ownership patterns, async/await usage
Python Projects
  • Focus on: packages, classes, decorators, type hints
  • Key files: setup.py, pyproject.toml, __init__.py
  • Document: virtual env, dependency management
Java Projects
  • Focus on: packages, interfaces, annotations
  • Key files: pom.xml, build.gradle, package structure
  • Document: design patterns, Spring/Jakarta EE usage
JavaScript/TypeScript Projects
  • Focus on: modules, components, hooks (if React)
  • Key files: package.json, tsconfig.json
  • Document: build process, bundling, type system

Large Codebase Strategy

For projects >1000 files:

  1. Prioritize Core Modules: Focus on main functionality first
  2. Batch Processing: Analyze 10-20 files at a time
  3. Progressive Documentation: Generate overview first, details later
  4. Multiple Passes: Refine documentation in iterations

Context Window Management

Monitor token usage:

  • Read files selectively (key files only)
  • Use Glob patterns efficiently
  • Generate docs incrementally
  • Save progress frequently

Error Handling

If you encounter issues:

  1. File Not Found: Use Glob to locate correct path
  2. Too Many Files: Filter with specific patterns
  3. Context Limit: Generate documentation in parts
  4. Unknown Tech Stack: Focus on file structure and naming conventions

Output Format

Always use markdown with:

  • Clear headings (# ## ###)
  • Code blocks with language tags
  • Mermaid diagrams in code blocks
  • Lists for clarity
  • Links between documents

Usage Examples

Example 1: Rust CLI Tool

User: "Generate docs for this Rust project"

Response:

  1. Scan project: Find Cargo.toml, src/main.rs
  2. Identify: CLI tool using clap
  3. Generate: Focus on command structure, argument parsing
  4. Create: Architecture emphasizing CLI workflows

Example 2: Python Web API

User: "Document this FastAPI application"

Response:

  1. Scan: Find main.py, routes/, models/
  2. Identify: REST API with database
  3. Generate: Focus on endpoints, data models
  4. Create: API documentation with request/response examples

Example 3: JavaScript React App

User: "Create architecture docs for this React app"

Response:

  1. Scan: src/, components/, public/
  2. Identify: Component hierarchy, state management
  3. Generate: Focus on component architecture
  4. Create: UI/UX flow documentation

Tips for Best Results

  1. Start Small: Test on small projects first
  2. Iterate: Refine instructions based on output
  3. Customize: Adapt templates for your needs
  4. Version Control: Track documentation with code
  5. Keep Updated: Regenerate when architecture changes

Limitations

  • Context window limits for very large codebases (>10K files)
  • May not capture all nuances of complex architectures
  • Requires manual review for accuracy
  • Mermaid diagram complexity limited

When to Use This Skill

✅ Use When:

  • Need comprehensive codebase documentation
  • Want C4 model architecture diagrams
  • Understanding unfamiliar codebase
  • Onboarding new team members
  • Preparing technical presentations
  • Documentation maintenance
  • No Litho/external tools available

❌ Don't Use When:

  • Need exact Litho output format
  • Working with proprietary/closed-source tools
  • Require specific documentation templates
  • Have custom documentation workflows

Remember: This skill uses your Claude Code subscription exclusively. No external API calls, no additional costs. All analysis and generation happens within Claude Code's context.

平台分布

Claude Code

30.25%
按下载量换算172

OpenCode

25.26%
按下载量换算144

Codex

16.73%
按下载量换算95

windsurf

14.41%
按下载量换算82

trae

7.61%
按下载量换算43

Cursor

3.53%
按下载量换算20

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills