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.
npx skills add asgarovf/locusai --skill api-designgit clone --depth 1 https://github.com/asgarovf/locusaiWrote 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/asgarovf/locusai/api-design)<a href="https://agentmods.dev/skills/asgarovf/locusai/api-design"><img src="https://agentmods.dev/badge/skills/asgarovf/locusai/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.
<a href="https://agentmods.dev/skills/asgarovf/locusai/api-design"><img src="https://agentmods.dev/badge/skills/asgarovf/locusai/api-design.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.00037 | $0.01303 |
| Opus 5.5 | $0.00015 | $0.00521 |
| Sonnet 5.5 | $0.00007 | $0.00261 |
| Haiku 4.5 | $0.00004 | $0.00130 |
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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Design
When to use this skill
- Designing new API endpoints
- Adding routes to an existing API
- Improving API error handling or validation
- Documenting APIs (OpenAPI/Swagger)
- Reviewing API design for best practices
RESTful conventions
URL structure
GET /users → List users
POST /users → Create user
GET /users/:id → Get single user
PUT /users/:id → Replace user
PATCH /users/:id → Partial update
DELETE /users/:id → Delete user
GET /users/:id/orders → List user's orders (nested resource)
POST /users/:id/orders → Create order for user
Naming rules
- Plural nouns for resources:
/usersnot/user - Kebab-case for multi-word:
/order-itemsnot/orderItems - No verbs in URLs:
POST /usersnotPOST /createUser - Nest logically: Max 2 levels deep, then use query params
HTTP status codes
| Code | When to use |
|---|---|
200 |
Success (GET, PUT, PATCH) |
201 |
Created (POST) |
204 |
No content (DELETE) |
400 |
Bad request (validation error) |
401 |
Unauthorized (no/invalid auth) |
403 |
Forbidden (insufficient permissions) |
404 |
Not found |
409 |
Conflict (duplicate, state conflict) |
422 |
Unprocessable entity (semantic error) |
429 |
Too many requests (rate limit) |
500 |
Internal server error |
Request/Response patterns
Consistent response envelope
// Success
{
"data": { "id": 1, "name": "Alice" },
"meta": { "requestId": "abc-123" }
}
// List with pagination
{
"data": [{ "id": 1 }, { "id": 2 }],
"meta": {
"total": 45,
"page": 1,
"perPage": 20,
"totalPages": 3
}
}
// Error
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{ "field": "email", "message": "Must be a valid email" }
]
}
}
Pagination
GET /users?page=2&per_page=20 # Offset-based
GET /users?cursor=eyJpZCI6MTB9&limit=20 # Cursor-based (preferred for large datasets)
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.
- 3mo ago First seen · 195 lines · 37 tokens per session scan A 89dac9d16741
api-design is a skill published in the GitHub repository asgarovf/locusai (23 stars, last pushed 8mo ago), licensed MIT. It adds 37 tokens to every session and 1,303 once invoked, about $0.0001 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-08-30.
api-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-designasgarovf/locusai | Skill | 23 | 8mo ago | MIT | A | 37 | Claude Code |
| api-designchandrudp29/skillhub | Skill | 14 | 5mo ago | MIT | A | 38 | Claude Code, Codex |
| api-testinglaragentic/agents | Skill | 14 | 8mo ago | none | A | 14 | Claude Code, Codex |
| api-designericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 105 | Claude Code, Codex |
| api-endpoint-builder-v2diegosouzapw/awesome-omni-skills | Skill | 181 | 3d ago | MIT | A | 66 | Claude Code, Codex |
| lapLap-Platform/LAP | Skill | 347 | 1mo ago | Apache-2.0 | A | 89 | Claude Code |
| lapLap-Platform/LAP | Skill | 347 | 1mo ago | Apache-2.0 | A | 89 | Claude Code |