supabase
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
inertia-rails
Building full-stack applications with Inertia.js in Rails using React. Use when working with Inertia responses, forms, props, redirects, React page components, or Rails controllers in an Inertia project.
Full skill instructions
Inertia Rails is a hybrid approach that combines Rails server-side routing with React client-side views. It's not a traditional SPA (no client-side routing) and not traditional SSR (no server-side rendering).
How it works:
Component location: app/frontend/pages/ControllerName/ActionName.jsx
# Automatic component resolution: users/show.jsx
def show
user = User.find(params[:id])
render inertia: { user: }
end
def my_event
event = Event.find(params[:id])
render inertia: 'events/show', props: { event: }
end
def show
event = Event.find(params[:id])
render inertia: { event: }, view_data: { meta: event.meta }
end
⚠️ Security Warning: All props are visible client-side. Never include sensitive data in props.
Always redirect after form submissions. Inertia automatically handles 303 responses.
def create
user = User.new(user_params)
if user.save
redirect_to users_url
else
redirect_to new_user_url, inertia: { errors: user.errors }
end
end
Use inertia_location for external URLs or non-Inertia endpoints:
inertia_location external_service_url
Use <Form> for simple forms that behave like HTML forms:
import { Form } from '@inertiajs/react'
<Form action="/users" method="post">
<input type="text" name="name" />
<input type="email" name="email" />
<button type="submit">Create User</button>
</Form>
Key props:
action, method: Form endpointresetOnSuccess: Reset form after successful submissiontransform: Modify data before submissiononSuccess, onError: Event callbacksSlot props for state:
<Form action="/users" method="post">
{({ errors, processing, wasSuccessful }) => (
<>
<input type="text" name="name" />
{errors.name && <div>{errors.name}</div>}
<button type="submit" disabled={processing}>
{processing ? 'Creating...' : 'Create User'}
</button>
{wasSuccessful && <div>User created!</div>}
</>
)}
</Form>
Use useForm for programmatic control and complex forms:
import { useForm } from '@inertiajs/react'
const { data, setData, post, processing, errors, reset } = useForm({
name: '',
email: '',
})
function submit(e) {
e.preventDefault()
post('/users', {
onSuccess: () => reset('password'),
})
}
return (
<form onSubmit={submit}>
<input
value={data.name}
onChange={(e) => setData('name', e.target.value)}
/>
{errors.name && <div>{errors.name}</div>}
<button type="submit" disabled={processing}>Submit</button>
</form>
)
Key methods:
get, post, put, patch, delete: Submit formsetData: Update form datareset: Reset to default valuesclearErrors: Clear validation errorssetError: Manually set errorsRails automatically populates errors when validation fails:
# Controller - errors automatically available in frontend
def create
user = User.new(user_params)
if user.save
redirect_to users_url
else
redirect_to new_user_url, inertia: { errors: user.errors }
end
end
Use InertiaRails.defer for data that loads after initial render:
def index
render inertia: {
users: -> { User.all },
permissions: InertiaRails.defer { Permission.all },
}
end
import { Deferred } from '@inertiajs/react'
<Deferred data="permissions" fallback={<div>Loading...</div>}>
<PermissionsComponent />
</Deferred>
import { WhenVisible } from '@inertiajs/react'
<WhenVisible data="permissions" fallback={<div>Loading...</div>}>
<PermissionsComponent />
</WhenVisible>
Replace <a> with <Link> for Inertia navigation:
import { Link } from '@inertiajs/react'
<Link href="/users">Users</Link>
<Link href="/users/new" method="post" as="button">New User</Link>
import { router } from '@inertiajs/react'
router.visit('/users')
router.post('/users', data)
router.visit('/users', { only: ['users'] }) // Partial reload
def create
user = User.new(user_params)
if user.save
redirect_to users_url, notice: 'User created successfully!'
else
redirect_to new_user_url, inertia: {
errors: user.errors,
alert: 'Failed to create user'
}
end
end
Flash messages are automatically available as props:
// In your layout or page component
export default function Layout({ children, flash }) {
return (
<div>
{flash.notice && <div className="notice">{flash.notice}</div>}
{flash.alert && <div className="alert">{flash.alert}</div>}
{children}
</div>
)
}
Route directly to components without controllers:
# config/routes.rb
inertia 'dashboard' => 'Dashboard'
inertia :settings # Maps to Settings component
namespace :admin do
inertia 'dashboard' => 'Admin/Dashboard'
end
resources :users do
inertia :activity, on: :member
end
Generate URLs server-side and include as props:
def index
render inertia: {
users: User.all.map { |user|
user.as_json(only: [:id, :name]).merge(edit_url: edit_user_path(user))
},
create_url: new_user_path
}
end
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.
Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.
Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
Send, read, and manage Gmail messages, drafts, labels, and account settings.
Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.
Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.
Discover your celebrity doppelgänger with StarByFace!
GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams
Detect AI-generated voices to protect against audio fraud.
Ensure Your Content's Originality with AI Plagiarism Checker
Upscale images by 400% without quality loss
Protect your social media from copyright disputes
Accurately Detect AI-Generated Content with TheChecker.AI
Chrome extension that detects and flags AI-generated content