claude-code-power-config: Skill for Claude Code

.claude/skills/new-frontend-route/SKILL.md

new-frontend-route is a skill for Claude Code from AlexisBalayre/claude-code-power-config. It costs 58 tokens per session (438 once invoked), scanned A, original, MIT.

A coding workflow for adding a new page to a React frontend, including its route, data-query hooks, and page-specific components. It follows the project's existing routing and component conventions.

In plain words
What is it for?
Use it when adding a page, frontend route, or application view to a React project that uses a shared route table.
Why use it?
It reduces the chance of forgetting route registration, access checks, data wiring, or required files when adding a view. It also keeps new pages consistent with the rest of the application.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is AlexisBalayre/claude-code-power-config's own configuration. It tells Claude Code how to work on claude-code-power-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-power-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AlexisBalayre/claude-code-power-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AlexisBalayre/claude-code-power-config/main/.claude/skills/new-frontend-route/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AlexisBalayre/claude-code-power-config

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-frontend-route

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexisbalayre/claude-code-power-config/new-frontend-route/github.svg)](https://agentmods.dev/skills/alexisbalayre/claude-code-power-config/new-frontend-route)
Your own site
<a href="https://agentmods.dev/skills/alexisbalayre/claude-code-power-config/new-frontend-route"><img src="https://agentmods.dev/badge/skills/alexisbalayre/claude-code-power-config/new-frontend-route/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-frontend-route

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexisbalayre/claude-code-power-config/new-frontend-route"><img src="https://agentmods.dev/badge/skills/alexisbalayre/claude-code-power-config/new-frontend-route.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 438 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00438
Opus 5.5 $0.00023 $0.00175
Sonnet 5.5 $0.00012 $0.00088
Haiku 4.5 $0.00006 $0.00044

Measured 2mo ago against content hash bd7e9a5c7a64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-frontend-route scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/new-frontend-route/SKILL.md · 21 lines

What it actually says

Scaffold a new frontend route. The routing, guard, styling, and API-client obligations live in docs/conventions/frontend.md (component rules in docs/conventions/core.md) - read them first and follow them exactly. This skill fixes only the file set and order of operations.

Execution Steps

  1. Determine Placement & Context:
    • All routes live in the single route table in apps/acme-web/src/app.tsx (createBrowserRouter); there is no file-based routing. Pick the layout group (AuthLayout / PublicLayout / AppShell) per frontend.md §Routing.
    • Read 2-3 existing routes in app.tsx and their feature components before writing code.
  2. Page Component - src/features/<domain>/<name>-page.component.tsx:
    • Pages are plain React components with the component role - no routing exemptions.
    • Register in app.tsx: lazy(() => import("./features/<domain>/<name>-page.component").then((m) => ({ default: m.<Name>Page }))), then add { path: "...", element: <...Page /> } to the right layout group's children.
    • Guards, admin-sidebar pairing, and param-redirect gotchas: frontend.md §Routing and §Role guards.
  3. Feature Components - src/features/<domain>/, per frontend.md §Components and §Styling.
  4. Query Hooks - src/hooks/use-<name>.hook.ts: TanStack Query with getApiClient() per frontend.md §API client.
  5. Verify: Run pnpm typecheck to confirm types resolve, then load the route on the dev port (frontend.md §Routing).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 21 lines · 58 tokens per session scan A bd7e9a5c7a64

Subscribe to this mod's changes

new-frontend-route is a skill published in the GitHub repository AlexisBalayre/claude-code-power-config (2 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 438 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

remotion

Render a short (10s) video on any topic with Remotion - the agent writes a storyboard JSON, a bundled React/Remotion project renders it to an MP4, and the clip is committed to the repo and delivered by URL. No editor, no external generative API.

aeonfun/aeon · 61 tokens

generic-react-feature-developer

Guide feature development for React applications with architecture focus. Covers Zustand/Redux patterns, IndexedDB usage, component systems, lazy loading strategies, and seamless integration. Use when adding new features, refactoring existing code, or planning major changes.

travisjneuman/.claude · 53 tokens

generic-react-ux-designer

Professional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction patterns, accessibility, performance-driven design, and design critique. Use when designing features, improving UX, solving user problems, or conducting design…

travisjneuman/.claude · 69 tokens

generic-react-design-system

Complete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.

travisjneuman/.claude · 59 tokens

generic-react-code-reviewer

Review React/TypeScript code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Enforces TypeScript strict mode, GPU-accelerated animations, WCAG AA accessibility, bundle size limits, and surgical simplicity. Use when completing features, before commits, or…

travisjneuman/.claude · 71 tokens

frontend-code-review

Trigger when the user requests a review of frontend files (e.g., .tsx, .ts, .js). Support both pending-change reviews and focused file reviews while applying the checklist rules.

sangrokjung/claude-forge · 42 tokens