new-api

Generate a Zig API route scaffold in api/ for merjs projects.

354|17|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/justrach/merjs --skill new-api-justrach
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: new-api
Source: https://github.com/justrach/merjs/tree/main/.claude/skills/new-api
Command: npx skills add https://github.com/justrach/merjs --skill new-api-justrach

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a new merjs API route quickly by generating a ready-to-edit endpoint scaffold and template.

Core Features & Use Cases

  • Endpoint scaffolding: Creates a Zig file under api/ named after your route with a consistent template.
  • Template-driven development: Provides a ready-to-edit render function and response structure.
  • Use Case: Add a new API endpoint to a merjs project and wire it into the existing codegen workflow with minimal setup.

Quick Start

Run the new-api scaffold with a route name to generate the file at api/$ARGUMENTS.zig.

Frequently Asked Questions about new-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new API route in a merjs project?▼

To scaffold a new API route in a merjs project, use the new-api tool with a route name to generate a ready-to-edit Zig template file placed directly in the api/ directory.

What is the standard template for merjs API endpoint creation?▼

The standard template for merjs API endpoint creation is a Zig file containing a ready-to-edit render function and response structure, ensuring consistent route scaffolding across development environments.

How do I integrate a new API endpoint with the merjs codegen workflow?▼

To integrate a new API endpoint with the merjs codegen workflow, generate the route scaffold in the api/ directory and then run zig build codegen to refresh and wire the routes.

Does the merjs API scaffolding process require manual route registration?▼

No, the merjs API scaffolding process reduces manual setup by enforcing a standard Zig template and reminding you to run zig build codegen, which automatically handles route integration.

What's the best way to add a Zig template for api routes in merjs?▼

The best way to add a Zig template for api routes in merjs is using a scaffolding tool that enforces a standard template, places the file in api/, and wires it into the existing codegen step.