Api Interface Design

🌐Community
by tencentblueking · vlatest · Repository

Helps with API, design as part of building frontend UIs and user experiences workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add api-interface-design npx -- -y @trustedskills/api-interface-design
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "api-interface-design": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/api-interface-design"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill assists with designing API interfaces, specifically within the context of building frontend user interfaces and related workflows. It provides guidance on path formats, return structures (including Result<T> for success/failure and Page<T> for pagination), error code conventions (e.g., 2100013 for invalid parameters), and HTTP status code usage. The skill is intended to help define Resource classes and data structures for API requests and responses.

When to use it

  • Designing RESTful API interfaces.
  • Defining Resource classes within an API structure.
  • Understanding and adhering to the specified error code format (21(Platform)01(Service)001(Business Code)).
  • Designing request/response data structures for APIs.

Key capabilities

  • Provides path formatting guidelines: /scope/{resource}/{resourceId}/{subResource} with prefixes like /user/, /service/, /build/, and /open/.
  • Defines standardized return formats using Result<T> (status, message, data) and Page<T> (count, page, pageSize, totalPages, records).
  • Specifies an error code format: 21(Platform)01(Service)001(Business Code).
  • Outlines HTTP status code usage guidelines.

Example prompts

  • "Show me the recommended path format for a user pipeline resource."
  • "What is the structure of a Result<T> object?"
  • "Explain the error code format and give an example."

Tips & gotchas

  • This skill focuses on API design, not implementation. For backend microservice development, use the 01-backend-microservice-development skill instead.
  • Parameter validation rules should be handled by the common-technical-practices skill.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
tencentblueking
Installs
37

🌐 Community

Passed automated security scans.