Agent skill

New API

by justrach in justrach/merjs

Scaffold a new merjs API route. An agent skill from justrach/merjs.

MITAuto-check passedBackend & APIs

Install New API

skills CLI
$ npx skills add justrach/merjs --skill new-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install justrach/merjs new-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/justrach/merjs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-api .claude/skills/new-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
new-api
GitHub stars
357
Token cost
~302 tokens
SKILL.md length
103 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Scaffold a new merjs API route. An agent skill from justrach/merjs.

  • Works in 4 steps: Create api/$ARGUMENTS.zig with this… → Adapt the Response struct fields based… → Run zig build codegen to regenerate routes → …
  • The user wants to create a new API endpoint
  • SKILL.md covers Steps and Conventions
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

New API is an agent skill from justrach/merjs. Scaffold a new merjs API route. Use when the user wants to create a new API endpoint.

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering REST APIs. It works with WebAssembly. The repository describes itself as: A Zig-native web framework. File-based routing, SSR, type-safe APIs, WASM client interactivity. No Node. No npm. Just zig build serve. The licence is MIT.

When your agent uses it

  • The user wants to create a new API endpoint
  • Tasks that involve REST APIs

Example prompts

  • “/new-api”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Create api/$ARGUMENTS.zig with this template
  2. Adapt the Response struct fields based on what the user described
  3. Run zig build codegen to regenerate routes
  4. Confirm the route appears at /api/$ARGUMENTS

What it can do on your machine

Read from SKILL.md and the folder at commit 28b53d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are zig).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

New API loads about 302 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 103 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~302

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from justrach/merjs at commit 28b53d8, republished under its MIT licence (© justrach). 103 words, ~302 tokens.

Download SKILL.mdSave it as .claude/skills/new-api/SKILL.md (or your agent's skills folder).
name
new-api
description
Scaffold a new merjs API route. Use when the user wants to create a new API endpoint.
argument-hint
[route-name]
disable-model-invocation
true

Create a new merjs API route

Scaffold a new API route at api/$ARGUMENTS.zig.

Steps

  1. Create api/$ARGUMENTS.zig with this template:
zig
const mer = @import("mer");

const Response = struct {
    // Define your response fields here
    message: []const u8,
};

pub fn render(req: mer.Request) mer.Response {
    return mer.typedJson(req.allocator, Response{
        .message = "hello",
    });
}
  1. Adapt the Response struct fields based on what the user described
  2. Run zig build codegen to regenerate routes
  3. Confirm the route appears at /api/$ARGUMENTS

Conventions

  • API routes live in api/ and map to /api/...
  • Use mer.typedJson(allocator, value) to return typed JSON responses
  • Use mer.json(string) for raw JSON strings
  • Access request body via req.body, method via req.method
  • Access query string via req.query_string
  • Access cookies via req.cookie("name")
  • For validation, use dhi: const dhi = @import("dhi_validator");
  • API routes do NOT need pub const meta

© justrach, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/new-api of justrach/merjs.

Open the folder on GitHubat commit 28b53d8

Compare with similar skills

New API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

New API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New API this skilljustrach/merjs357—~302Automated safety check: PassMIT
RuView CLI, API and WASMruvnet/RuView97k—~1.2kAutomated safety check: NotesMIT
Adding Internal API RouteTriliumNext/Trilium38k—~3.3kAutomated safety check: PassAGPL-3.0
REST API Contract Reviewdecebals/claude-code-java7511 repos~2.8kAutomated safety check: PassMIT
Io Figmagridaco/grida2.7k—~2.2kAutomated safety check: NotesApache-2.0
Tabz TerminalsGGPrompts/TabzChrome147—~696Automated safety check: PassMIT

Similar skills

  • Covers the RuView `wifi-densepose` command line binary, its Axum REST API and the WebAssembly builds for browsers and ESP32, for embedding or scripting RuView.

    97k GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Adding Internal API Route

    TriliumNext/Trilium

    A skill your agent uses when adding, moving, or wiring an internal REST endpoint in Trilium (a new /api/ route) — choosing between a core-shared handler (packages/trilium-core/src/routes/index.ts…

    38k GitHub stars~3.3k tokensUpdated today
    Testing & QAAuto-check passed
  • REST API Contract Review

    decebals/claude-code-java

    Reviews REST API design for correct HTTP verbs, versioning, DTO use, consistent responses and backward compatibility before an API change ships.

    751 GitHub starsUsed in 1 repo~2.8k tokens
    Backend & APIsAuto-check passed
  • Io Figma

    gridaco/grida

    Guides work on the Figma I/O package (@grida/io-figma, packages/grida-canvas-io-figma/).

    2.7k GitHub stars~2.2k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Tabz Terminals

    GGPrompts/TabzChrome

    Spawn and manage terminal tabs via TabzChrome REST API. An agent skill from GGPrompts/TabzChrome.

    147 GitHub stars~696 tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Kql Validator

    Azure/azqr

    Official

    Validate KQL (Kusto Query Language) files used in Azure Quick Review (azqr) against their recommendation definitions.

    795 GitHub stars~703 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from justrach/merjs

  • Merjs

    justrach/merjs

    Work with the merjs Zig web framework. An agent skill from justrach/merjs.

    357 GitHub stars~4k tokensUpdated 1 mo ago
    Auto-check: notes
  • Streaming Ssr

    justrach/merjs

    Add streaming SSR to a merjs page. An agent skill from justrach/merjs.

    357 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev

    justrach/merjs

    Build and start the merjs dev server with hot reload. An agent skill from justrach/merjs.

    357 GitHub stars~222 tokensUpdated 1 mo ago
    Auto-check passed
  • New Page

    justrach/merjs

    Scaffold a new merjs page. An agent skill from justrach/merjs.

    357 GitHub stars~361 tokensUpdated 1 mo ago
    Auto-check passed
  • Deploy

    justrach/merjs

    Full production build — codegen, compile, prerender, and prepare for deployment.

    357 GitHub stars~171 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about New API

What does New API do?

Scaffold a new merjs API route. An agent skill from justrach/merjs. New API is an agent skill from justrach/merjs. Scaffold a new merjs API route.

When should I use New API?

New API fits situations like: the user wants to create a new API endpoint; tasks that involve REST APIs.

How do I install New API in Claude Code?

Run `npx skills add justrach/merjs --skill new-api -a claude-code`. Or copy the skill folder (.claude/skills/new-api in justrach/merjs) into .claude/skills/new-api in your project. Claude Code loads it when a task matches its description.

How do I install New API in Codex?

Run `npx skills add justrach/merjs --skill new-api -a codex`. Or copy the skill folder (.claude/skills/new-api in justrach/merjs) into .agents/skills/new-api in your project. Codex loads it when a task matches its description.

Can I use New API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add justrach/merjs --skill new-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-api, .gemini/skills/new-api, .github/skills/new-api and .opencode/skills/new-api in your project.

What does New API need to run?

SKILL.md names no scripts, command-line tools or credentials: New API is instructions for the agent only.

Does New API access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is New API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does New API use?

New API is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does New API use?

About 302 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to New API?

Skills that share tags, products or a category with New API: RuView CLI, API and WASM (ruvnet/RuView, 97k stars), Adding Internal API Route (TriliumNext/Trilium, 38k stars), REST API Contract Review (decebals/claude-code-java, 751 stars) and Io Figma (gridaco/grida, 2.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New API?

justrach (a GitHub user) maintains it in justrach/merjs, which has 357 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 26, 2026.

Source: justrach/merjs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.