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 softspark/ai-toolkit --skill api-patternsgit clone --depth 1 https://github.com/softspark/ai-toolkitWrote 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/softspark/ai-toolkit/api-patterns)<a href="https://agentmods.dev/skills/softspark/ai-toolkit/api-patterns"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/api-patterns/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/softspark/ai-toolkit/api-patterns"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/api-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Tool Misuse · line 24 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00052 | $0.03396 |
| Opus 5.5 | $0.00021 | $0.01358 |
| Sonnet 5.5 | $0.00010 | $0.00679 |
| Haiku 4.5 | $0.00005 | $0.00340 |
Grade A, and why
api-patterns 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.
How it starts
The opening of the file, as written. The whole thing — 437 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Patterns Skill
REST API Design
Resource Naming
# Collection
GET /api/v1/documents # List documents
POST /api/v1/documents # Create document
# Single resource
GET /api/v1/documents/{id} # Get document
PUT /api/v1/documents/{id} # Replace document
PATCH /api/v1/documents/{id} # Update document
DELETE /api/v1/documents/{id} # Delete document
# Nested resources
GET /api/v1/users/{id}/documents # User's documents
HTTP Status Codes
| Code | Meaning | When to Use |
|---|---|---|
| 200 | OK | Successful GET/PUT/PATCH |
| 201 | Created | Successful POST |
| 204 | No Content | Successful DELETE |
| 400 | Bad Request | Malformed request or an established domain refusal |
| 401 | Unauthorized | Missing/invalid auth |
| 403 | Forbidden | No permission |
| 404 | Not Found | Resource doesn't exist |
| 405 | Method Not Allowed | Unsupported method; preserve Allow |
| 409 | Conflict | Duplicate resource or current-state conflict |
| 412 | Precondition Failed | Supplied concurrency version is stale |
| 422 | Unprocessable | Validation error |
| 428 | Precondition Required | Required concurrency precondition is missing |
| 429 | Too Many Requests | Rate limited |
| 500 | Internal Error | Server error |
| 503 | Service Unavailable | Dependency temporarily unavailable |
Response Format
Follow the host's existing resource and collection contract. This envelope is illustrative; do not impose it on a framework that already defines another shape.
{
"data": {
"id": "123",
"type": "document",
"attributes": {
"title": "Example",
"content": "..."
}
},
"meta": {
"total": 100,
"page": 1,
"per_page": 10
}
}
Error Response
Use the established error representation, which may be problem details, framework validation errors, or a domain-specific envelope like this example:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{"field": "title", "message": "Title is required"},
{"field": "limit", "message": "Must be between 1 and 100"}
]
}
}
What ships with it
1 file 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.
- 2mo ago Changed · +26 lines · +4 tokens per session 83362ca5b0ec
- 3mo ago First seen · 411 lines · 48 tokens per session scan A f28df25626ea
api-patterns is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 12d ago), licensed Apache-2.0. It adds 52 tokens to every session and 3,396 once invoked, about $0.0002 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-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-patternssoftspark/ai-toolkit | Skill | 180 | 12d ago | Apache-2.0 | A | 52 | Claude Code |
| plugin-systemellmos-ai/skills | Skill | 10 | yesterday | MIT | A | 99 | Claude Code, Codex |
| api-designjohnqtcg/awesome-skills | Skill | 31 | 1mo ago | MIT | A | 123 | Claude Code, Codex |
| kafka-event-driven-designjohnqtcg/awesome-skills | Skill | 31 | 1mo ago | MIT | A | 191 | Claude Code, Codex |
| thirdparty-api-integration-testjohnqtcg/awesome-skills | Skill | 31 | 1mo ago | MIT | A | 47 | Claude Code |
| message-protocolkhalilbenaz/claude-skills-collection | Skill | 27 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| tool-calling-architectkhalilbenaz/claude-skills-collection | Skill | 27 | 3mo ago | MIT | A | 96 | Claude Code, Codex |