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.
curl -O https://raw.githubusercontent.com/LooseWireDev/mealforge/main/.agents/skills/tanstack-router-patterns/SKILL.mdgit clone --depth 1 https://github.com/LooseWireDev/mealforgeWrote 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.
[](https://agentmods.dev/skills/loosewiredev/mealforge/tanstack-router-patterns)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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—/viacreateFileRoute('/').about.tsx→/about;posts.$postId.tsx→/posts/:postId;_layout.tsxfiles 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}>inmain.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(readsVITE_API_URL) with TanStack Query (useQuery({ queryKey, queryFn })), types fromsrc/lib/api-schema.ts(regenerate withpnpm run codegen).
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.
- 2mo ago First seen · 52 lines · 53 tokens per session scan A f9f005bd1269
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.
tanstack-router-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tanstack-router-patternsLooseWireDev/mealforge | Skill | 1 | 3mo ago | MIT | A | 53 | Claude Code, Codex |
| frontend-featurevstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 7d ago | MIT | A | 64 | Claude Code |
| web-artifacts-builderPrismer-AI/PrismerCloud | Skill | 1.4k | 15d ago | MIT | A | 63 | Claude Code, Codex |
| frontmcp-auth-uiagentfront/frontmcp | Skill | 148 | yesterday | Apache-2.0 | A | 184 | Claude Code, Codex |
| portable-text-serializationsanity-io/agent-toolkit | Skill | 197 | 10d ago | MIT | A | 85 | Claude Code |
| sanity-form-component-suspensesanity-io/agent-toolkit | Skill | 197 | 10d ago | MIT | A | 149 | Claude Code |
| component-forgeEliasOulkadi/shokunin | Skill | 112 | 1mo ago | MIT | A | 112 | Claude Code |