new-service

new-service is a skill for Claude Code from gaia-react/gaia. It costs 112 tokens per session (744 once invoked), scanned A, original, MIT.

A scaffold for an API service, including request functions, Zod data-validation schemas, URL constants, and optional MSW test mocks.

In plain words
What is it for?
It is for defining CRUD-style endpoints and a typed data schema, optionally generating mock handlers, and then connecting the service to a page or hook.
Why use it?
It creates the basic pieces needed to call an API and check the shape of its data without assembling them manually.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit It is for defining CRUD-style endpoints and a typed data schema, optionally generating mock handlers, and then connecting the service to a page or hook.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaia-react/gaia/new-service
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 gaia-react/gaia --skill new-service
Clone the repo
git clone --depth 1 https://github.com/gaia-react/gaia

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 new-service

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaia-react/gaia/new-service"><img src="https://agentmods.dev/badge/skills/gaia-react/gaia/new-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 744 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

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 →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00112 $0.00744
Opus 5.5 $0.00045 $0.00298
Sonnet 5.5 $0.00022 $0.00149
Haiku 4.5 $0.00011 $0.00074

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

Security

Grade A, and why

new-service 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 1mo 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.

frontend/.claude/skills/new-service/SKILL.md · 32 lines

How it starts

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

new-service

Workflow

  1. Confirm: name (kebab), endpoints and schema (name:type pairs) as free text, then mocks as an AskUserQuestion: With mocks (Recommended) or Without mocks.
  2. Run from the repo root: ./.gaia/cli/gaia scaffold service <name> --endpoints "..." --schema "..." [--mocks]. It writes into the domain-layer folder under app/services/, found as the one folder there besides api/ (shipped as gaia/, often renamed to the company or API name). If it refuses because several folders qualify, ask which one with AskUserQuestion, one option per qualifying folder, and rerun with --layer <folder>. Flags and schema types: ./.gaia/cli/gaia scaffold service --help.
  3. Verify: pnpm typecheck clean; if --mocks, run a single MSW round-trip in a vitest test.
  4. Wire the service into the consuming route and page. Which data-loading variant applies is the rule in frontend/.claude/skills/react-code/SKILL.md; the new-route skill scaffolds a route bound to the service. Before wiring by hand, read how an existing service is wired and follow that pattern.

Query options

When @tanstack/react-query is installed and the service has get, the scaffold also writes queries.ts (query keys and queryOptions factories over the request functions). To add it to an existing service, run ./.gaia/cli/gaia scaffold service <name> --queries-only [--layer <folder>]; it writes only queries.ts and refuses when Query is not installed. Turn Query on with ./.gaia/cli/gaia init configure-data-layer --query true.

A new API domain

A backend with its own base URL or casing needs its own create() instance. Ask the backend's casing first with AskUserQuestion: camelCase (Recommended) or snake_case. Then create app/services/<new-layer>/api.ts modelled on the shipped layer's api.ts, passing create({isSnakeCaseEnabled: true}) for a snake_case backend, and scaffold with --layer <new-layer>; the scaffolder reads that flag to pick the mock data's key casing.

Read the full file on GitHub · 32 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. 1mo ago Changed · -2 lines 88260e51df8a
  2. 1mo ago Changed fdfc4c51b60c
  3. 1mo ago Changed · +1 tokens per session cd136e3ca795
  4. 1mo ago Changed · +2 lines · +6 tokens per session df5014768f74
  5. 1mo ago Changed 49c2919930d8
  6. 2mo ago Changed · +1 lines · +8 tokens per session 3a68928001ba
  7. 2mo ago Changed 16c92938360b
  8. 3mo ago First seen · 31 lines · 97 tokens per session scan A 69b3f8396a83

Subscribe to this mod's changes

new-service is a skill published in the GitHub repository gaia-react/gaia (26 stars, last pushed 1mo ago), licensed MIT. It adds 112 tokens to every session and 744 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-08-30.

Related

new-service compared with skills from other repositories

new-service next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-servicegaia-react/gaiaSkill261mo agoMITA112Claude Code
langbot-devlangbot-app/LangBotSkill19ktodayApache-2.0A136Claude Code, Codex
trigger-realtime-and-frontendtriggerdotdev/trigger.devSkill17kyesterdayApache-2.0A148Claude Code, Codex
walkeros-create-destinationelbwalker/walkerOSSkill3546d agoMITA77Claude Code
django-migrationsPostHog/posthogSkill41ktodaynoneA99Claude Code, Codex
analyzing-experiment-query-performancePostHog/posthogSkill41ktodaynoneA141Claude Code, Codex
walkeros-using-store-cacheelbwalker/walkerOSSkill3546d agoMITA56Claude Code