用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Arete-Consortium/ai-skills --skill api-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | api-docs |
| description | API Documentation Generator |
| lifecycle | experimental |
Generate API documentation from code.
/api-docs # Document all public APIs
/api-docs path/to/module.py # Document specific module
/api-docs --format markdown # Output format
/api-docs --format openapi # Generate OpenAPI spec
# API Reference
## module_name
### `function_name(param1, param2)`
Description from docstring.
**Parameters:**
| Name | Type | Description |
|------|------|-------------|
| param1 | `str` | What param1 does |
| param2 | `int` | What param2 does |
**Returns:**
| Type | Description |
|------|-------------|
| `Result` | What it returns |
**Raises:**
| Exception | Condition |
|-----------|-----------|
| `ValueError` | When param1 is empty |
**Example:**
```python
result = function_name("hello", 42)
ClassNameClass description.
__init__(self, arg1)Constructor description.
method_name(self, param)Method description.
### OpenAPI Spec (for REST APIs)
```yaml
openapi: 3.0.0
info:
title: API Name
version: 1.0.0
paths:
/endpoint:
get:
summary: Get something
parameters:
- name: id
in: query
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
def func(param1: str, param2: int) -> Result:
"""Short description.
Longer description if needed.
Args:
param1: Description of param1.
param2: Description of param2.
Returns:
Description of return value.
Raises:
ValueError: When something is wrong.
Example:
>>> func("hello", 42)
Result(...)
"""
def func(param1, param2):
"""
Short description.
Parameters
----------
param1 : str
Description of param1.
param2 : int
Description of param2.
Returns
-------
Result
Description of return value.
"""
When /api-docs is invoked: