TraeSkill: Skill for Claude Code

.trae/Skills/02_Architect_APIDesign/SKILL.md

api-design-principles is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 77 tokens per session (3,440 once invoked), scanned A, a copy of api-design-principles, MIT.

A set of principles for designing REST and GraphQL APIs. An API is the defined way that software exposes data or actions for other software to use.

In plain words
What is it for?
Use it to design or review a new API, choose between REST and GraphQL, set team conventions, improve an existing interface, plan a migration, or write developer documentation.
Why use it?
It helps make endpoints, resources, parameters, and responses predictable and maintainable for web apps, mobile clients, and integrations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code and Codex how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/02_Architect_APIDesign/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-design-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_architect_apidesign/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/02_architect_apidesign)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/02_architect_apidesign"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_architect_apidesign/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-design-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/02_architect_apidesign"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_architect_apidesign.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 84% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.03440
Opus 5.5 $0.00031 $0.01376
Sonnet 5.5 $0.00015 $0.00688
Haiku 4.5 $0.00008 $0.00344

Measured 8d ago against content hash 19b741447770, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-design-principles scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

84% identical to api-design-principles — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.trae/Skills/02_Architect_APIDesign/SKILL.md · 533 lines

How it starts

The opening of the file, as written. The whole thing — 533 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Design Principles

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.

When to Use This Skill

  • Designing new REST or GraphQL APIs
  • Refactoring existing APIs for better usability
  • Establishing API design standards for your team
  • Reviewing API specifications before implementation
  • Migrating between API paradigms (REST to GraphQL, etc.)
  • Creating developer-friendly API documentation
  • Optimizing APIs for specific use cases (mobile, third-party integrations)

Interactive Design Process

  • Clarify Requirements: Before finalizing a design, ensure you understand the domain and constraints.
  • Feedback Loop: Use the mcp-feedback-enhanced tool (e.g., ask_followup_question) if available to ask clarifying questions or present design options for review. If not available, use standard chat.

Core Concepts

1. RESTful Design Principles

Resource-Oriented Architecture

  • Resources are nouns (users, orders, products), not verbs
  • Use HTTP methods for actions (GET, POST, PUT, PATCH, DELETE)
  • URLs represent resource hierarchies
  • Consistent naming conventions

HTTP Methods Semantics:

  • GET: Retrieve resources (idempotent, safe)
  • POST: Create new resources
  • PUT: Replace entire resource (idempotent)
  • PATCH: Partial resource updates
  • DELETE: Remove resources (idempotent)

2. GraphQL Design Principles

Schema-First Development

  • Types define your domain model
  • Queries for reading data
  • Mutations for modifying data
  • Subscriptions for real-time updates

Query Structure:

  • Clients request exactly what they need
  • Single endpoint, multiple operations
  • Strongly typed schema
  • Introspection built-in

3. API Versioning Strategies

URL Versioning:

/api/v1/users
/api/v2/users

Header Versioning:

Accept: application/vnd.api+json; version=1

Query Parameter Versioning:

/api/users?version=1

Read the full file on GitHub · 533 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 533 lines · 77 tokens per session scan A 19b741447770

Subscribe to this mod's changes

api-design-principles is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 77 tokens to every session and 3,440 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 84% identical to api-design-principles, differing in 13 lines, and is treated as a copy.

Related

api-design-principles compared with skills from other repositories

api-design-principles next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-design-principlesboshi-xixixi/TraeSkillSkill2889d agoMITA77Claude Code, Codex
old-coder-apiAmazingAng/old-coderSkill7696d agoMITA106Claude Code, Codex
mcp-builderRune-kit/runeSkill962d agoMITA52Claude Code
create-pubsub-dotnetdiagrid-labs/dapr-skillsSkill135d agoMITA79Claude Code
azure-cognitive-searchMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A123Claude Code
azure-logic-appsMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A121Claude Code
azure-event-gridMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A113Claude Code