CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/rails-agent-skills

Curated library of AI agent skills for Ruby on Rails development. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and workflow automation.

98

1.38x
Quality

99%

Does it follow best practices?

Impact

98%

1.38x

Average score across 26 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

SKILL.mdrails-skills-orchestrator/

name:
rails-skills-orchestrator
description:
Use as the entry point when the task scope is unclear or spans multiple concerns — this skill routes and gates only; it does not implement anything itself. Identifies which specialized skill to invoke next (rspec-best-practices, rails-code-review, rails-tdd-slices, rails-migration-safety, rails-engine-author, ruby-service-objects, etc.) and enforces the Tests Gate Implementation mandate across all code-producing tasks. Select this INSTEAD of individual Rails skills when you don't yet know which specialist applies. Trigger words: where do I start, not sure how to approach this, don't know which skill to use, multi-step Rails task, unclear scope, spans multiple concerns, new complex Rails feature, how do I begin, what should I do first.

Rails Skills Orchestrator

Routes to the correct specialized skill for any Ruby on Rails task and enforces the Tests Gate Implementation mandate across all code-producing work.

When a task arrives, identify the matching skill from the tables below and name it explicitly as the next skill to use before responding further. Generated artifacts (YARD docs, Postman collections, READMEs) must be in English unless the user explicitly requests another language.

CROSS-CUTTING MANDATE: Tests Gate Implementation

Non-negotiable across every code-producing skill. Workflow: PRD → TASKS → TESTS → IMPLEMENTATION → YARD → DOCS → CODE REVIEW → PR. No implementation code until the test exists, has been run, and fails for the right reason.

Gate cycle per behavior:

  1. Write test → bundle exec rspec path/to/spec → confirm failure reason is feature missing, not a config or syntax error
  2. CHECKPOINT — Test Feedback: verify right behavior, right boundary, edge cases covered — only proceed once confirmed
  3. CHECKPOINT — Implementation Proposal: name classes/methods to create or modify, state data flow, wait for explicit approval
  4. Write minimal implementation → bundle exec rspec path/to/spec → confirm green; full suite → confirm no regressions
  5. Refactor — tests stay green → repeat from step 1 for next behavior

After all behaviors pass: GATE — bundle exec rubocop && bundle exec rspec → YARD docs → README/diagrams → rails-code-review self-review → PR → rails-review-response on feedback

Available Skills

Planning & Tasks

SkillUse when...
create-prdPlanning a feature or writing requirements
generate-tasksBreaking a PRD into implementation tasks
ticket-planningCreating Jira tickets from a plan

Rails Code Quality

SkillUse when...
rails-code-reviewReviewing Rails PRs, controllers, models, migrations, or queries
rails-review-responseEvaluating or implementing code review feedback
rails-architecture-reviewReviewing structure, boundaries, fat models/controllers
rails-security-reviewAuditing for XSS, CSRF, SQL injection, auth flaws
rails-migration-safetyPlanning or reviewing production-safe migrations
rails-stack-conventionsWriting Rails code for PostgreSQL + Hotwire + Tailwind stack
rails-code-conventionsDaily coding checklist: DRY/YAGNI/PORO/CoC/KISS, linters, structured logging
rails-background-jobsAdding or reviewing background jobs
rails-graphql-best-practicesBuilding or reviewing GraphQL APIs with graphql-ruby

DDD & Domain Modeling

SkillUse when...
ddd-ubiquitous-languageClarifying domain terms or building a shared business glossary
ddd-boundaries-reviewReviewing bounded contexts and language leakage
ddd-rails-modelingMapping DDD concepts to Rails models, services, and value objects

Ruby Patterns

SkillUse when...
ruby-service-objectsCreating service classes with .call pattern
ruby-api-client-integrationIntegrating external APIs with the layered Auth/Client/Fetcher/Builder pattern
strategy-factory-null-calculatorBuilding variant-based calculators with SERVICE_MAP dispatch
yard-documentationWriting or reviewing YARD docs for Ruby classes and public methods

Testing

SkillUse when...
rspec-best-practicesWriting, reviewing, or cleaning up RSpec tests; TDD discipline for all implementation
rails-tdd-slicesChoosing the best first failing spec for a Rails change
rails-bug-triageTurning a bug report into a reproduction spec and fix plan
rspec-service-testingTesting service objects (spec/services/)

Rails Engines

SkillUse when...
rails-engine-authorCreating or scaffolding a Rails engine
rails-engine-testingSetting up dummy app and engine specs
rails-engine-reviewerReviewing an existing engine
rails-engine-releasePreparing an engine release
rails-engine-docsWriting engine documentation
rails-engine-installersCreating install generators
rails-engine-extractionExtracting host app code into an engine
rails-engine-compatibilityEnsuring cross-version compatibility
api-rest-collectionGenerating or updating Postman collections for REST endpoints

Refactoring

SkillUse when...
refactor-safelyRestructuring code while preserving behavior

Skill Priority

When multiple skills could apply: TDD → Planning → Domain discovery → Process (refactor-safely) → Domain implementation (rails-*, ruby-*). Use rails-tdd-slices when the first failing spec is not obvious.

Typical Workflows

Sub-skills are invoked by stating their name as the next skill to apply, e.g. "Next skill: rails-tdd-slices", before proceeding with that skill's instructions.

TDD Feature Loop (primary daily workflow): rails-tdd-slices → [Test Feedback checkpoint][Implementation Proposal checkpoint] → implement → [Linters + Suite gate] → yard-documentation → rails-code-review → rails-review-response (on feedback) → PR

Feature (standard): create-prd → generate-tasks → TDD Feature Loop

Feature (DDD-first): create-prd → ddd-ubiquitous-language → ddd-boundaries-review → ddd-rails-modeling → generate-tasks → TDD Feature Loop

Code review + response: rails-code-review → rails-review-response (on feedback) → re-review if Critical items addressed

Bug fix: rails-bug-triage → rails-tdd-slices → [GATE: reproduction spec fails] → fix → verify passes

New engine: rails-engine-author → [GATE: engine specs fail] → implement → rails-engine-docs

Refactoring: refactor-safely → [GATE: characterization tests pass on current code] → refactor → verify still pass

GraphQL: ddd-ubiquitous-language → rails-graphql-best-practices → TDD Feature Loop → rails-security-review

rails-skills-orchestrator

README.md

tile.json