搜索结果
全部能力
找到 7461 个相关结果 / 软件工程
软件工程 / 诊断修复
API 文档生成器
api-documentation-generator
从代码生成全面的开发者友好型 API 文档,包括端点、参数、示例和最佳实践 --- ## 概述 本指南介绍如何从代码自动生成完整、可维护的 API 文档,帮助开发者快速理解和集成接口。 --- ## 核心组件 ### 1. 端点文档结构 | 元素 | 说明 | 示例 | |:---|:---|:---| | HTTP 方法 | GET / POST / PUT / DELETE | `GET /api/v1/users` | | 路径 | 资源定位符 | `/api/v1/users/{id}` | | 功能描述 | 一句话说明用途 | 获取用户详细信息 | | 认证方式 | 所需权限或 Token | `Bearer Token` / `API Key` | ### 2. 参数规范 **路径参数** ```http GET /api/v1/users/{userId}/orders/{orderId} ``` | 参数名 | 类型 | 必填 | 约束 | 说明 | |:---|:---|:---|:---|:---| | `userId` | `string` | 是 | UUID 格式 | 用户唯一标识 | | `orderId` | `string` | 是 | 64 位整数 | 订单编号 | **查询参数** ```http GET /api/v1/users?page=1&limit=20&status=active ``` | 参数名 | 类型 | 必填 | 默认值 | 说明 | |:---|:---|:---|:---|:---| | `page` | `integer` | 否 | `1` | 页码,最小值为 1 | | `limit` | `integer` | 否 | `20` | 每页条数,最大 `100` | | `status` | `string` | 否 | - | 筛选状态:`active` / `inactive` / `pending` | **请求体(JSON)** ```json { "username": "zhangsan", "email": "zhangsan@example.com", "role": "developer", "department": "engineering" } ``` | 字段 | 类型 | 必填 | 验证规则 | 说明 | |:---|:---|:---|:---|:---| | `username` | `string` | 是 | 3-20 字符,仅字母数字下划线 | 登录用户名 | | `email` | `string` | 是 | 符合 RFC 5322 | 联系邮箱 | | `role` | `string` | 是 | 枚举值见下方 | 用户角色 | | `department` | `string` | 否 | - | 所属部门 | --- ## 完整请求示例 ### 创建用户 **请求** ```http POST /api/v1/users HTTP/1.1 Host: api.example.com Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIs... { "username": "zhangsan", "email": "zhangsan@example.com", "role": "developer", "department": "engineering" } ``` **成功响应(201 Created)** ```json { "code": 0, "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "username": "zhangsan", "email": "zhangsan@example.com", "role": "developer", "department": "engineering", "createdAt": "2024-01-15T08:30:00Z", "status": "active" }, "requestId": "req_2024011508300001" } ``` **错误响应(400 Bad Request)** ```json { "code": 1001, "message": "参数验证失败", "details": [ { "field": "email", "error": "邮箱格式不正确" } ], "requestId": "req_2024011508300002" } ``` --- ## 状态码与错误体系 | HTTP 状态码 | 业务码 | 场景 | 处理建议 | |:---|:---|:---|:---| | `200` | `0` | 请求成功 | 正常处理响应数据 | | `201` | `0` | 资源创建成功 | 获取返回的 `id` 进行后续操作 | | `400` | `1001` | 参数校验失败 | 检查 `details` 修正请求参数 | | `401` | `2001` | 认证失败 | 刷新 Token 或重新登录 | | `403` | `2002` | 权限不足 | 确认账号角色或联系管理员 | | `404` | `3001` | 资源不存在 | 核对资源 ID 是否正确 | | `409` | `3002` | 资源冲突 |
软件工程 / 诊断修复
代码简化
code-simplify
当用户要求“简化代码”、“清理代码”、“为清晰而重构”、“降低复杂度”、“提高可读性”、“使……”时,应使用此技能。
软件工程 / 诊断修复
hipass收据
hipass-receipt
帮助复用用户在官方 Hi-Pass 网站上手动登录的 Chrome 会话,以查询使用记录并进入收据弹窗。
软件工程 / 诊断修复
solid
solid
Use this skill when writing code, implementing features, refactoring, planning architecture, designing systems, reviewing code, or debugging. This skill…
软件工程 / 诊断修复
model-usage
model-usage
Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.
软件工程 / 诊断修复
sonoscli
sonoscli
Control Sonos speakers (discover/status/play/volume/group).
软件工程 / 诊断修复
debugging-instruments
debugging-instruments
Debug iOS apps and profile performance using LLDB, Memory Graph Debugger, and Instruments. Use when diagnosing crashes, memory leaks, retain cycles, main…
软件工程 / 诊断修复
查询文档
ask-docs
查询 CrewAI 官方文档以获取答案。当用户提出的 CrewAI 问题在入门指南、设计 Agent……中未完全涵盖时使用。
软件工程 / 诊断修复
高性能浏览器
high-perf-browser
通过网络协议、资源加载和浏览器渲染内部机制优化 Web 性能。当用户提及"页面加载速度"、"Core Web Vitals"、"首屏时间"、"渲染阻塞"、"资源压缩"、"HTTP/2"、"HTTP/3"、"预加载"、"懒加载"、"关键渲染路径"或"性能预算"时使用。
软件工程 / 诊断修复
tanstack-table
tanstack-table
Headless UI for building powerful tables & datagrids for TS/JS, React, Vue, Solid, Svelte, Qwik, Angular, and Lit.
软件工程 / 部署发布
dev
dev
Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.
软件工程 / 诊断修复
人性化
humanize
将AI生成的文本转化为自然、类人化的内容,绕过GPTZero、Turnitin和Originality.ai等AI检测器。按字数消耗积分…
软件工程 / 诊断修复
apollo-mcp-server
apollo-mcp-server
使用 Apollo MCP Server 将 AI 智能体与 GraphQL API 连接的指南。在以下场景使用此技能:(1) 设置或配置 Apollo MCP Server,(2) 从 GraphQL 操作定义 MCP 工具,(3) 使用 introspection 工具(introspect、search、validate、execute),(4) 排查 MCP 服务器连接或工具执行问题。
软件工程 / 诊断修复
clean-architecture
clean-architecture
Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code…
软件工程 / 诊断修复
swift-language
swift-language
Apply modern Swift language patterns and idioms for non-concurrency, non-SwiftUI code. Covers if/switch expressions (Swift 5.9+), typed throws (Swift 6+),…
软件工程 / 诊断修复
provider-resources
provider-resources
Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and…
软件工程 / 诊断修复
sentry-nextjs-sdk
sentry-nextjs-sdk
Full Sentry SDK setup for Next.js. Use when asked to "add Sentry to Next.js", "install @sentry/nextjs", or configure error monitoring, tracing, session replay,…
软件工程 / 诊断修复
context7-mcp
context7-mcp
当用户询问库、框架、API 参考或需要代码示例时,应使用此技能。在涉及设置问题、代码……时激活。
软件工程 / 诊断修复
app-intents
app-intents
为 iOS 上的 Siri、Shortcuts、Spotlight、小组件、控制中心以及 Apple Intelligence 实现 App Intents。涵盖 AppIntent 操作、AppEntity 以及…
软件工程 / 诊断修复
effect-ts
effect-ts
当用户询问有关 Effect-TS 模式、服务、层、错误处理、服务组合,或编写/重构……的代码时,应使用此技能。