Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
wayfinder-development - Skill - OpenSmartRoute
Skillv1.0.0
wayfinder-development
Use this skill for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes.
Imported from promovaweb/specsfy (example/.agents/skills/wayfinder-development/SKILL.md). Install upstream with npx skills add promovaweb/specsfy --skill wayfinder-development. Copyright stays with the author (MIT).
Wayfinder Development
Documentation
Use search-docs for detailed Wayfinder patterns and documentation.
Quick Reference
Generate Routes
Run after route changes if Vite plugin isn't installed:
// Named imports for tree-shaking (preferred)...import { show, store, update } from '@/actions/App/Http/Controllers/PostController'// Named route imports...import { show as postShow } from '@/routes/post'
Common Methods
// Get route object...show(1) // { url: "/posts/1", method: "get" }// Get URL string...show.url(1) // "/posts/1"// Specific HTTP methods...show.get(1)store.post()update.patch(1)destroy.delete(1)// Form attributes for HTML forms...store.form() // { action: "/posts", method: "post" }// Query parameters...show(1, { query: { page: 1 } }) // "/posts/1?page=1"
Run php artisan wayfinder:generate to regenerate routes if Vite plugin isn't installed
Check TypeScript imports resolve correctly
Verify route URLs match expected paths
Common Pitfalls
Using default imports instead of named imports (breaks tree-shaking)
Forgetting to regenerate after route changes
Not using type-safe parameter objects for route model binding
Installed into a catalogue, chosen by a router
Install wayfinder-development and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "promovaweb-specsfy-wayfinder-development",
"kind": "skill",
"name": "wayfinder-development",
"description": "Use this skill for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes. ALWAYS use this skill when frontend code needs to call backend routes or controller actions. Trigger when: connecting any React/Vue/Svelte/Inertia frontend to Laravel controllers, routes, building end-to-end features with both frontend and backend, wiring up forms or links to backend endpoints, fixing route-related TypeScript errors, importing from @/actions or @/routes, or running wayfinder:generate. Use Wayfinder route functions instead of hardcoded URLs. Covers: wayfinder() vite plugin, .url()/.get()/.post()/.form(), query params, route model binding, tree-shaking. Do not use for backend-only task",
"publisher": "promovaweb",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"data_analysis"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Use this skill for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes. ALWAYS use this skill when frontend code needs to call backend routes or controller actions. Trigger when: connecting any React/Vue/Svelte/Inertia frontend to Laravel controllers, routes, building end-to-end features with both frontend and backend, wiring up forms or links to backend endpoints, fixing route-related TypeScript errors, importing from @/actions or @/routes, or running wayfinder:generate. Use Wayfinder route functions instead of hardcoded URLs. Covers: wayfinder() vite plugin, .url()/.get()/.post()/.form(), query params, route model binding, tree-shaking. Do not use for backend-only task"
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/promovaweb/specsfy",
"path": "example/.agents/skills/wayfinder-development/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/promovaweb/specsfy/blob/HEAD/example/.agents/skills/wayfinder-development/SKILL.md",
"key": "promovaweb/specsfy/example/.agents/skills/wayfinder-development/SKILL.md"
},
"license": "MIT"
},
"instructions": "# Wayfinder Development\n\n## Documentation\n\nUse `search-docs` for detailed Wayfinder patterns and documentation.\n\n## Quick Reference\n\n### Generate Routes\n\nRun after route changes if Vite plugin isn't installed:\n```bash\nphp artisan wayfinder:generate --no-interaction\n```\nFor form helpers, use `--with-form` flag:\n```bash\nphp artisan wayfinder:generate --with-form --no-interaction\n```\n\n### Import Patterns\n\n<!-- Controller Action Imports -->\n```typescript\n// Named imports for tree-shaking (preferred)...\nimport { show, store, update } from '@/actions/App/Http/Controllers/PostController'\n\n// Named route imports...\nimport { show as postShow } from '@/routes/post'\n```\n\n### Common Methods\n\n<!-- Wayfinder Methods -->\n```typescript\n// Get route object...\nshow(1) // { url: \"/posts/1\", method: \"get\" }\n\n// Get URL string...\nshow.url(1) // \"/posts/1\"\n\n// Specific HTTP methods...\nshow.get(1)\nstore.post()\nupdate.patch(1)\ndestroy.delete(1)\n\n// Form attributes for HTML forms...\nstore.form() // { action: \"/posts\", method: \"post\" }\n\n// Query parameters...\nshow(1, { query: { page: 1 } }) // \"/posts/1?page=1\"\n```\n\n## Wayfinder + Inertia\n\nUse Wayfinder with the `<Form>` component:\n<!-- Wayfinder Form (React) -->\n```typescript\n<Form {...store.form()}><input name=\"title\" /></Form>\n```\n\n## Verification\n\n1. Run `php artisan wayfinder:generate` to regenerate routes if Vite plugin isn't installed\n2. Check TypeScript imports resolve correctly\n3. Verify route URLs match expected paths\n\n## Common Pitfalls\n\n- Using default imports instead of named imports (breaks tree-shaking)\n- Forgetting to regenerate after route changes\n- Not using type-safe parameter objects for route model binding",
"cost": {
"context_tokens": 419
}
}
Fetch it by URL: GET /api/v1/registry/promovaweb-specsfy-wayfinder-development/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.