← 返回
开发者工具 中文

Shadows Doc Forge

Auto-documentation generator — analyzes code and generates README, API docs, architecture docs, inline comments. Use when documentation is missing or outdated.
自动文档生成器 — 分析代码并生成 README、API 文档、架构文档和内联注释。适用于文档缺失或过时的场景。
nakedoshadow
开发者工具 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 611
下载
💾 7
安装
1
版本
#latest

概述

Doc Forge — Intelligent Documentation Generator

Version: 1.1.0 | Author: Shadows Company | License: MIT


WHEN TO TRIGGER

  • Project has no README or outdated documentation
  • User says "document this", "generate docs", "write README"
  • New module/feature needs documentation
  • API endpoints need documented
  • Onboarding documentation needed

WHEN NOT TO TRIGGER

  • Code is self-explanatory and well-named
  • User explicitly says "no docs needed"
  • Adding trivial comments to obvious code

PREREQUISITES

No binaries required. This skill reads source files and generates documentation in markdown format. No external tools needed.


DOCUMENTATION TYPES

Type 1 — README.md

Structure:

# Project Name
[One-line description]

## Quick Start
[3-5 steps to get running]

## Features
[Bullet list of key capabilities]

## Installation
[Step-by-step install instructions]

## Usage
[Code examples for common use cases]

## Configuration
[Environment variables, config files]

## API Reference
[If applicable — endpoints or function signatures]

## Architecture
[High-level diagram or description]

## Contributing
[How to contribute]

## License
[License type]

Type 2 — API Documentation

For each endpoint/function:

### `METHOD /path/to/endpoint`

**Description**: What it does.

**Auth**: Required/Optional/None

**Parameters**:
| Name | Type | Required | Description |
|------|------|----------|-------------|
| id   | string | Yes    | Resource ID |

**Request Body**:

{ "key": "value" }


**Response** (200):

{ "ok": true, "data": {} }


**Errors**:
| Code | Description |
|------|-------------|
| 400  | Invalid input |
| 401  | Unauthorized |
| 404  | Not found |

Type 3 — Architecture Document

# Architecture Overview

## System Diagram
[Text-based diagram using ASCII or Mermaid]

## Components
[Description of each major component]

## Data Flow
[How data moves through the system]

## Key Decisions
[Why certain architectural choices were made]

## Dependencies
[External services and their purposes]

Type 4 — Inline Code Documentation

Rules for adding code comments:

  1. Only document WHY, never WHAT — the code shows WHAT
  2. Document edge cases — explain non-obvious behavior
  3. Document contracts — inputs, outputs, side effects
  4. No obvious comments// increment counter on counter++ is noise

Good:

# Rate limit: Stripe API allows max 100 requests/sec.
# We batch to stay under 80 to account for retries.
batch_size = 80

Bad:

# Set batch size to 80
batch_size = 80

PROCESS

  1. Scan the project structure — list all directories and key files (entry points, configs, tests)
  2. Read entry points first (main.py, index.ts, server.py), then configs, then supporting modules
  3. Analyze frameworks used, architecture patterns, data flow, public interfaces
  4. Generate the appropriate documentation type based on what the project needs most
  5. Verify every code example and function signature against the actual source before finalizing

SECURITY CONSIDERATIONS

This skill reads source code files to generate documentation. It does not execute code, make network calls, or modify existing source files. Generated documentation is written as new files only. No credentials required, no persistence, no network access. Safe for all repositories.


OUTPUT FORMAT

Generated documentation follows the templates defined in DOCUMENTATION TYPES above. Each output file is a standalone markdown document placed alongside the source it documents (or at the project root for README.md).


RULES

  1. Read before documenting — never document code you haven't read
  2. Accuracy over completeness — better to document less correctly than more incorrectly
  3. Living docs — documentation must match current code state
  4. Examples are mandatory — every API endpoint needs a usage example
  5. No fictional features — only document what actually exists in the codebase
  6. Match project language — if project docs are in French, write in French

Published by Shadows Company — "We work in the shadows to serve the Light."

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-30 21:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,899
security-compliance

Shadows Security Scanner

nakedoshadow
七阶段安全审计流程——信息收集、依赖扫描、应用测试、API安全、加固检查、OWASP验证、报告。在生产前使用。
★ 0 📥 917
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,936