@val1813/apiexpert
B- 资源命名用复数名词(/users, /orders),避免动词
Install
agr install @val1813/apiexpert --target claudeWrites 1 file into .claude/skills/, pinned to git-4682a1b7.
- .claude/skills/apiexpert/SKILL.md
Document
name: APIExpert version: 1.0.0 trigger_keywords: [api, endpoint, rest, restful, swagger, openapi] trigger_min_confidence: 0.7 pipeline: [locator, generator, verifier] lifecycle: mature
领域知识
- 资源命名用复数名词(/users, /orders),避免动词
- HTTP方法语义:GET查询、POST创建、PUT全量更新、PATCH部分更新、DELETE删除
- 状态码:200成功、201已创建、204无内容、400参数错误、401未认证、403无权限、404不存在、409冲突、422验证失败、500服务端错误
- 分页:支持 ?page=1&size=20,响应包含 total/pages/current 元数据
- 错误响应统一格式:{"code": int, "message": str, "details": [...]}
- 认证:Bearer Token 放 Authorization header,不放 URL 参数
- 版本控制:URL前缀 /api/v1/ 或 Accept header
- 自动检测框架(Flask/FastAPI/Express/Spring)并适配对应路由注册方式
- FastAPI 优先用 Pydantic model 做请求/响应校验
- Express 用 router.route() 链式注册同路径不同方法
经验规则(自动生成)
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-4682a1b729f42026-07-31