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.
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/02_Architect_APIDesign/SKILL.mdgit clone --depth 1 https://github.com/boshi-xixixi/TraeSkillWrote 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.
[](https://agentmods.dev/skills/boshi-xixixi/traeskill/02_architect_apidesign)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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-enhancedtool (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 resourcesPUT: Replace entire resource (idempotent)PATCH: Partial resource updatesDELETE: 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
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.
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.
- 8d ago First seen · 533 lines · 77 tokens per session scan A 19b741447770
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.
api-design-principles compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-design-principlesboshi-xixixi/TraeSkill | Skill | 288 | 9d ago | MIT | A | 77 | Claude Code, Codex |
| old-coder-apiAmazingAng/old-coder | Skill | 769 | 6d ago | MIT | A | 106 | Claude Code, Codex |
| mcp-builderRune-kit/rune | Skill | 96 | 2d ago | MIT | A | 52 | Claude Code |
| create-pubsub-dotnetdiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 79 | Claude Code |
| azure-cognitive-searchMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 123 | Claude Code |
| azure-logic-appsMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 121 | Claude Code |
| azure-event-gridMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 113 | Claude Code |