smithery.ai

wayfinder-development

>- Activates whenever referencing backend routes in frontend components. Use when importing from @/actions or @/routes, calling Laravel routes from TypeScript, or working with Wayfinder route functions.

First seen Mar 26, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,242 B
  • docs SUMMARY.md 228 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Wayfinder Development

When to Apply

Activate whenever referencing backend routes in frontend components:

  • Importing from @/actions/ or @/routes/
  • Calling Laravel routes from TypeScript/JavaScript
  • Creating links or navigation to backend endpoints

Documentation

Use search-docs for detailed Wayfinder patterns and documentation.

Quick Reference

Generate Routes

Run after route changes if Vite plugin isn't installed:

php artisan wayfinder:generate --no-interaction

For form helpers, use --with-form flag:

php artisan wayfinder:generate --with-form --no-interaction

Import Patterns

<code-snippet name="Controller Action Imports" lang="typescript">

// 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'

</code-snippet>

Common Methods

<code-snippet name="Wayfinder Methods" lang="typescript">

// 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"

</code-snippet>

Wayfinder + Inertia

Use Wayfinder with the <Form> component: <code-snippet name="Wayfinder Form (Vue)" lang="vue">

<Form v-bind="store.form()"><input name="title" /></Form>

</code-snippet>

Verification

  1. Run php artisan wayfinder:generate to regenerate routes if Vite plugin isn't installed
  2. Check TypeScript imports resolve correctly
  3. 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