API Documentation by dasien/retrowarden
npx skills add https://github.com/dasien/retrowarden --skill 'API Documentation'创建全面的 API 文档,使开发者能够快速理解并正确使用 API,包括参数、返回值、错误和实用示例。
上下文 : 记录一个任务创建函数
### add_task(title, agent, priority, description)
在队列中创建一个新任务。
**参数**:
- `title` (string) - 任务的简短描述性标题
- `agent` (string) - 要分配的代理名称(必须存在于 agents.json 中)
- `priority` (string) - 可选值:"critical"、"high"、"normal"、"low"
- `description` (string) - 详细的任务描述
**返回值**:
- `string` - 所创建任务的唯一任务 ID
**引发**:
- `ValueError` - 如果代理名称无效或优先级未知
- `FileNotFoundError` - 如果无法访问队列文件
**示例**:
```python
task_id = queue.add_task(
title="修复登录错误",
agent="implementer",
priority="high",
description="用户无法使用有效凭据登录"
)
print(f"已创建任务: {task_id}")
```
**自版本**: v1.0.0
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
每周安装量
–
代码仓库
GitHub 星标数
4
首次出现
–
安全审计
Create comprehensive API documentation that enables developers to quickly understand and correctly use APIs, including parameters, return values, errors, and practical examples.
Context : Documenting a task creation function
### 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
Weekly Installs
–
Repository
GitHub Stars
4
First Seen
–
Security Audits
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
150,000 周安装
Conventional Commit规范提交助手 - GitHub Copilot自动生成标准化提交信息
8,500 周安装
SQL性能优化助手 - 专业SQL查询调优与索引策略优化工具
8,600 周安装
Vue Router 最佳实践指南:导航守卫、路由生命周期与常见陷阱解决方案
9,200 周安装
后台代理状态通知 - 避免轮询浪费,高效处理AI代理进度更新
205 周安装
网站设计审查工具 - 自动检测并修复HTML/CSS/JS、React、Vue等框架的视觉与布局问题
8,900 周安装
.NET/C# 最佳实践指南:代码规范、设计模式、依赖注入与AI集成
8,900 周安装