ruby-sensei

ruby-sensei is a skill for Claude Code, Codex from izkreny/agentifico. It costs 121 tokens per session (1,988 once invoked), scanned A, original, MIT.

A Ruby 4.0 design and review guide covering object and method design, collections, errors, concurrency, tests, metaprogramming, packages, and type definitions. It supplements automated style checks with decisions about how Ruby code should be shaped.

In plain words
What is it for?
Use it when writing, refactoring, or reviewing Ruby code, tests, gem specifications, or plugins. It helps choose suitable designs for threads, fibers, Ractors, Minitest, and RBS types.
Why use it?
It addresses design choices that a linter cannot judge. It also accounts for repositories that target an older Ruby version or have their own project rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing, refactoring, or reviewing Ruby code, tests, gem specifications, or plugins. It helps choose suitable designs for threads, fibers, Ractors, Minitest, and RBS types.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/izkreny/agentifico/ruby-sensei
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add izkreny/agentifico --skill ruby-sensei
Clone the repo
git clone --depth 1 https://github.com/izkreny/agentifico

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ruby-sensei

README.md
[![agentmods](https://agentmods.dev/badge/skills/izkreny/agentifico/ruby-sensei/github.svg)](https://agentmods.dev/skills/izkreny/agentifico/ruby-sensei)
Your own site
<a href="https://agentmods.dev/skills/izkreny/agentifico/ruby-sensei"><img src="https://agentmods.dev/badge/skills/izkreny/agentifico/ruby-sensei/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ruby-sensei

Your own site · 80×15
<a href="https://agentmods.dev/skills/izkreny/agentifico/ruby-sensei"><img src="https://agentmods.dev/badge/skills/izkreny/agentifico/ruby-sensei.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.01988
Opus 5.5 $0.00048 $0.00795
Sonnet 5.5 $0.00024 $0.00398
Haiku 4.5 $0.00012 $0.00199

Measured 9d ago against content hash 5f2408256c17, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ruby-sensei scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/check_floor.rb, scripts/check_floor/cli.rb, scripts/check_floor/common.rb, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ruby-sensei/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ruby sensei

The rules for Ruby that a linter cannot check: how code is shaped, not how it is spelled. Paths in this skill are relative to its own directory.

Precedence

A repository's architecture decision records and its RuboCop configuration win wherever they differ from this skill. Follow them and do not flag the difference, because the repository chose it on purpose and this skill is a default for many repositories.

This skill targets Ruby 4.0. In a repository whose <repo-root>/.ruby-version, <repo-root>/mise.toml, Gemfile or gemspec pins an older Ruby, use no syntax, class or behaviour newer than that version, and check the release notes of the pinned version before relying on a rule that names a Ruby release.

Where its sources disagree, the rule as written in this skill is the one chosen; README.md records each such choice, so the sources are never re-weighed while writing code.

What the linters own

This skill leaves out every rule that RuboCop enforces with its default configuration, and that rubocop-performance, rubocop-minitest, rubocop-thread_safety and rubocop-on-rbs enforce at theirs, at the versions Gemfile.lock records, and assets/floor.yml names every cop the skill relies on. In a repository on other versions, bundle exec ruby <skill-dir>/scripts/check_floor.rb --config .rubocop.yml, run from <repo-root>, names any of those cops that is off there, and the skill does not cover its rule. Run the linter rather than reasoning about these, and read every change an unsafe autocorrection, rubocop -A, makes before keeping it, because it can change behaviour; in a repository that runs no linter they still hold:

  • Control flow: guard clauses instead of nested conditionals, next in loops, no nested ternaries or modifiers, if and case used as values, case rather than an if chain testing one subject, no statement that every branch repeats, no redundant return, self, begin or double negation, && and || rather than and and or in conditions.
  • Exceptions: never rescue or raise Exception or subclass it, no empty rescue, specific rescues before general ones, no return in ensure, no rescue modifier, raise rather than fail, and raise Klass, "message".
  • Files and constants: the # frozen_string_literal: true comment, frozen literal constants, no class variables, no global variables, no top-level include, nested module definitions, and a class comment.
  • Methods and arguments: boolean defaults as keywords, optional arguments last, no unused arguments, method_missing paired with respond_to_missing?, super in constructors and hooks, no nested method definitions, yield rather than calling a captured block.
  • Names: snake_case methods and variables, CamelCase classes, SCREAMING_SNAKE constants, no is_ prefix on predicates, no get_ or set_ accessors, memoised instance variables named after their method.
  • Collections and strings: each rather than for, the dedicated Enumerable, Hash and String method for the job, such as each_with_object, transform_values or start_with?, endless ranges for slicing, cover? rather than include? on a range, a hash rather than a case that maps keys to literals, interpolation rather than concatenation.
  • Security: no eval, Marshal.load, YAML.load or JSON.load on untrusted input, no Kernel#open or URI.open with a computed argument.
  • Gemspec and Gemfile: a required_ruby_version that matches the target, no RUBY_VERSION in the gemspec, no insecure sources, no duplicated gems.
  • Tests and threads: the specific Minitest assertion (assert_nil, assert_empty, assert_includes), no global expectations; no mutable class-level state or class-level attribute accessors, no Dir.chdir, no bare Thread.new in library code.
  • Size and complexity: the Metrics cops count method, class and block length, parameters, branches and nesting. Treat a Metrics offense as a signal, never a target: it names a count, and the fault behind it is in the references, such as a method doing two jobs, a class with two responsibilities, or a parameter list hiding an object.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 71 lines · 121 tokens per session scan A 5f2408256c17

Subscribe to this mod's changes

ruby-sensei is a skill published in the GitHub repository izkreny/agentifico (4 stars, last pushed 2d ago), licensed MIT. It adds 121 tokens to every session and 1,988 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

ruby-sensei compared with skills from other repositories

ruby-sensei next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ruby-senseiizkreny/agentificoSkill42d agoMITA121Claude Code, Codex
newclacky-ai/openclackySkill1.2kyesterdayMITA10Claude Code
dhh-rails-styledavekilleen/DexSkill5222d agoMITA115Claude Code
rspec-conventionsrootstrap/rails_api_baseSkill63519d agoMITA82Claude Code
ruby-patternssoftspark/ai-toolkitSkill180todayApache-2.0A60Claude Code
rigor-rbs-contractrigortype/rigorSkill108yesterdayMPL-2.0A95Claude Code, Codex
ruby-rulessoftspark/ai-toolkitSkill180todayApache-2.0A48Claude Code