api-design

api-design is a skill for Claude Code from Tasachii/Tasachii-Tools. It costs 93 tokens per session (899 once invoked), scanned A, original, MIT.

A skill for designing or reviewing web APIs, which are interfaces that let software exchange data over the web. It checks routes, naming, status codes, pagination, filtering, idempotency, and consistent error responses against the existing codebase.

In plain words
What is it for?
Use it to plan endpoints, review an existing API, choose response codes and error formats, and design pagination or filtering.
Why use it?
It removes ambiguity and inconsistency that can make an API difficult for clients and maintainers to use. It also prioritizes matching the project's existing conventions instead of adding a separate style.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the craft-stack plugin — 3 skills shipped together

Good fit Use it to plan endpoints, review an existing API, choose response codes and error formats, and design pagination or filtering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tasachii/tasachii-tools/api-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Tasachii/Tasachii-Tools --skill api-design
Clone the repo
git clone --depth 1 https://github.com/Tasachii/Tasachii-Tools

Made for: Claude Code.

Or install craft-stack, the plugin that ships this one along with the rest of its 3 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tasachii/tasachii-tools/api-design/github.svg)](https://agentmods.dev/skills/tasachii/tasachii-tools/api-design)
Your own site
<a href="https://agentmods.dev/skills/tasachii/tasachii-tools/api-design"><img src="https://agentmods.dev/badge/skills/tasachii/tasachii-tools/api-design/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tasachii/tasachii-tools/api-design"><img src="https://agentmods.dev/badge/skills/tasachii/tasachii-tools/api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 899 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 original No closer match found 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.00093 $0.00899
Opus 5.5 $0.00037 $0.00360
Sonnet 5.5 $0.00019 $0.00180
Haiku 4.5 $0.00009 $0.00090

Measured 2mo ago against content hash 4736263f4722, 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 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 2mo 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.

plugins/craft-stack/skills/api-design/SKILL.md · 36 lines

How it starts

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

api-design — API ที่ดีคือ API ที่เดาได้ โดยไม่ต้องเปิด docs

Phase 0 — Convention เดิมมาก่อนตำรา

ถ้าโปรเจกต์มี API อยู่แล้ว: อ่าน routes จริงทั้งหมดก่อน (routes/, controllers/, app router) แล้วสกัด convention ที่ใช้อยู่ — แอปที่ผสมสอง convention แย่กว่าแอปที่ใช้ convention เชยๆ แต่สม่ำเสมอทั้งแอป ของใหม่ต้องหน้าตาเหมือนของเก่า เว้นแต่ user สั่งยกเครื่อง

Phase 1 — Checklist ออกแบบ/รีวิว

เรื่อง กติกา
Naming คำนามพหูพจน์ ไม่ใช่กริยา — POST /orders ไม่ใช่ /createOrder; nested ไม่เกิน 2 ชั้น (/users/:id/orders พอ ลึกกว่านั้นใช้ query/filter)
Status codes 201+Location เมื่อสร้าง, 204 เมื่อไม่มี body, 400 รูปแบบผิด vs 422 ค่าไม่ผ่านกติกา, 401 ยังไม่ล็อกอิน vs 403 ล็อกอินแล้วแต่ไม่มีสิทธิ์, 409 ชนกับ state ปัจจุบัน — ห้ามตอบ 200 พร้อม {"error": ...}
Error shape โครงเดียวทั้งแอป: {"error": {"code": "...", "message": "...", "details": [...]}} — code เป็น machine-readable สำหรับ client แยก case, message สำหรับคน
Pagination บังคับบน collection ตั้งแต่วันแรก (เติมทีหลัง = breaking change) — cursor-based ถ้าข้อมูลโต/insert ถี่, page-based พอถ้าเล็กและมี UI แบ่งหน้า
Filtering/sorting query params ตั้งชื่อสม่ำเสมอ (?status=paid&sort=-created_at) — อย่า invent DSL ใหม่ถ้าไม่จำเป็น
Idempotency PUT/DELETE ต้อง idempotent โดยความหมาย; POST ที่ retry แล้วอันตราย (จ่ายเงิน, สั่งซื้อ) รองรับ Idempotency-Key
ค่าและเวลา เวลา = ISO 8601 UTC เสมอ (2026-07-08T14:00:00Z); เงิน = integer หน่วยย่อย (สตางค์) ห้าม float
Versioning ยังไม่มีผู้ใช้ภายนอก → ยังไม่ต้องมี /v1 ก็ได้ แต่ตัดสินใจแล้วบันทึกไว้; มีเมื่อไหร่ breaking change ต้องออก version ใหม่ ไม่แก้ของเดิมเงียบๆ

Phase 2 — Output

  • ตาราง endpoint: method · path · req body · res body · error codes ที่เป็นไปได้
  • ตัวอย่าง JSON จริง ของ req/res อย่างน้อย endpoint หลัก — shape จริงมีค่ากว่าคำอธิบาย
  • โหมดรีวิว: ชี้จุดที่ขัด convention ของ codebase เองเป็น file:line เรียงตามผลกระทบ (breaking > confusing > cosmetic)

Read the full file on GitHub · 36 lines

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. 2mo ago First seen · 36 lines · 93 tokens per session scan A 4736263f4722

Subscribe to this mod's changes

api-design is a skill published in the GitHub repository Tasachii/Tasachii-Tools (2 stars, last pushed 2mo ago), licensed MIT. It adds 93 tokens to every session and 899 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

api-design compared with skills from other repositories

api-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-designTasachii/Tasachii-ToolsSkill22mo agoMITA93Claude Code
mem0-oss-to-platformmem0ai/mem0Skill70k7d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.3kyesterdayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill7072d agoMITA105Claude Code, Codex