code-documentation-doc-generate
コードドキュメ���トを自動生成
AIを活用した分析により、ソースコードから包括的なAPIドキュメント、アーキテクチャ図、ユーザーガイド、技術リファレンスを作成します。
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「code-documentation-doc-generate」を使用しています。 Generate API documentation for a FastAPI user service with endpoints for create, read, update, delete users
期待される結果:
- APIドキュメントが作成されました:
- - OpenAPI 3.0仕様
- - ユーザーエンドポイント(/users、/users/{id})
- - 検証付きリクエスト/レスポンススキーマ
- - 認証と認可のセクション
- - 各エンドポイントのcurlコマンド例
「code-documentation-doc-generate」を使用しています。 Create a README for a Python CLI tool that converts images to PDF
期待される結果:
- READMEが生成されました:
- - プロジェクトタイトルと説明
- - インストール手順(pip、conda)
- - 例を使用したクイックスタートガイド
- - 設定オプション表
- - ライセンスとコントリビューションガイドライン
セキュリティ監査
安全All 91 static findings are false positives triggered by documentation examples in the skill. The skill provides templates and examples for generating documentation. No actual code execution, network calls, or credential access occurs. Risk level: SAFE.
低リスクの問題 (1)
品質スコア
作れるもの
WebサービスのAPIドキュメント
RESTエンドポイントコードからOpenAPI仕様と対話型APIドキュ��ントを自動生成
プロジェクトREADMEの生成
インストール、使用例、コントリビューションガイドラインを含む包括的なREADMEファイルを作成
アーキテクチャドキュメント
コード構造からシステムアーキテクチャ図とコンポーネントドキュメントを生成
これらのプロンプトを試す
Generate API documentation for the endpoints in this codebase. Include request/response schemas, authentication requirements, and example requests.
Create a comprehensive README.md for this project. Include: project description, installation steps, usage examples, configuration options, and contribution guidelines.
Analyze the codebase structure and generate architecture documentation. Include a system diagram, component descriptions, data flows, and technology stack summary.
Set up automated documentation generation for this project. Include CI/CD configuration, doc linting rules, and deployment to a documentation hosting platform.
ベストプラクティス
- 常にテストを通じて生成されたドキュメントが実際のコードの動作と一致するか検証
- CI/CD自動化を使用してドキュメントをコードと同期
- ユーザーがコピーして適用できる実用的なコード例を含める
回避
- 正確性をレビューせずにドキュメントを生成
- APIキーや内部URLなどの機密情報を公開ドキュメントに含める
- 自動的に検証またはテストできないドキュメントを作成