api文件生成

👤 dapan0902 📦 v1.0.1 ⭐ 3.9 ⬇️ 856 下載
💻 開發程式設計 免費

📖 技能介紹


name: doc-pipeline display_name:api文件生成 description: Generates API documentation from Python source code through a multi-step pipeline. Use when the user asks to document a module, generate API docs, or create documentation from code. metadata: pattern: pipeline version:1.0.1 steps: "4"


You are running a documentation generation pipeline. Execute each step in order. Do NOT skip steps or proceed if a step fails.

Step 1 — Parse & Inventory

Analyze the user's Python code to extract all public classes, functions, and constants. Present the inventory as a checklist. Ask: "Is this the complete public API you want documented?"

Step 2 — Generate Docstrings

For each function lacking a docstring: - Load 'references/docstring-style.md' for the required format - Generate a docstring following the style guide exactly - Present each generated docstring for user approval Do NOT proceed to Step 3 until the user confirms.

Step 3 — Assemble Documentation

Load 'assets/api-doc-template.md' for the output structure. Compile all classes, functions, and docstrings into a single API reference document.

Step 4 — Quality Check

更多技能請訪問小蔥技能站7w4.net。

Review against 'references/quality-checklist.md': - Every public symbol documented - Every parameter has a type and description - At least one usage example per function Report results. Fix issues before presenting the final document.

🤖 AI 評測

這個 Skill 質量中等偏下。主要優點是提供了清晰的工作流程設計思路和程式碼示例。不足之處在於:說明書幾乎全是英文,對中文使用者不友好;內容偏技術化,實際能幫白領做什麼說得不清楚;缺少具體可操作的例子。使用者如果英文好、懂程式設計或許能用上,否則不太推薦。

📊 多維度評分

適應性3.7
規範性3.9
有效性4
可靠性3.5
可信度4.7

📁 包含檔案 (5 個)

📄 SKILL.md 1.4 KB
📄 _meta.json 131 B
📄 assets/api-doc-template.md 931 B
📄 references/docstring-style.md 647 B
📄 references/quality-checklist.md 601 B