route
Skill4 starsChanged 2 months agoMITView on GitHub
Create a page route. Defines the URL contract, search/path params validation, layout, and breadcrumbs. Routes through a react / astro child based on the working directory.
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If the path is ambiguous, ask the user once and don't proceed until they answer.
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Route (parent)
A route is the URL contract for a page: it declares the path, validates path/search params, defines the layout, and composes route-scoped components. Each platform implements this with its own router.
Platform routing (READ FIRST)
| Working file path | Use |
packages/app/react/** | ./react/SKILL.md + ./react/registry.yaml — TanStack Router + Start (file-based via bun tsr generate) |
packages/app/astro/**/*.astro | ./astro/SKILL.md + ./astro/registry.yaml — Astro pages + content collections + sitemap |
If the path is ambiguous, ask the user once and don't proceed until they answer.
What "route" means (cross-platform)
A route is:
- A URL contract — path segments, optional locale prefix, validated search params (where supported), breadcrumb metadata.
- A thin shell — declares layout + which route-scoped components render in it. Does not fetch data to pass into components; on the interactive platforms, components own their own data.
- Server-renderable on react (Start) and astro — static-by-default on astro; opt-in SSR on react Start.
Shared principles
- One file per route. File path mirrors URL.
- Validated search params. React:
validateSearch: zodValidator. Astro: parseAstro.url.searchParamsin frontmatter. - Localized paths where the platform supports it. React + astro use a
[locale]segment. - Breadcrumbs /
<title>declared at the route level. React viastaticData.breadcrumb; astro via<BaseLayout title=...>. - No data fetching in the route shell (react). Components own their data. Astro is the exception — its frontmatter IS where data fetching happens.
When to use this skill
- Adding a new page or screen URL.
- Adding a localized variant of an existing route.
- Adding an Astro content page (blog post, landing section as its own URL).
When NOT to use this skill
- Adding a sub-section of an existing route →
/component. - Adding a modal / dialog →
/component(react). - Adding a primitive →
/primitive.
Checklist (parent-level)
- Platform identified from working directory (or asked the user).
- Reading only the matching child SKILL + registry.
- Search/path params declared with the right validator for the platform.
- Route file is a thin shell — components own their data (react) or frontmatter owns it (astro).
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- ypollak2/llm-router★ 120same name
- mehrad-dm/mastermind★ 23same name
- ItsssssJack/seven-skills★ 19same name
- purpleeddy/cladding★ 16same name
- dawidtomaszewskipl/route-skill★ 4same name
- xiaolongnk/SuperHarness★ 4same name
- jerseycheese/agent-skills★ 3same name
- 0xcvaliente/claude-code-orchestration★ 2same name
- Deepanshu418/claude-code-elysia★ 2same name
- RumbleJack56/skills★ 2same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use learn and prototype.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 3 projects that use this
GoogleSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 3 projects that use this
In this repository45 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agentSkill
- bounded-contextSkill
- clean-branchSkill
- commitSkill
- componentSkill
- controllerSkill
- db-modellingSkill
- ddd-modelingSkill
- ddd-specSkill
- design-systemSkill
- desktop-shellSkill
- e2eSkill
- entitySkill
- enumSkill
- errorsSkill
- eventSkill
- formSkill
- grill-with-docsSkill
- handlerSkill
- handoffSkill
- middlewareSkill
- migrateSkill
- prdSkill
- primitiveSkill
- projectionSkill
- projectorSkill
- querySkill
- repositorySkill
- reviewSkill
- saas-researchSkill
- schedulerSkill
- schemaSkill
- sdkSkill
- serviceSkill
- spec-reviewSkill
- storeSkill
- storybookSkill
- task-breakdownSkill
- testSkill
- trace-analysisSkill
- ui-compositionSkill
- usecaseSkill
- user-storiesSkill
- value-objectSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

