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

criteria.jsonevals/scenario-31/

{
  "context": "Tests whether the agent follows the performance optimization discipline: documenting a baseline before changing anything, writing a query-count regression spec before applying the fix, applying eager-loading for both associations, verifying the result with EXPLAIN ANALYZE output, and mentioning appropriate profiling tools — all documented in performance_analysis.md.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Baseline documented",
      "description": "performance_analysis.md contains a section that records the query count or timing observed BEFORE any code change was made (not just the post-fix count)",
      "max_score": 10
    },
    {
      "name": "N+1 bottleneck named",
      "description": "performance_analysis.md explicitly names the N+1 query pattern (loading owner and/or tasks inside a loop) as the cause of the slowdown",
      "max_score": 8
    },
    {
      "name": "Regression spec written",
      "description": "spec/performance/dashboard_spec.rb exists and contains at least one RSpec example with a query-count assertion (e.g. make_database_queries, db_query_matchers, or a counted block)",
      "max_score": 12
    },
    {
      "name": "Regression spec asserts fixed count",
      "description": "The query-count assertion in the spec uses a specific integer count (not 'any' or unbounded) that reflects the post-fix expected query number",
      "max_score": 8
    },
    {
      "name": "Owner eager loaded",
      "description": "app/controllers/dashboard_controller.rb uses .includes(:owner) or equivalent eager loading for the owner association — not lazy loading",
      "max_score": 10
    },
    {
      "name": "Tasks association optimized",
      "description": "The tasks count N+1 is also addressed — either via .includes(:tasks), counter_cache, or .size instead of .count on an included association",
      "max_score": 8
    },
    {
      "name": "EXPLAIN ANALYZE output present",
      "description": "performance_analysis.md contains EXPLAIN ANALYZE SQL output or a clearly labelled excerpt of it (look for lines containing 'Seq Scan', 'Index Scan', 'actual time', or 'Planning Time')",
      "max_score": 12
    },
    {
      "name": "Seq Scan / Index Scan interpreted",
      "description": "performance_analysis.md mentions either Seq Scan changing to Index Scan, or explains why a Seq Scan is acceptable for this table size",
      "max_score": 7
    },
    {
      "name": "Fix precedes regression spec claim",
      "description": "performance_analysis.md describes writing or planning the regression spec BEFORE or ALONGSIDE the fix — NOT only after verifying the fix worked",
      "max_score": 10
    },
    {
      "name": "Profiling tool mentioned",
      "description": "performance_analysis.md mentions at least one of: Bullet gem or rack-mini-profiler as a tool for detecting or profiling the issue",
      "max_score": 5
    },
    {
      "name": "Query count improvement quantified",
      "description": "performance_analysis.md shows or states the before-and-after query count (e.g. 'went from N+2 queries to 2 queries') — not just 'it is faster'",
      "max_score": 10
    }
  ]
}

README.md

tile.json