inertia-adonisjs

Build AdonisJS 6 + Inertia.js (React) applications from scratch through production. Full lifecycle - setup, pages, forms, shared data, debugging.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "inertia-adonisjs" with this command: npx skills add filipebraida/skills/filipebraida-skills-inertia-adonisjs

<essential_principles>

How Inertia + AdonisJS Works

Inertia is a bridge between AdonisJS and React. You keep server-side routing and controllers, while the client swaps page components without full reloads.

1. Server-Driven Pages

Controllers render Inertia responses with props:

return ctx.inertia.render("users/show", { user: new UserDto(user) });

2. No Client-Side Routing

Routes live in start/routes.ts. Inertia intercepts links and form submissions, making XHR requests and swapping components.

3. DTOs for Props

Props are sent to the client. Use DTOs to control the shape and avoid leaking fields.

4. Validation at the Edge

Validate on the server with VineJS. Let the validator throw and let Inertia handle the errors. </essential_principles>

<intake> **What would you like to do?**
  1. Set up Inertia in AdonisJS
  2. Create a new page/component
  3. Build a form with validation
  4. Debug an Inertia issue
  5. Something else

Then read the matching workflow from workflows/ and follow it. </intake>

<routing> | Response | Workflow | |----------|----------| | 1, "setup", "install", "start", "new" | `workflows/setup-inertia.md` | | 2, "page", "component", "create", "render" | `workflows/create-page.md` | | 3, "form", "validation", "submit", "useForm" | `workflows/build-form.md` | | 4, "debug", "fix", "error", "not working" | `workflows/debug-inertia.md` | | 5, other | Clarify, then select workflow or references | </routing>

<verification_loop>

After Every Change

  1. Does the page render? Check for X-Inertia response header
  2. Are props received? console.log(usePage().props)
  3. Does navigation work? Links should not full-reload
  4. Do forms submit? Check Network tab for XHR requests
  5. Are errors displayed? Trigger validation failure
// Frontend debug
console.log(usePage().props);

Report to the user:

  • "Inertia response: ok"
  • "Props received: X keys"
  • "Navigation: SPA mode ok" </verification_loop>

<reference_index>

Domain Knowledge

All in references/:

Core: setup.md, responses.md, forms.md, validation.md Data Flow: shared-data.md, links.md Quality: testing.md Cookbook: cookbook.md </reference_index>

<workflows_index>

Workflows

All in workflows/:

FilePurpose
setup-inertia.mdInstall and configure Inertia for AdonisJS
create-page.mdBuild new pages with props
build-form.mdForms with validation and useForm
debug-inertia.mdFind and fix Inertia issues
</workflows_index>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

adonisjs

No summary provided by upstream source.

Repository SourceNeeds Review
General

shadcn-ui

No summary provided by upstream source.

Repository SourceNeeds Review
General

nano-banana-2

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Repository Source
General

qwen-image-2

Qwen-Image - Alibaba Image Generation

Repository Source
40.8K153inferen-sh