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-29/

{
  "context": "Tests whether the agent writes structured logging calls using a static string as the first argument and a hash of structured fields as the second argument, avoids string interpolation in the log message, and includes an `event:` key for ops dashboard integration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Static first argument",
      "description": "Every Rails.logger call uses a static string literal as its first argument — no string interpolation (e.g., no `\"Processing #{id}\"`) in the first argument of any logger call",
      "max_score": 14
    },
    {
      "name": "Hash second argument",
      "description": "At least two Rails.logger calls pass a hash as the second argument containing key-value pairs of structured data (e.g., `{ order_id: ..., user_id: ... }`)",
      "max_score": 12
    },
    {
      "name": "Dynamic data in hash only",
      "description": "Dynamic values (IDs, amounts, statuses, names) appear exclusively inside the hash argument — NOT interpolated or concatenated into the first string argument",
      "max_score": 14
    },
    {
      "name": "event: key present",
      "description": "At least one logger call includes an `event:` key in its hash argument (e.g., `event: \"payment.processed\"` or `event: \"payment.failed\"`)",
      "max_score": 10
    },
    {
      "name": "Domain-specific hash fields",
      "description": "The log hash(es) include domain-relevant field names such as `payment_id:`, `user_id:`, `amount_cents:`, or `status:` — not just generic keys like `data:` or `info:`",
      "max_score": 8
    },
    {
      "name": "Multiple log levels",
      "description": "Uses at least two distinct logger severity levels (e.g., `logger.info` and `logger.error`) to distinguish normal events from error conditions",
      "max_score": 8
    },
    {
      "name": "No interpolation in any logger call",
      "description": "No logger call in the file uses Ruby string interpolation (`#{}`) or string concatenation (`+`) in the message argument — zero occurrences",
      "max_score": 10
    },
    {
      "name": "At least four log statements",
      "description": "The service contains at least four distinct Rails.logger calls, covering different stages (e.g., start, success, failure, and at least one intermediate step)",
      "max_score": 8
    },
    {
      "name": "Failure path logged at error level",
      "description": "The failure or error path uses `Rails.logger.error` (or `.warn`) — NOT `Rails.logger.info` — for the failure condition",
      "max_score": 8
    },
    {
      "name": "No puts or p for logging",
      "description": "The service does NOT use `puts`, `p`, or `pp` to output log information — all logging goes through Rails.logger",
      "max_score": 8
    }
  ]
}

README.md

tile.json