Rails Agent Skills
A curated library of 28 executable skill files that turn AI coding assistants into disciplined Rails developers who follow conventions, write tests first, and ship production-quality code.
A vanilla AI assistant gives you generic, context-free answers. It doesn't know your project conventions. It doesn't enforce TDD. It doesn't know whether you're using Solid Queue or Sidekiq, Pundit or CanCanCan, Hotwire or a JS framework.
The result: plausible-looking code that doesn't fit your stack, inconsistent patterns across sessions, and no discipline around testing.
What vanilla AI gives you
A skill (SKILL.md) is a detailed recipe that tells an AI
how to perform one specific task — review a migration, write a service spec,
create a Rails engine. It includes hard rules, step-by-step instructions,
and a checklist for output quality.
An agent is a higher-level orchestrator that chains multiple skills
into a complete development loop. The TDD agent, for example, calls
load-context → plan-tests → write-tests
→ implement → code-review → PR.
Skills are building blocks; agents are the unit of value.
Each skill lives in skills/<category>/<name>/SKILL.md.
Supporting files (examples, patterns, checklists) load on demand — you read only what you need.
Plus 15 shared skills from ruby-core-skills for YARD docs, DDD, service objects, process discipline, and more.
Every skill that produces code enforces a HARD-GATE: you cannot write implementation until a failing test proves the feature is missing. This is not a suggestion — it is encoded in every skill file.
If you wrote implementation code before the test, delete it and start over.
Agents live in agents/<name>/SKILL.md. Each one sequences multiple atomic skills
into a complete development loop. You invoke the agent; it chains the skills.
This is the recommended daily workflow. Starting from an idea, the TDD agent walks through every step — no shortcuts.
Every skill follows the same template. The structure makes rules impossible to ignore and instructions easy to follow.
This repository uses lean-ctx, a context engineering layer that replaces file reads with compressed, cached alternatives. The goal: deliver the information an AI needs while using 50-80% fewer tokens.
ctx_read(path, mode)
10 compression modes (map, signatures, aggressive, entropy…). Cached re-reads ~13 tokens.
ctx_search(pattern)
Compact regex search results. Token-efficient over grep.
ctx_shell(command)
Pattern compression for git, npm, and common output.
ctx_read(full)
Never use full for files you won't edit. Use map or signatures.
This repo is one piece of a composable skill ecosystem. Skills resolve dependencies
automatically across repos via the agent-mcp-runtime.
Whether you are an AI assistant or a developer reading this repository, the workflow is the same.
skills/context/load-context
agents/tdd
Install via npx skills add igmarin/rails-agent-skills or gh skill install igmarin/rails-agent-skills