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 $0.00029 $0.00219
Sonnet 5 $0.00012 $0.00088
Haiku 4.5 $0.00006 $0.00044

Measured 11d ago against content hash bd7e9a5c7a64, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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. 11d 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.0003 per session on Opus 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

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

extract-errors

Use when adding new error messages to React, or seeing "unknown error code" warnings.

sangrokjung/claude-forge · 21 tokens

frontend-patterns

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices. Use when building or reviewing React or Next.js components, state, or render performance.

affaan-m/ECC · 41 tokens

react-testing

React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.

affaan-m/ECC · 59 tokens

react-patterns

React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.

affaan-m/ECC · 49 tokens

langchain

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG…

davila7/claude-code-templates · 79 tokens