CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/ruby-core-skills

Curated library of 16 public Ruby AI agent skills covering TDD, refactoring, code review, security review, DDD, YARD documentation, and common design patterns.

94

1.13x
Quality

96%

Does it follow best practices?

Impact

94%

1.13x

Average score across 16 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

examples.mdskills/patterns/implement-calculator-pattern/assets/

implement-calculator-pattern examples

  1. Factory usage example (Ruby)
calculator = StrategyFactory.for(account: account)
result = calculator.calculate(amount: 1000)
  1. Null calculator behavior

NullCalculator returns zeroed results and never raises, safe to use as fallback:

{ value: 0, breakdown: {}, warnings: [] }
  1. Lookup order
  • The factory tries strategies in lookup_order and falls back to null_calculator if none match.
  1. Required verification shape
  • Factory, BaseService, NullService, and concrete services each get their own RED command and GREEN checkpoint.
  • Concrete services mirror contexts for named variant, inactive plan, nil plan, and unknown variant when applicable.
  • BaseService raises NotImplementedError, "#{self.class}#compute_result must be implemented" until a concrete service implements the calculation.

skills

README.md

tile.json