add-api-route

add-api-route is a skill for Claude Code from suxrobGM/jobpilot. It costs 46 tokens per session (321 once invoked), scanned A, original, MIT.

A guide for adding API routes to JobPilot, including the request and response definitions, controller, service, and optional web hook. An API route is a program entry point that accepts a request and returns a response.

In plain words
What is it for?
Use it when adding an endpoint, creating a new API module, defining its data contracts, or connecting it to the web application.
Why use it?
It helps keep new endpoints consistent with the project's existing validation, error handling, rate limits, and code structure.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when adding an endpoint, creating a new API module, defining its data contracts, or connecting it to the web application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/suxrobgm/jobpilot/add-api-route
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 suxrobGM/jobpilot --skill add-api-route
Clone the repo
git clone --depth 1 https://github.com/suxrobGM/jobpilot

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 add-api-route

README.md
[![agentmods](https://agentmods.dev/badge/skills/suxrobgm/jobpilot/add-api-route.svg)](https://agentmods.dev/skills/suxrobgm/jobpilot/add-api-route)
Your own site
<a href="https://agentmods.dev/skills/suxrobgm/jobpilot/add-api-route"><img src="https://agentmods.dev/badge/skills/suxrobgm/jobpilot/add-api-route.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 321 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00046 $0.00321
Opus 5 $0.00023 $0.00161
Sonnet 5 $0.00009 $0.00064
Haiku 4.5 $0.00005 $0.00032

Measured 8d ago against content hash 24a5bb011596, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

add-api-route 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.

.claude/skills/add-api-route/SKILL.md · 23 lines

What it actually says

Add an API route

Follow the conventions in .claude/rules/api.md (response schemas, z.date(), global error envelope). Steps:

  1. Request schema: reuse or add in packages/contracts (or the module's <name>.schema.ts). Uuid path ids via idParam.
  2. Response schema: model the service's return exactly in <name>.schema.ts, or use a shared envelope from @/types/response. Elysia strips fields not in the schema.
  3. Route: in modules/<name>/<name>.controller.ts, add body/query/params as needed, the response success schema, a detail summary, and a rateLimit(policy) beforeHandle where the endpoint warrants one. No per-route error responses - they're declared globally.
  4. Logic in <name>.service.ts (tsyringe @singleton; injected classes stay value imports). New module: mirror an existing one and mount its controller in app.ts.
  5. Web side (if needed): Eden Treaty picks up types automatically; add query/mutation hooks under apps/web/src/api/.
  6. Invoke the verify skill.
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. 8d ago First seen · 23 lines · 46 tokens per session scan A 24a5bb011596

Subscribe to this mod's changes

add-api-route is a skill published in the GitHub repository suxrobGM/jobpilot (65 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 321 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

ash-framework

Ash Framework — resources, actions, policies, aggregates, calculations, AshPhoenix.Form, LiveView, migrations. Use when generating resources via mix ash.codegen, editing changes, checks, types, validations, or domain code interfaces.

oliver-kriska/claude-elixir-phoenix · 48 tokens

deploy

Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays. Use when configuring Fly.io, Docker, CI/CD, health checks, or production migrations.

oliver-kriska/claude-elixir-phoenix · 46 tokens

liveview-patterns

Build LiveView: async data (assignasync), PubSub (check connected?), phx-change events, form components/modals/uploads, streams for lists, livepatch. Use when handling interactions, debugging events, or tracking Presence.

oliver-kriska/claude-elixir-phoenix · 51 tokens

tidewave-integration

Tidewave MCP runtime tools — debugging, smoke testing, live state inspection, SQL queries, hex docs. Use when evaluating code in a running Phoenix app.

oliver-kriska/claude-elixir-phoenix · 38 tokens

oban

Oban job processing — workers, perform/1 (OSS) and process/1 (Pro), queues, cron, retries, unique jobs, idempotency, Oban Pro (Workflow, Batch, Chunk, Smart Engine), Testing. Use when writing Oban workers, queue config, or debugging jobs.

oliver-kriska/claude-elixir-phoenix · 64 tokens

perf

Analyze Elixir/Phoenix performance — N+1 queries, assign bloat, ecto optimization, genserver bottlenecks. Use when slowness, timeouts, or high memory reported.

oliver-kriska/claude-elixir-phoenix · 43 tokens