做什么
主 REST 和 GraphQL API 设计原理,用于构建取悦开发者的直观,可扩展,可维护的 API
技能库 智客分类:设计创意 api-design-principles
主 REST 和 GraphQL API 设计原理,用于构建直观,可伸缩,可维护的API,使开发者高兴. 在设计出新的API,审查API规格,或建立API设计标准时使用.
官方网址:skills.sh
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
主 REST 和 GraphQL API 设计原理,用于构建取悦开发者的直观,可扩展,可维护的 API
这个技能
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:API Design Principles、When to Use This Skill、Core Concepts、1. RESTful Design Principles、2. GraphQL Design Principles、3. API Versioning Strategies。 其中含规范建议的小节:输入输出示例。
文件分析:除 SKILL.md 外,正文引用了 references/details.md,属于带资源的技能包,这些文件按需再读。
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
API Design PrinciplesWhen to Use This SkillCore Concepts1. RESTful Design Principles2. GraphQL Design Principles3. API Versioning StrategiesDetailed patterns and worked examplesBest PracticesREST APIsGraphQL APIsCommon Pitfalls
来源分类:skills.sh agent-skill
nameapi-design-principlesdescriptionreferences/details.md以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。
具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「api-design-principles」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-242f155f9859274f-Api-Design-Principles.html 请存为 .cursor/skills/api-design-principles/SKILL.md 或 .claude/skills/api-design-principles/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。 该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/wshobson/agents 取完整目录,不要只建一个 SKILL.md。
需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。
npx skills add 'https://github.com/wshobson/agents' --list
npx skills add 'https://github.com/wshobson/agents' --skill 'api-design-principles'
CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.
Resource-Oriented Architecture
HTTP Methods Semantics:
GET: Retrieve resources (idempotent, safe)POST: Create new resourcesPUT: Replace entire resource (idempotent)PATCH: Partial resource updatesDELETE: Remove resources (idempotent)Schema-First Development
Query Structure:
URL Versioning:
/api/v1/users
/api/v2/users
Header Versioning:
Accept: application/vnd.api+json; version=1
Query Parameter Versioning:
/api/users?version=1
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
/users, not /user)@deprecated directive for gradual migration设计创意
设计和实施自动化工作流程,以节省时间和规模化操作作为独家. 用于识别重复任务实现自动化,构建跨工具的工作流程,设置触发器和行动,或优化现有自动化. 包括自动化机会识别,工作流程设计,工具选择(Zapier,Make,n8n),测试,和维护. 触发"自动","自动","工作流程自动…
设计创意
UI/UX设计智能及建筑抛光接口实施指导. 当用户要求UI设计,UX流量,信息架构,视觉风格方向,设计系统/托盘,组件规格,副本/显微镜,可访问性,或生成/critique/refine前端UI(HTML/CSS/JS,React,Next.js,Vue,Svelte,Tailw…
设计创意
创建美丽现代UI的专家前端设计指南. 在构建起落架页面,仪表板,或任何用户界面时使用.
设计创意
设计和输出 n8n 工作流程 JSON 有强力触发器, idempotency, 错误处理, 记录, 重试, 以及 人入"一站"审查队列. 当您需要可审计的自动化时使用.