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

{
  "context": "Tests whether the agent adds comments that explain the WHY behind design decisions rather than restating what the code does, and uses tagged notes (TODO:, FIXME:, HACK:, NOTE:, OPTIMIZE:) with enough context for a future reader to act on them.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "No what-comments",
      "description": "No added comment simply restates what the immediately following code does (e.g., no `# iterates over tiers` above `tiers.each`, no `# returns result` above a return value)",
      "max_score": 15
    },
    {
      "name": "Why-comments on business rules",
      "description": "At least two comments explain a business rule, constraint, or edge case that is NOT obvious from reading the code alone (e.g., why a particular threshold was chosen, what a constant represents in the domain)",
      "max_score": 15
    },
    {
      "name": "Why-comment on design tradeoff",
      "description": "At least one comment explains a design or implementation tradeoff — why this approach was chosen over a plausible alternative (e.g., why promo replaces base in certain conditions rather than always adding)",
      "max_score": 12
    },
    {
      "name": "Tagged note present",
      "description": "At least one comment uses a recognised tag in the format: TODO:, FIXME:, HACK:, NOTE:, or OPTIMIZE: (colon included, uppercase)",
      "max_score": 10
    },
    {
      "name": "Tagged note has actionable context",
      "description": "The tagged note includes enough context for a future reader to act on it — not just `# TODO: fix` but something like `# TODO: replace with lookup table once pricing team confirms final tier structure`",
      "max_score": 13
    },
    {
      "name": "Comment on MAX_DISCOUNT rationale",
      "description": "A comment near the MAX_DISCOUNT constant or its usage explains WHY the 60% cap exists (e.g., business rule, margin requirement, contractual constraint) — not just that it is a maximum",
      "max_score": 10
    },
    {
      "name": "Comment on promo branching logic",
      "description": "A comment explains WHY the `promo > base` branch replaces (rather than adds) the base discount — capturing the intent that the higher of promo-only or combined discount applies",
      "max_score": 10
    },
    {
      "name": "Domain concept referenced",
      "description": "At least one comment references a domain concept or business term by name (e.g., a pricing model name, a tier definition, a promotional programme name) rather than only describing technical mechanics",
      "max_score": 5
    },
    {
      "name": "Comment on inactive subscription guard",
      "description": "A comment near the `return 0.0 unless @subscription.active?` guard explains WHY an inactive subscription returns zero rather than raising or returning nil (capturing the expected caller contract)",
      "max_score": 5
    },
    {
      "name": "No code duplicated in comments",
      "description": "No comment restates code by writing Ruby syntax or variable names into the comment text (e.g., no `# calls TIER_RATES.fetch(@subscription.tier, 0.0)` — this is just quoting code)",
      "max_score": 5
    }
  ]
}

README.md

tile.json