Agent skill

scaffold-auth-route

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/MonDevHub/gakom/tree/tanstack-query/.claude/skills/scaffold-auth-route

SKILL.md

Generate a new authenticated SvelteKit route following repo patterns.

Create:

  • +page.svelte with SNUGGLE components and {#await} for data fetching
  • +page.server.ts with session validation using Better Auth
  • Proper error handling for unauthenticated users

Route conventions:

  • Use kebab-case naming (e.g., /my-dashboard)
  • Check session in load function: ctx.locals.session
  • Redirect to login if no session
  • Use Svelte 5 runes like $props for props
  • Integrate with Tailwind/shadcn for consistent UI

Reference template.md for route files.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results