api-designer
设计可靠的 REST 和 GraphQL API
API 团队需要一致的端点、身份验证和文档。此技能指导 REST、GraphQL、OpenAPI、版本控制和安全设计决策。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "api-designer" from https://skillstore.io/skills/autumnsgrove-api-designer.md and its manifest at https://skillstore.io/api/skills/autumnsgrove-api-designer/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“api-designer”。 设计一个包含用户、文章、评论和标签的博客 API。
预期结果:
- 用户、文章、评论和标签的资源映射。
- 包含方法、状态码、分页和筛选的端点计划。
- 针对公开和私有操作的身份验证与授权建议。
正在使用“api-designer”。 为一个将重命名客户字段的 API 规划版本控制。
预期结果:
- 建议发布新的主版本,因为客户端会看到破坏性的字段变更。
- 包含警告标头、迁移指南和平行支持期的弃用时间线。
- 面向 SDK、文档、监控和客户端沟通的兼容性清单。
正在使用“api-designer”。 审查一个在查询参数中暴露 API 密钥的 API。
预期结果:
- 关于日志记录和浏览器历史暴露的安全顾虑。
- 建议使用授权标头和限定作用域的密钥。
- 更新关于轮换、过期和使用日志记录的文档。
安全审计
安全All 146 static findings are false positives caused by Markdown syntax, example URLs and credentials, validation text, and intended local file output. The Python helper does not spawn commands, read environment variables, access certificate files, or make network requests. No prompt injection, exfiltration intent, or other semantic security issue was found.
风险因素
⚙️ 外部命令 (50)
🌐 网络访问 (37)
🔑 环境变量 (4)
📁 文件系统访问 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/autumnsgrove-api-designer/audits/14?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/autumnsgrove-api-designer?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/autumnsgrove-api-designer?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/autumnsgrove-api-designer/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/autumnsgrove-api-designer.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
AutumnsGrove. (2026). api-designer security audit report (audit version 14) [Author version unspecified]. Skillstore. https://skillstore.io/skills/autumnsgrove-api-designer/audits/14BibTeX 引用
@techreport{autumnsgrove-autumnsgrove-api-designer-2026,
author = {AutumnsGrove},
title = {api-designer security audit report (audit version 14)},
institution = {Skillstore},
year = {2026},
number = {14},
url = {https://skillstore.io/skills/autumnsgrove-api-designer/audits/14},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "api-designer security audit report (audit version 14)"
version: "unspecified"
type: report
authors:
- name: "AutumnsGrove"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/autumnsgrove-api-designer/audits/14"
identifiers:
- type: other
value: "skillstore:autumnsgrove-api-designer:audit:14"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
设计新的服务契约
在开始实现之前,定义 REST 资源、载荷、状态码、分页和错误响应。
规划 API 版本控制和弃用
选择版本控制策略,记录破坏性变更,并为客户端团队准备迁移指导。
创建开发者文档
将端点决策转化为 OpenAPI 大纲、身份验证说明、示例和可读的参考文档。
试试这些提示
为 [product] 设计一个 REST API。包含核心资源、方法、状态码、分页和错误响应。
为 [service] 创建一个 OpenAPI 大纲。包含服务器、路径、模式、安全方案和示例响应。
为 [API] 推荐身份验证、授权、速率限制和版本控制。解释权衡和迁移风险。
审查此 API 契约的一致性、安全性、向后兼容性、错误处理和文档缺口:[details]。
最佳实践
- 在编写端点细节之前,先从资源、权限、数据所有权和错误行为开始。
- 保持 OpenAPI 示例、身份验证规则和版本控制说明与实现变更同步。
- 在公开发布前,与安全、平台和客户端团队一起审查生成的规范。
避免
- 不要将机密、令牌或 API 密钥放在 URL、日志或公开示例中。
- 不要为了增量可选字段或错误修复而对 API 进行版本控制。
- 不要发布未记录的状态码、不一致的错误或无边界的列表端点。
常见问题
此技能可以创建 OpenAPI 规范吗?
它支持 GraphQL 设计吗?
它可以选择身份验证策略吗?
它会替我实现 API 吗?
它可以验证每一条 OpenAPI 规则吗?
它对现有 API 有用吗?
开发者详情
作者
AutumnsGrove许可证
MIT
Skillstore 修订
r3
版本提示
作者未声明版本。
引用
89edfdc710d0846129dcee6a929477b04f08052c
维护新鲜度
2026/7/24
使用量
34 次下载 · 267 次浏览