
netlify/swar-templates
5 skills5 installs15 starsGitHub
Install
npx skills add https://github.com/netlify/swar-templatesSkills in this repo
1Content CollectionsTransforms markdown and other content files into type-safe collections with Zod schemas and full TypeScript support, wired via the Content Collections Vite plugin. A developer uses it when building blogs, docs, or content-driven pages that need typed access to frontmatter.1installs2Tanstack Start Api RoutesBuilds HTTP API routes (server routes) in TanStack Start via the server.handlers config, handling multiple methods, dynamic params, and non-HTML data responses. A developer uses it when adding REST endpoints or webhooks rather than RPC-style server functions.1installs3Tanstack Start LoadersExplains TanStack Start route data loading via beforeLoad (guards/context) and loader (data), stressing that loaders are isomorphic and must call server functions for DB or secret access. A developer uses it when fetching page data, setting route context, or adding auth guards.1installs4Tanstack Start Project SetupBootstraps TanStack Start projects and configures the router, TanStack Query integration, project structure, and app.config.ts build/server settings. A developer uses it when creating a new full-stack React app or configuring it for Netlify deployment.1installs5Tanstack Start RoutesDefines pages and layouts in TanStack Start using file-based routing conventions in src/routes, including dynamic $params, pathless _layout routes, and the __root document shell. A developer uses it when adding pages or structuring nested route hierarchies.1installs