api-and-interface-design-lr-l6s0

Skill for API and interface design, intended for AI Agents involved in API specification, parameter design, interface documentation and interaction contracts; helps efficiently carry out API and interface design tasks.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "api-and-interface-design-lr-l6s0" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3b017da50af56d344d99045e3aefa86ea62387ffa87024c2f5907766857b08f3. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/api-and-interface-design-lr-l6s0 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Skill for API and interface design, intended for AI Agents involved in API specification, parameter design, interface documentation and interaction contracts; helps efficiently carry out API and interface design tasks.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Design stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, GraphQL schemas, module boundaries, component props, and any surface where one piece of code talks to another.
Audience
Designing new API endpoints Defining module boundaries or contracts between teams Creating component prop interfaces Establishing database schema that informs API shape Changing existing public interfaces
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter

name: APIAndInterface设计
slug: api-and-interface-design
version: 1.0.0
displayName: APIAndInterface设计
description: >
  APIAndInterface设计专用技能,帮助AI Agent高效完成相关任务。
summary: "APIAndInterface设计专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

API and Interface Design

Overview

Design stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, GraphQL schemas, module boundaries, component props, and any surface where one piece of code talks to another.

When to Use

  • Designing new API endpoints
  • Defining module boundaries or contracts between teams
  • Creating component prop interfaces
  • Establishing database schema that informs API shape
  • Changing existing public interfaces

Core Principles

Hyrum's Law

With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody, regardless of what you promise in the contract.

This means: every public behavior — including undocumented quirks, error message text, timing, and ordering — becomes a de facto contract once users depend on it. Design implications:

  • Be intentional about what you expose. Every observable behavior is a potential commitment.
  • Don't leak implementation details. If users can observe it, they will depend on it.
  • Plan for deprecation at design time. See deprecation-and-migration for how to safely remove things users depend on.
  • Tests are not enough. Even with perfect contract tests, Hyrum's Law means "safe" changes can break real users who depend on undocumented behavior.

The One-Version Rule

Avoid forcing consumers to choose between multiple versions of the same dependency or API. Diamond dependency problems arise when different consumers need different versions of the same thing. Design for a world where only one version exists at a time — extend rather than fork.

1. Contract First

Define the interface before implementing it. The contract is the spec — implementation follows.


// Define the contract first
interface TaskAPI {
  // Creates a task and returns the created task with server-generated fields
  createTask(input: Create

(为兼容发布已截断)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 专注于 API 和 Interface 设计,具有明确的实用价值
  • 涵盖核心设计原则如 Hyrum's Law 和 The One-Version Rule
  • 适用于广泛开发者群体
Trigger Precision85/100

Highlights

  • description 字段内容完整且位置正确
  • 触发描述清晰明确
Structure and Standards70/100

Areas to improve

  • 缺少完整示例 Reported severity: Minor

    文档结构基本完整,但缺少完整的端到端示例和明确的出口条件

    Recommendation: 建议补充完整的端到端示例和明确的出口条件,提升实用性

Highlights

  • 文档结构清晰,包含多个章节
  • frontmatter 完整
Execution Reliability60/100

Areas to improve

  • 内容被截断导致不完整 Reported severity: Major

    文档内容在代码示例处被截断,影响完整性

    Recommendation: 请补全被截断的内容,确保文档完整性

Evidence Verifiability (mean of the first four)73/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.