api-conventions

api-conventions is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 24 tokens per session (1,127 once invoked), scanned A, original, MIT.

A reference for designing the SocialApp HTTP API, including URL patterns, authentication, error responses, naming, and request and response formats.

In plain words
What is it for?
Use it when adding or changing REST endpoints, handlers, authentication checks, or API error responses.
Why use it?
It keeps different API endpoints consistent, so frontend and backend code can agree on how requests, permissions, and errors work.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when adding or changing REST endpoints, handlers, authentication checks, or API error responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/random6913/claude-code-superkit/api-conventions
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 RaNDoM6913/claude-code-superkit --skill api-conventions
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

Made for: Claude Code.

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-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/api-conventions"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/api-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,127 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.00024 $0.01127
Opus 5.5 $0.00010 $0.00451
Sonnet 5.5 $0.00005 $0.00225
Haiku 4.5 $0.00002 $0.00113

Measured 2mo ago against content hash 2297d55c1b35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-conventions 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.

packages/showcase/.claude/skills/api-conventions/SKILL.md · 144 lines

How it starts

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

API Conventions

Current State

  • User-facing handlers: !ls backend/internal/transport/http/handlers/*_handler.go 2>/dev/null | wc -l | tr -d ' '
  • Active routes: !grep -c 'r\.\(Get\|Post\|Put\|Delete\|Patch\)(' backend/internal/app/apiapp/routes.go 2>/dev/null || echo 0
  • Recent handler changes: !git log --oneline -3 -- backend/internal/transport/http/handlers/

REST Patterns

  • Base URL: http://localhost:8080
  • User API: /v1/*
  • Admin API: /admin/*
  • Bot API: /admin/bot/*
  • Content-Type: application/json
  • Auth: Authorization: Bearer <jwt>

Error Response Format

{
  "code": "not_found",
  "message": "User not found"
}

Standard error codes:

  • validation_error — 400
  • unauthorized — 401
  • forbidden — 403
  • not_found — 404
  • conflict — 409
  • rate_limited — 429 (with retry_after_sec, cooldown_until)
  • internal_error — 500

Handler Pattern

func (h *MyHandler) GetItem(w http.ResponseWriter, r *http.Request) {
    // 1. Extract auth
    identity, ok := authsvc.IdentityFromContext(r.Context())
    if !ok {
        httperrors.Write(w, http.StatusUnauthorized, httperrors.APIError{
            Code: "unauthorized", Message: "no identity",
        })
        return
    }

    // 2. Extract params
    id := chi.URLParam(r, "id")

    // 3. Call service
    item, err := h.service.GetItem(r.Context(), id)
    if err != nil {
        switch {
        case errors.Is(err, svc.ErrNotFound):
            httperrors.Write(w, http.StatusNotFound, httperrors.APIError{
                Code: "not_found", Message: "item not found",
            })
        case errors.Is(err, svc.ErrValidation):
            httperrors.Write(w, http.StatusBadRequest, httperrors.APIError{
                Code: "validation_error", Message: err.Error(),
            })
        default:
            h.log.Error("GetItem", zap.Error(err))
            httperrors.Write(w, http.StatusInternalServerError, httperrors.APIError{
                Code: "internal_error", Message: "internal error",
            })
        }
        return
    }

    // 4. Respond
    httperrors.Write(w, http.StatusOK, item)
}

Read the full file on GitHub · 144 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 · 144 lines · 24 tokens per session scan A 2297d55c1b35

Subscribe to this mod's changes

api-conventions is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,127 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-09-03.

Related

api-conventions compared with skills from other repositories

api-conventions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-conventionsRaNDoM6913/claude-code-superkitSkill3yesterdayMITA24Claude Code
backend-workpmikutel/directed-memory-bankSkill64mo agoMITA25Claude Code, Codex
Supabase Expertyuchenbigpen1/normiesSkill48mo agoApache-2.0A47Claude Code, Codex
n8n-code-javascriptyuchenbigpen1/normiesSkill48mo agoApache-2.0A63Claude Code, Codex
stripe-projectsNousResearch/hermes-agentSkill267ktodayMITA15Claude Code, Codex
gemini-api-agent-platformdavila7/claude-code-templatesSkill35ktodayMITA61Claude Code, Codex
microservices-patternswshobson/agentsSkill43kyesterdayMITA38Claude Code