new-page

Scaffolds Merjs pages and routes in app/ with Zig build codegen integration.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold merjs page scaffolding to speed up creating new pages and routes within an application.

Core Features & Use Cases

  • Automatically generate app/$ARGUMENTS.zig following merjs conventions.
  • Ensure required exports like pub const meta and pub fn render are present.
  • Update routes with zig build codegen to reflect new page path.

Quick Start

Create app/$ARGUMENTS.zig using the provided template and run zig build codegen to register the new route.

Frequently Asked Questions about new-page

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

FAQPage Schema
How do I scaffold a new page and route in a merjs application?

To scaffold a new merjs page and route, generate an app/$ARGUMENTS.zig file using the template and run zig build codegen to register the route. This creates a ready-to-run page skeleton with required exports.

What exports are required for a new Zig page in merjs?

A new Zig page in merjs requires pub const meta and pub fn render exports. The scaffolding automatically generates these required exports to ensure the page integrates correctly with the application routing.

How does zig build codegen update the merjs route map?

Running zig build codegen refreshes the merjs route map by detecting newly added page files under app/ and registering their paths. This ensures the application routing reflects the new page skeleton.

Can I automatically generate a page skeleton across the app directory in merjs?

Yes, you can generate a page skeleton across the app/ directory in merjs. The scaffolding creates app/$ARGUMENTS.zig following merjs conventions, ensuring the page is ready to run after codegen.

What is the best way to add new views and routes in a Zig web application?

The best way to add new views and routes in a Zig web application is using a scaffolding tool that generates the page file and updates routes automatically. This ensures required exports and route map integration.

Why does my new merjs page not appear in the route map after adding the file?

If a new merjs page does not appear in the route map, you likely need to run zig build codegen after creating the app/$ARGUMENTS.zig file. This codegen step refreshes the route map to include the new path.