技能 when-documenting-code-use-doc-generator
📝

when-documenting-code-use-doc-generator

低风险 ⚡ 包含脚本📁 文件系统访问

Dokumentation automatisch generieren

Manuelle Dokumentation ist zeitaufwändig und oft veraltet. Dieses Skill generiert automatisch umfassende API-Dokumentation, README-Dateien, Inline-Kommentare und Architekturdiagramme durch Analyse der Code-Struktur.

支持: Claude Codex Code(CC)
⚠️ 65
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“when-documenting-code-use-doc-generator”。 Generate API documentation for this Express.js project

预期结果:

  • Generated docs/api.yml with OpenAPI 3.0 specification
  • Created docs/API.md with endpoint documentation
  • Found 12 endpoints across 4 route files

正在使用“when-documenting-code-use-doc-generator”。 Create a README for this Node.js project

预期结果:

  • Created README.md with sections: Overview, Installation, Usage, API
  • Added badges for CI, coverage, and license
  • Included table of contents with anchor links

安全审计

低风险
v6 • 1/21/2026

Documentation generation skill with legitimate shell scripts for code analysis. All static findings are false positives or standard operations for documentation tools. Shell scripts use find/grep/xargs for code scanning, URLs are template references, and credential mentions are documentation only.

9
已扫描文件
9,099
分析行数
3
发现项
6
审计总数
低风险问题 (1)
Shell command execution in documentation scripts
Shell scripts use find, grep, xargs, and git commands for code analysis. These are legitimate operations for a documentation generator that needs to scan project structure. All command arguments are hardcoded strings from the script itself, not user input.

风险因素

⚡ 包含脚本
未记录任何特定位置
📁 文件系统访问 (2)
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
87
内容
20
社区
88
安全
74
规范符合性

你能构建什么

Neues Projekt einrichten

Schnelles Generieren einer initialen Dokumentationsstruktur für ein neues Projekt einschließlich README, API-Spezifikationen und Inline-Kommentar-Vorlage.

Legacy-Code-Dokumentation

Hinzufügen von Dokumentation zu undokumentierten Legacy-Codebasen durch Analyse der vorhandenen Struktur und Generierung geeigneter Docstrings.

API-Dokumentation aktualisieren

Aktualisierung veralteter API-Dokumentation durch Neugenerierung von OpenAPI-Spezifikationen aus aktuellen Code-Endpunkten.

试试这些提示

API-Dokumentation generieren
Use the documentation generator skill to create OpenAPI 3.0 documentation for this project. Look for Express.js, FastAPI, or NestJS routes and generate a complete API specification in docs/api.yml.
Projekt-README erstellen
Generate a comprehensive README.md for this project. Include sections for overview, installation, usage, API reference, and contributing guidelines. Extract project name, version, and dependencies from package.json or pyproject.toml.
Inline-Kommentare hinzufügen
Analyze the source code and add JSDoc comments to all public functions, classes, and interfaces. Include parameter types, return types, and descriptions where documentation is missing.
Vollständiges Dokumentationspaket
Generate complete documentation for this project including: (1) README.md with badges and table of contents, (2) OpenAPI specification for all endpoints, (3) architecture diagram showing component relationships, (4) inline comments for undocumented code.

最佳实践

  • Dokumentationsgenerierung auf frischen Klonen ausführen, um Offenlegung sensibler Daten zu vermeiden
  • Generierte Dokumentation vor dem Commit in die Versionskontrolle überprüfen
  • Das --overwrite-Flag vorsichtig verwenden, da es bestehende Dateien ersetzt

避免

  • Dokumentationsgeneratoren auf Produktionssystemen mit aktiven Zugangsdaten ausführen
  • Erwarten, dass generierte Dokumentation gründliche Code-Reviews ersetzt
  • Dokumentationslücken ignorieren, die in der Analysephase identifiziert wurden

常见问题

Welche Programmiersprachen unterstützt dieses Skill?
Das Skill unterstützt JavaScript, TypeScript, Python und andere Sprachen mit erkennbaren Frameworks wie Express.js, FastAPI, NestJS und React.
Ändert dieses Skill meinen Quellcode?
Das Skill liest nur Quelldateien zur Strukturanalyse. Es erstellt neue Dokumentationsdateien ohne Änderung des vorhandenen Quellcodes.
Kann ich das Ausgabeformat anpassen?
Ja, die Shell-Skripte unterstützen Optionen wie --format für OpenAPI-Versionen, --output für Verzeichnisse und --no-badges für README-Generierung.
Wo werden Dokumentationsdateien generiert?
Dokumentation wird typischerweise in einem docs/-Unterverzeichnis oder neben bestehenden Dateien wie README.md im Projektstamm generiert.
Benötigt dieses Skill Netzwerkzugriff?
Das Skill analysiert nur lokale Dateien. Es referenziert URLs in Vorlagen (wie Lizenz-URLs), führt aber keine Netzwerkanfragen aus.
Was passiert mit vorhandener Dokumentation?
Standardmäßig werden bestehende Dateien vor Änderung gesichert. Mit dem --overwrite-Flag kann ohne Backup ersetzt werden.