CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/rails-agent-skills

Curated library of 39 AI agent skills for Ruby on Rails development. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, orchestration, and workflows. Includes 5 callable workflow skills (rails-tdd-loop, rails-review-flow, rails-setup-flow, rails-quality-flow, rails-engines-flow) for complete development cycles. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation.

95

1.20x
Quality

98%

Does it follow best practices?

Impact

95%

1.20x

Average score across 35 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

review.mddocs/workflows/

Workflow: Review & Validation (50)

When to use: Review your own or others' code, respond to feedback, or audit security/architecture.


Main Flow: Code Review

graph TB
    subgraph Review [👁️ Phase 1: Review]
        direction TB
        A[PR ready] --> B[rails-code-review]
        B --> C{Security concerns?}
        C -- Yes --> D[rails-security-review]
    end

    subgraph DeepDive [🔍 Phase 2: Deep Dive - Optional]
        direction TB
        C -- No --> E{Architecture issues?}
        E -- Yes --> F[rails-architecture-review]
        D --> F
    end

    subgraph Respond [📝 Phase 3: Respond]
        direction TB
        E -- No --> G{Findings?}
        F --> G
        G -- Critical --> H[rails-review-response]
        H --> I[Implement fixes]
        I --> J{Critical fixed?}
        J -- No --> K[Re-review]
        J -- Yes --> L((Merge))
    end

    G -- None/minor --> L
    K --> B

    %% Styling
    style Review fill:#f5f5f5,stroke:#333,stroke-dasharray: 5 5
    style DeepDive fill:#f3e5f5,stroke:#4a148c
    style Respond fill:#e1f5fe,stroke:#01579b
    style C fill:#ffd54f
    style E fill:#ffd54f
    style G fill:#ffd54f
    style J fill:#ffd54f
    style L fill:#e8f5e9,stroke:#1b5e20,stroke-width:3px

rails-code-review

Goal: Systematic Rails PR review.

Checklist by Area

AreaWhat to review
RoutingRESTful routes, shallow nesting, route helpers
ControllersThin, 1-line actions, strong params, callbacks audit
ModelsValidations, scopes, callbacks, N+1 queries
QueriesEager loading, pluck vs map, exists? vs present?
MigrationsReversible, index names, null constraints
SecurityStrong params, auth checks, output encoding
TestingCorrect spec type, minimal factories, no internal mocks
JobsIdempotency, retry config, log context

Severity Levels

LevelAction
CriticalBlocks merge — fix before merging
SuggestionFix in this PR or separate ticket
Nice to haveOptional, does not block

rails-security-review

Goal: Deep security dive.

Audit Checklist

  • Auth — Session management, token handling
  • Authorization — IDOR, role checks, policy coverage
  • Input validation — Strong params, SQL injection
  • Output encoding — XSS prevention
  • Redirects — Open redirect vulnerabilities
  • Secrets — Never in code, logs, or VCS
  • GraphQL — Introspection off in prod, depth limits

rails-architecture-review

Goal: Structural review of boundaries and abstractions.

Review Signals

  • Feature crosses multiple models without clarity
  • Service creates/modifies unrelated models
  • Complex callbacks calling other models
  • Logic duplicated between controllers

Output

  • Boundary recommendations
  • Extraction suggestions
  • Coupling assessment

rails-review-response

Goal: Respond to received feedback.

Process

  1. Evaluate each suggestion — is it correct?
  2. Push back if wrong — explain why
  3. Implement accepted items — one at a time
  4. Re-review mandatory if Critical findings

Anti-pattern: "LGTM! Will address in follow-up" — no performative agreement


Skills in this Workflow

SkillDescriptionTrigger words
rails-code-reviewSystematic PR review"review PR", "code review", "check this code"
rails-security-reviewSecurity audit"security", "audit", "vulnerability", "XSS", "SQL injection"
rails-architecture-reviewStructural review"architecture", "structure", "boundaries", "extract"
rails-review-responseRespond to feedback"feedback", "review comments", "address feedback"
api-rest-collectionAPI testing docs"Postman", "API collection", "REST endpoints"

docs

architecture.md

implementation-guide.md

index.md

plugin-validation.md

README.md

skill-design-principles.md

skill-optimization-guide.md

skill-structure.md

skill-template.md

vs-code-setup.md

workflow-guide.md

README.md

tile.json