CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/rails-agent-skills

Curated library of 41 public AI agent skills for Ruby on Rails development. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, and orchestration. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation. Repository workflows remain documented in GitHub but are intentionally excluded from the Tessl tile.

95

1.77x
Quality

93%

Does it follow best practices?

Impact

96%

1.77x

Average score across 41 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

SKILL.mdskills/orchestration/skill-router/

name:
skill-router
license:
MIT
description:
Triages and decomposes complex Ruby on Rails requests into ordered sub-tasks, then delegates to specialized skills for testing, code review, engines, DDD, and patterns. Enforces TDD discipline across all code-producing work. Use when scope is unclear, the best approach is uncertain, or a request spans multiple Rails concerns. Trigger: where do I start, help me plan a Rails feature, break this down, what's the best approach for this Rails work, not sure how to approach this, multi-step Rails task, complex Rails task, what should I do first.
metadata:
{"user-invocable":"true","version":"1.0.0","keywords":"rails, ruby, tdd, testing, code-review, engines, ddd, orchestration, entry-point"}

Skill Router

Quick Reference

ScenarioPrimary Skill
Fallback: unfamiliar codebase / ambiguityload-context
Planning a featurecreate-prd then generate-tasks
Choosing where to start testingplan-tests
Reviewing codecode-review
Fixing a bugtriage-bug

HARD-GATE

Non-negotiable: no implementation code until a test exists, runs, and fails for the right reason (feature missing, not config/syntax).
ALWAYS identify the matching skill and name it explicitly as the next skill to use before responding further.

Core Process

Triages and decomposes any Ruby on Rails request into ordered sub-tasks, then delegates to the correct specialized skill. 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. In an active response, make the routing statement, such as Next skill: skills/context/load-context, the first substantive line before analysis or implementation. When multiple skills may apply, immediately follow the routing line with one concise priority/chain statement, such as Priority: security-check > review-migration; Chain: security-check then review-migration, before any analysis or implementation. For reference artifacts, show at least one concrete active-response example using this routing-first, priority/chain-second ordering.

Core Skills (Most Common)

SkillUse when...
load-contextBefore any code/spec/PRD in an existing Rails codebase — load schema, routes, nearest patterns, surface ambiguity
write-testsWriting, reviewing, or cleaning up RSpec tests; TDD discipline for all implementation
plan-testsChoosing the best first failing spec for a Rails change
triage-bugTurning a bug report into a reproduction spec and fix plan
code-reviewReviewing Rails PRs, controllers, models, migrations, or queries — the subject is a specific file or changeset
review-architectureReviewing structure, boundaries, fat models/controllers — the question is about design or system shape, not a specific PR
apply-stack-conventionsWriting Rails code for PostgreSQL + Hotwire + Tailwind stack
refactor-codeRestructuring code while preserving behavior
create-prdPlanning a feature or writing requirements
generate-tasksBreaking a PRD into implementation tasks

Skill Priority

When multiple skills could apply, state this priority rule immediately after the routing statement:

Priority: TDD → Planning → Domain discovery → Process/refactor → Domain implementation.

Use plan-tests when the first failing spec is not obvious.

Key disambiguation signals:

  • review-architecture vs code-review: use architecture-review when the question is about system shape, service boundaries, or design patterns; use code-review when the subject is a concrete PR, file, or changeset.
  • plan-tests vs write-tests: use tdd-slices when the challenge is which test to write first; use write-tests when the challenge is how to write or improve a test.
  • load-context before any other code-producing skill in an unfamiliar or existing codebase.

Fallback for ambiguous requests: If no clear skill match, label this explicitly as Fallback: load-context, load codebase context, then re-evaluate based on findings.

Multi-Concern PR Review Chains

When a request names several changed areas, do not route only to code-review. Decompose the changeset and name the ordered chain:

Changed areaAdd this review skill
Controllers, models, services, jobs, or testscode-review
Migrations or schema changesreview-migration
Authorization, authentication, secrets, uploads, redirects, or input handlingsecurity-check
Engine namespace, dummy app, install generator, host integration, or release surfacereview-engine
Boundary, orchestration, callback, or abstraction concernsreview-architecture

Start with load-context for an existing PR or unfamiliar codebase, then run the specialized review skills in risk order: security/data-loss first, migrations second, architecture/engine boundaries third, general code review last.

Typical Workflows

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

TDD Feature Loop (primary daily workflow) — use skills/workflows/tdd-workflow: skills/context/load-context → [CHECK: context loaded] → skills/workflows/tdd-workflow → PR

Feature (standard): skills/context/load-context → [CHECK: context loaded] → skills/planning/create-prd → [CHECK: PRD approved] → skills/planning/generate-tasks → [CHECK: tasks complete] → skills/workflows/tdd-workflow

Bug fix: skills/testing/triage-bug → [GATE: reproduction spec fails] → skills/workflows/tdd-workflow → fix → verify passes

Multi-concern PR review: skills/context/load-context → skills/code-quality/security-check (if auth/input/secrets touched) → skills/infrastructure/review-migration (if schema touched) → skills/engines/review-engine (if engine touched) → skills/code-quality/review-architecture (if boundaries touched) → skills/code-quality/code-review

Extended Resources

  • assets/examples.md — 20+ routing examples covering ambiguous requests, multi-concern PRs, DDD-first features, engines, and edge cases
  • assets/workflows.md — Extended workflow definitions for DDD-first, code review, engines, refactoring, and GraphQL
  • docs/reference/skill-catalog.md — Complete skill catalog with trigger words, descriptions, and stage-based navigation

Output Style

  1. Routing statement: Clearly state the next skill being invoked as the first substantive line of the response.

    Next skill: skills/context/load-context
    
    This is a feature request with unclear scope. I'll start by loading the codebase context, then create a PRD.

    Put this routing statement before any deeper analysis. If multiple skills apply, immediately follow it with one concise priority/chain statement before analysis or implementation:

    Next skill: skills/context/load-context
    Priority: security-check > review-migration > code-review; Chain: load-context then security-check, review-migration, code-review.
    
    This PR spans authorization, schema changes, and general Rails behavior, so I will load context first and then review in risk order.
  2. Language: Generated artifacts (YARD docs, Postman collections, READMEs) and output MUST be in English unless explicitly requested otherwise.

Integration

SkillWhen to chain
load-contextDefault for ambiguous requests
create-prdFor new features

skills

orchestration

README.md

server.json

tile.json