一键导入
inertia-adonisjs
Build AdonisJS 6 + Inertia.js (React) applications from scratch through production. Full lifecycle - setup, pages, forms, shared data, debugging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build AdonisJS 6 + Inertia.js (React) applications from scratch through production. Full lifecycle - setup, pages, forms, shared data, debugging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | inertia-adonisjs |
| description | Build AdonisJS 6 + Inertia.js (React) applications from scratch through production. Full lifecycle - setup, pages, forms, shared data, debugging. |
<essential_principles>
Inertia is a bridge between AdonisJS and React. You keep server-side routing and controllers, while the client swaps page components without full reloads.
Controllers render Inertia responses with props:
return ctx.inertia.render("users/show", { user: new UserDto(user) });
Routes live in start/routes.ts. Inertia intercepts links and form submissions, making XHR requests and swapping components.
Props are sent to the client. Use DTOs to control the shape and avoid leaking fields.
Validate on the server with VineJS. Let the validator throw and let Inertia handle the errors. </essential_principles>
**What would you like to do?**Then read the matching workflow from workflows/ and follow it.
<verification_loop>
X-Inertia response headerconsole.log(usePage().props)// Frontend debug
console.log(usePage().props);
Report to the user:
<reference_index>
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>
All in workflows/:
| File | Purpose |
|---|---|
| setup-inertia.md | Install and configure Inertia for AdonisJS |
| create-page.md | Build new pages with props |
| build-form.md | Forms with validation and useForm |
| debug-inertia.md | Find and fix Inertia issues |
| </workflows_index> |