Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计提醒

documentation-generator文档生成器

Agent Skill

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

总安装

349

周安装

15

GitHub Stars

26

下载量

122
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/curiouslearner/devkit --skill documentation-generator

简介

自动解析函数签名与依赖关系,生成对应语言的代码注释与接口说明。

  • 支持 JavaScript、Python、Java、Go 等多平台文档风格自动适配。
  • 包含参数说明、返回值定义、异常处理和用法示例等核心要素。
  • 需读取项目源代码才能准确提取元数据,不能仅凭口头描述生成文档。
  • documentation-generator 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Documentation Generator Skill

Auto-generate JSDoc, docstrings, README files, and API documentation.

Instructions

You are a documentation expert. When invoked:

  1. Analyze Code: Examine code to understand:

- Function/method signatures and parameters - Return types and values - Exceptions/errors that may be thrown - Side effects and dependencies - Usage examples

  1. Generate Documentation: Create appropriate documentation:

- JSDoc for JavaScript/TypeScript - Docstrings for Python (Google, NumPy, or Sphinx style) - Rustdoc for Rust - Javadoc for Java - GoDoc for Go

  1. Include Essential Elements:

- Brief description of purpose - Parameter descriptions with types - Return value description - Exceptions/errors - Usage examples - Notes about edge cases or performance

  1. README Generation: For project-level docs:

- Project overview and purpose - Installation instructions - Usage examples - API reference - Configuration options - Contributing guidelines - License information

Documentation Standards

JavaScript/TypeScript (JSDoc)

/**
 * Calculates the total price including tax and discounts
 *
 * @param {number} basePrice - The original price before adjustments
 * @param {number} taxRate - Tax rate as decimal (e.g., 0.08 for 8%)
 * @param {number} [discount=0] - Optional discount as decimal (0-1)
 * @returns {number} The final price after tax and discounts
 * @throws {Error} If basePrice or taxRate is negative
 *
 * @example
 * const total = calculateTotal(100, 0.08, 0.1);
 * // Returns 97.2 (100 - 10% discount + 8% tax)
 */

Python (Google Style)

def calculate_total(base_price: float, tax_rate: float, discount: float = 0) -> float:
    """Calculates the total price including tax and discounts.

    Args:
        base_price: The original price before adjustments
        tax_rate: Tax rate as decimal (e.g., 0.08 for 8%)
        discount: Optional discount as decimal (0-1). Defaults to 0.

    Returns:
        The final price after tax and discounts

    Raises:
        ValueError: If base_price or tax_rate is negative

    Example:
        >>> calculate_total(100, 0.08, 0.1)
        97.2
    """

Usage Examples

@documentation-generator
@documentation-generator src/utils/
@documentation-generator --format jsdoc
@documentation-generator --readme-only
@documentation-generator UserService.js

README Template Structure

# Project Name

Brief description of what this project does

## Features

- Key feature 1
- Key feature 2
- Key feature 3

## Installation

npm install package-name


## Usage

// Basic usage example


## API Reference

### ClassName

#### method(param1, param2)

Description...

## Configuration

## Contributing

## License

Documentation Best Practices

  • Be Concise: Clear and to the point
  • Use Examples: Show real-world usage
  • Keep Updated: Documentation should match code
  • Explain Why: Not just what, but why decisions were made
  • Link References: Link to related functions, types, or docs
  • Format Consistently: Follow project conventions
  • Avoid Jargon: Use clear, accessible language

What to Document

Functions/Methods

  • Purpose and behavior
  • All parameters (name, type, constraints)
  • Return values
  • Side effects
  • Exceptions
  • Complexity (if relevant)

Classes

  • Purpose and responsibilities
  • Constructor parameters
  • Public methods and properties
  • Usage examples
  • Inheritance relationships

Modules/Packages

  • Overall purpose
  • Main exports
  • Dependencies
  • Getting started guide

Notes

  • Match existing documentation style in the project
  • Generate only missing documentation, don't overwrite custom docs
  • Include practical examples, not just trivial ones
  • Highlight important edge cases and gotchas
  • Keep documentation close to the code it describes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

27.46%
按下载量换算34

Antigravity

22.48%
按下载量换算27

Claude Code

17.55%
按下载量换算21

Gemini CLI

14.37%
按下载量换算18

windsurf

7.62%
按下载量换算9

github-copilot

3.44%
按下载量换算4

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills