一键导入
review-api
Review new or modified API features for completeness and consistency
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review new or modified API features for completeness and consistency
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | review-api |
| description | Review new or modified API features for completeness and consistency |
| user-invocable | true |
Review new or modified API features for completeness and consistency.
Authorization: All API endpoints use authorize_workflow! or authorize_resource! macros
src/server/http_server.rs for the endpoint handlerError Responses: Proper HTTP status codes are returned
SQLite indexes: Ensure changes to SQLite tables are paired with appropriate indexes. If the branch changes any SQLite tables, check what indexes exist for those tables. Report to the developer whether you would recommend any changes. Be careful recommending indexes that would consume lots of memory with minimal user value.
Endpoint Documentation: All new/modified endpoints are documented
npx @redocly/cli lint api/openapi.yamlSchema Syntax (OpenAPI 3.1):
type: [integer, "null"] not nullable: true$ref: without schema: wrappererror: {} not error: "{}"Workflow ID Prompting: Commands use Option<i64> for workflow_id
select_workflow_interactively() when Nonejobs.rs or ro_crate.rsPagination: List commands that fetch from server use pagination
paginate_* functions or pagination iteratorsJSON Output: Commands support -f json output format
print_if_json() or print_wrapped_if_json()Logging: Check that log messages that include database record IDs use a format like
info!("Created workflow workflow_id={}", workflow_id); so that parsing scripts pick them up.
cargo clippy, npx @redocly/cli lint api/openapi.yaml/review-api
# Or with context:
Review the RO-Crate feature for API completeness