Skip to content
FunCoding

doc-generator

تولید مستندات جامع و دقیق API از کد منبع. برای ایجاد یا به‌روزرسانی مستندات API، تولید مشخصات OpenAPI، یا وقتی کاربر از مستندات API، endpointها یا مستندسازی حرف می‌زند استفاده کنید.

Star
47,775
License
MIT
Last commit
Nov 21, 2026

fa/03-skills/doc-generator/SKILL.md

View on GitHub

مهارت تولید مستندات API

چه چیزی تولید می‌کند

  • مشخصات OpenAPI/Swagger
  • مستندات endpointهای API
  • مثال‌های استفاده از SDK
  • راهنماهای یکپارچه‌سازی
  • مراجع کدهای خطا
  • راهنماهای احراز هویت

ساختار مستندات

برای هر endpoint

## GET /api/v1/users/:id

### توضیح
توضیح کوتاهی از کاری که این endpoint انجام می‌دهد

### پارامترها

| نام | نوع | الزامی | توضیح |
|------|------|----------|-------------|
| id | string | بله | شناسه کاربر |

### پاسخ

**200 موفقیت**
```json
{
  "id": "usr_123",
  "name": "John Doe",
  "email": "[email protected]",
  "created_at": "2025-01-15T10:30:00Z"
}
```

**404 یافت نشد**
```json
{
  "error": "USER_NOT_FOUND",
  "message": "User does not exist"
}
```

### مثال‌ها

**cURL**
```bash
curl -X GET "https://api.example.com/api/v1/users/usr_123" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

**JavaScript**
```javascript
const user = await fetch('/api/v1/users/usr_123', {
  headers: { 'Authorization': 'Bearer token' }
}).then(r => r.json());
```

**Python**
```python
response = requests.get(
    'https://api.example.com/api/v1/users/usr_123',
    headers={'Authorization': 'Bearer token'}
)
user = response.json()
```

آخرین به‌روزرسانی: ۴ اوت ۲۰۲۶ نسخه Claude Code: 2.1.220 منابع:

  • https://code.claude.com/docs/en/skills مدل‌های سازگار: Claude Fable 5.2, Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 5.5, Claude Haiku 4.5

Similar Skills

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills203k3,265 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills203k3,265 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills203k3,265 new stars in the last 7 days

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills203k3,265 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills203k3,265 new stars in the last 7 days

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills203k3,265 new stars in the last 7 days