All skills

Inertia.js server-side rendering, redirects, shared data, forms, validation, and client-side patterns for The Boring JavaScript Stack. Use this skill when building pages, handling form submissions, managing redirects, sharing data, or working with any Inertia.js feature in a Sails.js application.

Use this Skill: https://skilld.dev/gh/sailscastshq/boring-stack/inertia

This session only. Nothing lands on disk.

SKILL.md

≈77 tokens always: the name and description. ≈769 when used: this file. ≈28k more on demand in 16 files.

Inertia.js for The Boring JavaScript Stack

Inertia.js is the bridge between Sails.js and your frontend framework (React, Vue, or Svelte) in The Boring JavaScript Stack. It lets you build modern single-page apps using classic server-side routing and controllers -- no API required. The inertia-sails package implements the full Inertia.js v2 protocol as a Sails hook.

When to Use

Use this skill when:

  • Rendering pages with Inertia (responseType: 'inertia')
  • Setting page-specific meta tags, titles, and OG images with locals (sails.inertia.local(), return { locals })
  • Handling form submissions and redirects (responseType: 'redirect' vs 'inertiaRedirect')
  • Sharing data globally across all pages (sails.inertia.share(), once(), refreshOnce())
  • Working with flash messages (sails.inertia.flash())
  • Handling validation errors (responseType: 'badRequest', form.errors)
  • Using advanced props: deferred, optional, always, merge, scroll
  • Building frontend components with useForm, usePage, Link, Head, router
  • Setting up createInertiaApp and persistent layouts
  • Handling server errors with the Inertia error modal
  • Working with partial reloads, history encryption, or asset versioning

Rules

Read individual rule files for detailed explanations and code examples:

Framework-Specific APIs

  • rules/react.md - React: useForm, usePage, Link, Head, Deferred, WhenVisible, usePoll, layouts
  • rules/vue.md - Vue: useForm, usePage, Link, Head, Deferred, WhenVisible, usePoll, defineOptions layouts
  • rules/svelte.md - Svelte: useForm (stores), page store, Link, inertia action, svelte:head, layouts

Source: SKILL.md on GitHub

3 warnings17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides comprehensive documentation and guidelines for integrating Inertia.js within The Boring JavaScript Stack (Sails.js). No security vulnerabilities or malicious patterns were detected.

  • Socket17d

    1 alert: gptAnomaly

  • Snyk17d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    16/16 files flagged

Signed by skilld at fb2b7e0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 7 months ago
Other metadata
metadata
{
  "author": "sailscastshq",
  "version": "1.0.0",
  "tags": "inertia, sails, boring-stack, spa, forms, redirects, shared-data, props"
}

README badge

README badge for sailscastshq/boring-stack/inertia