agent coding skill risk: low
Rails Project Bootstrap with Inertia and React
Instructs the model to generate a new Rails project named $1 using Rails 8, PostgreSQL, Inertia.js, React, Vite, Tailwind, Sidekiq, and Redis, following specified conventions for d…
- External action: low
SKILL 1 file
SKILL.md
--- name: antigravity-awesome-skills-new-rails-project-9e06373d description: "Create a new Rails project" --- Generate a new Rails project named $1 in the current directory. You may reference @CLAUDE.md for general guidance, though the guidance here takes precedence. ## When to Use - You need to bootstrap a new Rails project with the opinionated stack defined in this skill. - The project should start with Rails, PostgreSQL, Inertia.js, React, Vite, Tailwind, Sidekiq, and Redis already planned together. - You want setup guidance that covers project creation, conventions, testing, and verification for a fresh Rails app. # Tech Stack Set up the following tech stack: - **Rails ~8** with PostgreSQL - Server-side framework and database - **Inertia.js ~2.3** - Bridges Rails and React for SPA-like experience without API - **React ~19.2** - Frontend UI framework - **Vite ~5** - JavaScript bundler with HMR - **Tailwind CSS ~4** - Utility-first CSS framework - **Sidekiq 8** - Background job processing with scheduled jobs via sidekiq-scheduler - **Redis** - Sessions, caching, and job queue # Rails guidance - Do not use Kamal or Docker - Do not use Rails "solid_*" components/systems - Development should generally match production settings where possible - Use Redis for caching # Database - All tables use UUID primary keys (pgcrypto extension) - Timestamps use `timestamptz` for timezone awareness - JSONB columns for flexible metadata storage - Comprehensive indexing strategy for performance - Encrypted fields for sensitive data (OAuth tokens, API keys) # Background jobs - Use Sidekiq 8 with Redis # Testing - Always use minitest - Use `mocha` gem and VCR for external services (only in the providers layer) - Prefer `OpenStruct` for mock instances - Only mock what's necessary # Code maintenace - Run `bundle exec rubocop -a` after significant code changes - Use `.rubocop.yml` for style configuration - Security scanning with `bundle exec brakeman` # Frontend - All React components and views should be TSX # General guidance - Ask lots of clarifying questions when planning. The more the better. Make extensive use of AskUserQuestionTool to gather requirements and specifications. You can't ask too many questions. # Verify Verify the boilerplate is working by running `bin/rails server` and accessing the application at `http://localhost:3000` via playwright MCP. ## Limitations - Use this skill only when the task clearly matches the scope described above. - Do not treat the output as a substitute for environment-specific validation, testing, or expert review. - Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
INPUTS
- $1 REQUIRED
name of the new Rails project
REQUIRED CONTEXT
- project name ($1)
OPTIONAL CONTEXT
- @CLAUDE.md
TOOLS REQUIRED
- AskUserQuestionTool
- playwright MCP
ROLES & RULES
- Do not use Kamal or Docker
- Do not use Rails "solid_*" components/systems
- Development should generally match production settings where possible
- Use Redis for caching
- All tables use UUID primary keys (pgcrypto extension)
- Timestamps use `timestamptz` for timezone awareness
- JSONB columns for flexible metadata storage
- Comprehensive indexing strategy for performance
- Encrypted fields for sensitive data (OAuth tokens, API keys)
- Use Sidekiq 8 with Redis
- Always use minitest
- Use `mocha` gem and VCR for external services (only in the providers layer)
- Prefer `OpenStruct` for mock instances
- Only mock what's necessary
- Run `bundle exec rubocop -a` after significant code changes
- Use `.rubocop.yml` for style configuration
- Security scanning with `bundle exec brakeman`
- All React components and views should be TSX
- Ask lots of clarifying questions when planning
- Use this skill only when the task clearly matches the scope described above
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing
EXPECTED OUTPUT
- Format
- plain_text
- Constraints
- ask lots of clarifying questions using AskUserQuestionTool
- verify by running bin/rails server and playwright MCP
SUCCESS CRITERIA
- Verify the boilerplate is working by running `bin/rails server` and accessing the application at `http://localhost:3000` via playwright MCP
CAVEATS
- Dependencies
- @CLAUDE.md
- playwright MCP
- Missing context
- Definition or content of CLAUDE.md
- Availability and usage of AskUserQuestionTool
- Exact expansion or handling of placeholder $1
- Ambiguities
- Reference to @CLAUDE.md is undefined
- AskUserQuestionTool and playwright MCP are environment-specific and unexplained
- 'Ask lots of clarifying questions' does not specify quantity, topics, or format
QUALITY
- OVERALL
- 0.73
- CLARITY
- 0.78
- SPECIFICITY
- 0.82
- REUSABILITY
- 0.65
- COMPLETENESS
- 0.72
IMPROVEMENT SUGGESTIONS
- Replace the vague 'Ask lots of clarifying questions' instruction with a short list of required questions or a structured questioning step
- Remove or replace the @CLAUDE.md reference with self-contained guidance
- Add a brief note explaining or generalizing the verification command and tools
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR AGENT
- Rapid App MVP Prototyperagentcoding
- AI-First Design Handoff Specs Generatoragentcoding
- Test-Driven Development Workflow Rulesagentcoding
- Structured Autonomy Implementation Agentagentcoding
- PROGRESS.md Manager for Agentic Codingagentcoding
- Hard Bug Diagnosis Disciplineagentcoding
- Git Development Branch Finisheragentcoding
- Code Review Feedback Reception Protocolagentcoding
- Systematic Debugging Process Guideagentcoding
- Matplotlib Python Plotting Guideagentcoding
- LaTeX Paper PDF Compileragentcoding
- Full Output Enforcement for Code Generationagentcoding
- PyTorch Geometric GNN Implementation Guideagentcoding
- Premium React UI Design Architectagentcoding
- Astropy Python Astronomy Library Guideagentcoding
- Book SFT Style Transfer Pipelineagentcoding
- Event Sourcing and CQRS Architectagentcoding
- FluidSim Python CFD Simulation Guideagentcoding
- NetworkX Python Graph Analysis Toolkitagentcoding
- Phase-Gated Debugging Protocol Enforceragentcoding
- SimPy Discrete-Event Simulation Guideagentcoding
- Phase-Gated Code Debugging Protocolagentcoding
- Biopython Molecular Biology Toolkit Guideagentcoding
- Haskell Advanced Type Systems Expertagentcoding
- Anime.js Complex Animation Workflowagentcoding