mealforge: Skill for Claude Code

.agents/skills/tanstack-router-patterns/SKILL.md

tanstack-router-patterns is a skill for Claude Code, Codex from LooseWireDev/mealforge. It costs 53 tokens per session (731 once invoked), scanned A, original, MIT.

A project guide for using TanStack Router and TanStack Query in a web application. TanStack Router maps files to URLs, while TanStack Query helps load and manage data from APIs.

In plain words
What is it for?
Use it when adding pages, routes, URL parameters, navigation links, API data fetching, or shared web-app features.
Why use it?
It prevents routing and data-fetching changes from breaking the generated route tree or the application's type safety.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is LooseWireDev/mealforge's own configuration. It tells Claude Code and Codex how to work on mealforge 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 mealforge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to LooseWireDev/mealforge. 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/LooseWireDev/mealforge/main/.agents/skills/tanstack-router-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/LooseWireDev/mealforge

Made for: Claude Code, Codex.

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 tanstack-router-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/loosewiredev/mealforge/tanstack-router-patterns/github.svg)](https://agentmods.dev/skills/loosewiredev/mealforge/tanstack-router-patterns)
Your own site
<a href="https://agentmods.dev/skills/loosewiredev/mealforge/tanstack-router-patterns"><img src="https://agentmods.dev/badge/skills/loosewiredev/mealforge/tanstack-router-patterns/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 tanstack-router-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/loosewiredev/mealforge/tanstack-router-patterns"><img src="https://agentmods.dev/badge/skills/loosewiredev/mealforge/tanstack-router-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 731 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.00053 $0.00731
Opus 5.5 $0.00021 $0.00292
Sonnet 5.5 $0.00011 $0.00146
Haiku 4.5 $0.00005 $0.00073

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

Security

Grade A, and why

tanstack-router-patterns 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.

.agents/skills/tanstack-router-patterns/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TanStack Router Patterns (apps/web)

File-based routing

Routes live in apps/web/src/routes/. The route tree is generated into src/routeTree.gen.ts by the TanStack Router Vite plugin — never edit that file, and never import route components manually to "wire" them; creating the file in src/routes/ IS the wiring.

  • __root.tsx — root layout: createRootRoute({ component: RootLayout }), renders shared nav and <Outlet />.
  • index.tsx — / via createFileRoute('/').
  • about.tsx → /about; posts.$postId.tsx → /posts/:postId; _layout.tsx files create pathless layouts.
import { createFileRoute } from '@tanstack/react-router';

export const Route = createFileRoute('/about')({
  component: AboutPage,
});

function AboutPage(): React.ReactElement {
  return <div>…</div>;
}

Type safety comes from the declare module '@tanstack/react-router' { interface Register { router: typeof router } } block in main.tsx — leave it in place. Use <Link to="/..."> (typed) instead of raw anchors, and Route.useParams() / Route.useSearch() for route data.

Pages vs features

Route files stay thin: layout + composition. Real UI and logic live in src/features/<name>/ (scaffolded by the feature generator — see the feature-development skill) and shared pieces in src/components/. A route file imports the feature's components; it does not contain business logic.

Data fetching

main.tsx already provides a QueryClientProvider.

  • Hono backend: use the typed tRPC hooks from src/lib/trpc.ts — trpc.<feature>.<procedure>.useQuery() / .useMutation(). When adding the FIRST tRPC call, wrap the app in <trpc.Provider client={createTRPCClient()} queryClient={queryClient}> in main.tsx (the scaffold leaves a comment marking the spot). Types flow from @<project>/shared/types — never define API response types by hand.
  • Python backend: use src/lib/apiClient.ts (reads VITE_API_URL) with TanStack Query (useQuery({ queryKey, queryFn })), types from src/lib/api-schema.ts (regenerate with pnpm run codegen).

Read the full file on GitHub · 52 lines

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 · 52 lines · 53 tokens per session scan A f9f005bd1269

Subscribe to this mod's changes

tanstack-router-patterns is a skill published in the GitHub repository LooseWireDev/mealforge (1 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 731 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

tanstack-router-patterns compared with skills from other repositories

tanstack-router-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tanstack-router-patternsLooseWireDev/mealforgeSkill13mo agoMITA53Claude Code, Codex
frontend-featurevstorm-co/full-stack-ai-agent-templateSkill2.0k7d agoMITA64Claude Code
web-artifacts-builderPrismer-AI/PrismerCloudSkill1.4k15d agoMITA63Claude Code, Codex
frontmcp-auth-uiagentfront/frontmcpSkill148yesterdayApache-2.0A184Claude Code, Codex
portable-text-serializationsanity-io/agent-toolkitSkill19710d agoMITA85Claude Code
sanity-form-component-suspensesanity-io/agent-toolkitSkill19710d agoMITA149Claude Code
component-forgeEliasOulkadi/shokuninSkill1121mo agoMITA112Claude Code