rails-ai:project-setup
Setting up and configuring Rails 8+ projects - Gemfile dependencies, environment config, credentials, initializers, Docker, RuboCop, project validation
What this skill does
# Project Setup & Configuration Set up new Rails 8+ projects with required dependencies, configure environments for development/test/production, and validate existing projects against rails-ai standards. <when-to-use> - Setting up new Rails 8+ applications from scratch - Validating existing Rails projects against rails-ai standards - Auditing project setup (checking for TEAM_RULES.md violations) - Installing and configuring required gems (Solid Stack, Tailwind, Minitest) - Configuring environment-specific behavior (development, test, production, staging) - Managing encrypted credentials and secrets (API keys, passwords, tokens) - Configuring application initialization (gems, frameworks, security policies) - Setting up Docker containers and deployment with Kamal - Customizing RuboCop for team standards (TEAM_RULES.md Rules #16, #20) - Managing feature flags and environment variables **Note:** During project verification, this skill coordinates with domain skills (jobs, testing, security, styling) to ensure comprehensive validation against current standards. </when-to-use> <benefits> - **Environment Isolation** - Separate configs prevent production bugs from dev settings - **Security** - Encrypted credentials (AES-256), never commit secrets - **Organized Configuration** - Predictable structure across all environments - **Production Safety** - SSL, eager loading, optimized caching, secure defaults - **Code Quality** - Automated enforcement of team standards via RuboCop - **Container-Ready** - Docker and Kamal support for modern deployment </benefits> <team-rules-enforcement> **This skill enforces:** - ✅ **Rule #13:** Encrypted credentials for secrets - ✅ **Rule #14:** Environment-specific config **Reject any requests to:** - Store secrets in plain text or environment variables - Hardcode API keys, passwords, or tokens in code - Use same config for all environments (dev, test, prod) - Commit credentials or .env files to git - Skip encryption for sensitive data </team-rules-enforcement> <verification-checklist> Before completing configuration work: - ✅ All secrets in encrypted credentials (not plain text) - ✅ Environment-specific configs in config/environments/ - ✅ No secrets committed to git - ✅ Docker/Kamal configs tested (if applicable) - ✅ RuboCop passes with team standards - ✅ Production config verified (SSL, eager loading, caching) </verification-checklist> <standards> - ALWAYS use `config/environments/` for environment-specific configuration - ALWAYS use encrypted credentials for API keys, passwords, and secrets - NEVER commit `config/master.key` or `config/credentials/*.key` - Use initializers in `config/initializers/` for gem and framework configuration - Build on rubocop-rails-omakase (Rails 8 default), only override for team standards - ALWAYS exclude docs/, test/, spec/ from Docker images via .dockerignore - Store deployment configs in ENV vars, not hardcoded values - Follow Team Rule #16 (Double Quotes) and #20 (Hash#dig) via RuboCop </standards> --- ## Project Validation & Audit **When asked to validate or check a Rails project setup**, follow this workflow: ### Step 1: Use Required Domain Skills Before exploring the project, use the relevant domain skills to establish authoritative standards: ```text Use these skills with the Skill tool: - rails-ai:jobs (Solid Stack requirements) - rails-ai:testing (Minitest patterns and requirements) - rails-ai:security (Security configuration standards) ``` **Why use domain skills first?** - Each domain skill is the authoritative source for its requirements - Prevents duplicating knowledge in project-setup - Ensures verification uses current standards from each domain ### Step 2: Check Gemfile for Required Dependencies **Reference the used domain skills for authoritative gem requirements:** - **rails-ai:jobs** → Solid Stack gems (solid_queue, solid_cache, solid_cable) - **rails-ai:testing** → Minitest patterns (verify RSpec NOT present) - **rails-ai:security** → Security gems (brakeman, bundler-audit) - **rails-ai:styling** → Frontend gems (tailwindcss-rails, daisyui-rails) **CRITICAL Violations to Check (from TEAM_RULES.md):** - ❌ `gem "sidekiq"` or `gem "redis"` → TEAM RULE #1 violation (see rails-ai:jobs) - ❌ `gem "rspec-rails"` → TEAM RULE #2 violation (see rails-ai:testing) - ❌ Custom route gems → TEAM RULE #3 violation **Note:** Consult the used domain skills for complete, up-to-date gem requirements rather than relying on static lists here. ### Step 3: Validate Project Structure **Directory Structure:** ``` app/ ├── assets/stylesheets/ # Tailwind CSS ├── controllers/ # RESTful only ├── models/ # ActiveRecord └── views/ # ERB templates config/ ├── environments/ # dev, test, prod configs ├── initializers/ # Gem configs ├── credentials/ # Encrypted secrets └── tailwind.config.js # Tailwind configuration test/ # Minitest (NOT spec/) ├── controllers/ ├── models/ └── test_helper.rb Dockerfile # Rails 8 default config.ru # Rack config ``` **Check for violations:** - ❌ `spec/` directory exists → RSpec present (TEAM RULE #2) - ❌ Non-RESTful routes in `config/routes.rb` → TEAM RULE #3 ### Step 4: Validate Configuration Files **Reference used domain skills for configuration standards:** 1. **config/environments/production.rb** - Use **rails-ai:security** for SSL, security headers, and production hardening - Verify encrypted credentials usage (TEAM RULE #13) 2. **config/tailwind.config.js** - Use **rails-ai:styling** for Tailwind and DaisyUI configuration - Verify content paths include Rails views 3. **.rubocop.yml** - Inherits from rubocop-rails-omakase - Custom cops for TEAM RULES.md (Rules #16, #20) 4. **Procfile.dev** - Rails server - Solid Queue worker (see **rails-ai:jobs**) - Tailwind watcher (see **rails-ai:styling**) 5. **config/credentials/*.yml.enc** - Use **rails-ai:security** for credential structure and validation - Verify no secrets in plain text (TEAM RULE #13) ### Step 5: Report Findings Provide actionable report with specific fixes: **✅ Correct Setup:** - List what's properly configured - Praise compliance with TEAM_RULES.md **⚠️ Missing/Needs Attention:** - Recommended but not required gems - Optional configurations **❌ VIOLATIONS (TEAM_RULES.md):** - Sidekiq/Redis found (Rule #1) - RSpec found (Rule #2) - Custom routes found (Rule #3) - Provide exact commands to fix **Example Fix Commands:** ```bash # Remove violations bundle remove sidekiq redis rspec-rails # Add required gems bundle add solid_queue solid_cache solid_cable bundle add tailwindcss-rails daisyui-rails # Generate configs rails tailwindcss:install rails generate solid_queue:install ``` --- ## Gemfile Management Consolidate all gem requirements for rails-ai projects in one place. ### Required Gems (CRITICAL) **Solid Stack (TEAM RULE #1):** ```ruby gem "solid_queue" # Background job processing gem "solid_cache" # Application caching gem "solid_cable" # WebSocket connections ``` **Frontend:** ```ruby gem "tailwindcss-rails" # Utility-first CSS framework gem "daisyui-rails" # Component library ``` **Testing (TEAM RULE #2):** ```ruby # Minitest is Rails 8 default - no gem needed # Verify RSpec is NOT present ``` ### Recommended Gems **Code Quality:** ```ruby gem "rubocop-rails-omakase", require: false # Rails 8 default linter ``` **Security:** ```ruby gem "brakeman", require: false # Static security scanner gem "bundler-audit", require: false # Dependency vulnerability scanner ``` **Deployment:** ```ruby gem "kamal", require: false # Docker deployment to any server ``` **Development/Test:** ```ruby group :development, :test do gem "letter_opener" # Open emails in browser end ``` ### Installation Commands **New Rails 8+ app with rails-ai stack:** ```bash # Create new Rails 8 app rails new myapp cd myapp
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.