Skip to content
Back to skills

Add Dashboard Page

ASecurity

Add a page to the TRouteAI dashboard with its sidebar entry, texts and management API route. Use when asked for a new dashboard page, screen, tab or settings section.

  • 29 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add allswebtech/trouteai --skill add-dashboard-page --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Dashboard Page?

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

Security grade badge for Add Dashboard Page
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/allswebtech-add-dashboard-page/badge)](https://www.skillsdirectory.com/skills/allswebtech-add-dashboard-page)

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: add-dashboard-page
description: Add a page to the TRouteAI dashboard with its sidebar entry, texts and management API route. Use when asked for a new dashboard page, screen, tab or settings section.
argument-hint: [what the page is for]
---

# Add a dashboard page

Page wanted: $ARGUMENTS

Before building, decide whether it needs a page at all. The dashboard is for non-technical
people and the default menu is deliberately short. A setting usually belongs on an existing
page.

1. **Route.** `src/app/(dashboard)/dashboard/<slug>/page.tsx`. Copy a small page such as
   `audit/page.tsx`.
2. **Texts.** Every visible text goes in `src/i18n/messages/en.json`: page texts in a camelCase
   namespace for the feature, the sidebar label under `sidebar.<key>`, the breadcrumb under
   `breadcrumbs.<slug>` (plus `PATH_LABELS` in `src/shared/components/Breadcrumbs.tsx`). Plain
   words, short sentences, no jargon.
3. **Sidebar.** Add the id to `HIDEABLE_SIDEBAR_ITEM_IDS` in
   `src/shared/constants/sidebarVisibility/types.ts` and the entry
   (`{ id, href, i18nKey, subtitleKey, icon }`) to the right group in
   `src/shared/constants/sidebarVisibility/sections.ts`. The default simple menu is the
   allow-list `MINIMAL_SHOWN` in `src/shared/constants/sidebarVisibility.ts`: a new page is
   hidden there unless you add it, and it should be added only when most users need it.
4. **API route** under `src/app/api/<area>/route.ts` (copy
   `src/app/api/settings/thinking-budget/route.ts`): `requireManagementAuth` first, the body
   checked with `validateBody` and a Zod schema, data through a `src/lib/db/` module, errors
   without raw messages.
5. **Look.** Colours only from the CSS variables in `src/app/globals.css`; no hex values, no
   gradients. Reuse the components in `src/shared/components/`.

Check it in a real browser, started with `DATA_DIR=$(mktemp -d)` and a spare port:

1. English, light theme, desktop width first: the page loads without console errors, every
   state has a text (empty, loading, error), and the main action is obvious.
2. Then the dark theme and a phone width.
3. Signed out, the page and its API route must redirect or answer 401.

Finish with the `verify` skill.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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