Skip to content
Back to skills

Adding A New App Route

ASecurity

Fully wires up a new route with required boilerplate, following this repo's conventions for subapps. Use when user wants to add a new route or app or subapp or page or screen.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
ai-agents

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill adding-a-new-app-route --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Adding A New App Route?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Adding A New App Route
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-adding-a-new-app-route/badge)](https://www.skillsdirectory.com/skills/majiayu000-adding-a-new-app-route)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: adding-a-new-app-route
description: Fully wires up a new route with required boilerplate, following this repo's conventions for subapps. Use when user wants to add a new route or app or subapp or page or screen.
allowed-tools: Skill(beep)
---

# Adding a new route

Use this checklist to track your work:

- [ ] Determine name & route for the new app
- [ ] Determine the kind of app to create
- [ ] Create a folder for the new app
- [ ] Mount the new app in the global routes listing
- [ ] Consider next steps

## Determine name & route for the new app

If the name of the new app and the desired route have not already been specified, `AskUserQuestion` to determine that information, e.g. `MyApp` at `/my-app`.

## Determine the kind of app to create

- **Static**: The simplest possible app with static-only content
- **Dynamic**: A typical app that fetches data based on route params

Use the answer in the next step.

## Create a folder for the new app

- Choose the correct template directory based on the previous step:
  - **Static**: `./templates/static/Replace/`
  - **Dynamic**: `./templates/dynamic/Replace/`
- Use that directory as the template for the new subapp
- Recreate that folder structure under `/src/Apps/<NewApp>`
- Replace all instances of `replace` and `Replace` with appropriate naming (case-sensitive)

## Mount the new app in the global routes listing

Add the new route to the main route list at `src/routes.tsx`. Follow existing conventions re: alphabetization.

## Consider next steps

Additional dev advice:

- You may need to restart the server for the new route to take effect
- Then visit http://localhost:4000/{replace} to see your new app
- Examine the generated code for additional follow-ups

## Celebrate

Indicate you are done with a /beep

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.