SkillTrust

← All skills

activerecord-patterns

100 / 100 · Low risk

Fine to try.

By MadBomber/experiments (GitHub) · coding · 11 stars · scanned at commit 8139ff6

Idiomatic ActiveRecord patterns for Ruby on Rails — associations (belongs_to/has_many/has_one/has_many :through), counter_cache, polymorphic, STI vs delegated_type, scopes vs class methods, callbacks vs after_commit, find vs find_by vs where.first, includes vs preload vs eager_load, pluck vs select, exists? vs any?, batch processing with find_each, and fat-models-with-concerns. Use whenever the user writes or reviews ActiveRecord models, asks why a Rails query is slow or wrong, mentions include…

Works with any agent that supports SKILL.md skills.

What this skill can do

We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'activerecord-patterns' ] || [ -L ~/.agents/skills/'activerecord-patterns' ]; then echo 'A skill folder named activerecord-patterns already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/MadBomber/experiments' "$d" && git -C "$d" checkout --quiet '8139ff68e8895b544661aa2ba8b53268d68652bc' -- 'ai_misc/skills/rails-skills/01-activerecord-patterns' && mkdir -p ~/.agents/skills && cp -R "$d"/'ai_misc/skills/rails-skills/01-activerecord-patterns' ~/.agents/skills/'activerecord-patterns' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'activerecord-patterns' ~/.claude/skills/'activerecord-patterns' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for MadBomber/experiments shows the score of its lowest-scoring skill.

SkillTrust badge for MadBomber/experiments

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/MadBomber/experiments.svg)](https://zalavijaysinh.github.io/skilltrust/repos/MadBomber/experiments/)

Score history

DateVersionScore
2026-11-108139ff6100