Skip to content
Back to skills

Api Documentation 1

ASecurity

Document APIs comprehensively with signatures, parameters, return values, errors, and working code examples for developer reference

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentpythongoapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill api-documentation-1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Documentation 1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Documentation 1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-api-documentation-1/badge)](https://www.skillsdirectory.com/skills/david-li0406-api-documentation-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "API Documentation"
description: "Document APIs comprehensively with signatures, parameters, return values, errors, and working code examples for developer reference"
category: "documentation"
required_tools: ["Read", "Write", "Grep", "Glob"]
---

# API Documentation

## Purpose
Create comprehensive API documentation that enables developers to quickly understand and correctly use APIs, including parameters, return values, errors, and practical examples.

## When to Use
- Documenting public APIs
- Creating developer references
- Writing SDK documentation
- Updating API changes

## Key Capabilities
1. **Signature Documentation** - Clear parameter and return type descriptions
2. **Example Creation** - Practical, working code examples
3. **Error Documentation** - All possible errors and when they occur

## Approach
1. Document function signature with types
2. Describe each parameter clearly
3. Describe return value and possible states
4. List all exceptions/errors that can be raised
5. Provide working example code
6. Note version added or deprecated

## Example
**Context**: Documenting a task creation function
````markdown
### add_task(title, agent, priority, description)

Creates a new task in the queue.

**Parameters**:
- `title` (string) - Short descriptive title for the task
- `agent` (string) - Agent name to assign (must exist in agents.json)
- `priority` (string) - One of: "critical", "high", "normal", "low"
- `description` (string) - Detailed task description

**Returns**:
- `string` - Unique task ID for the created task

**Raises**:
- `ValueError` - If agent name is invalid or priority is unknown
- `FileNotFoundError` - If queue file cannot be accessed

**Example**:
```python
task_id = queue.add_task(
    title="Fix login bug",
    agent="implementer",
    priority="high",
    description="Users cannot log in with valid credentials"
)
print(f"Created task: {task_id}")
```

**Since**: v1.0.0
````

## Best Practices
- ✅ Include type information for all parameters
- ✅ Provide complete, working examples
- ✅ Document all possible errors
- ❌ Avoid: Incomplete or outdated examples

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…