Laravel TDD
affaan-m/ECC
Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.
Creates Rails concerns for shared behavior across models or controllers with TDD.
$ npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ThibautBaissac/rails_ai_agents rails-concern --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rails-concern .claude/skills/rails-concern && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "rails-concern" agent skill from https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concern into .claude/skills/rails-concern/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rails-concern", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concernType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ThibautBaissac/rails_ai_agents rails-concern --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/rails-concern .agents/skills/rails-concern && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rails-concern" agent skill from https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concern into .agents/skills/rails-concern/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rails-concern", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ThibautBaissac/rails_ai_agents rails-concern --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/rails-concern .cursor/skills/rails-concern && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rails-concern" agent skill from https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concern into .cursor/skills/rails-concern/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rails-concern", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ThibautBaissac/rails_ai_agents.git --path .agents/skills/rails-concern--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ThibautBaissac/rails_ai_agents rails-concern --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/rails-concern .gemini/skills/rails-concern && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rails-concern" agent skill from https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concern into .gemini/skills/rails-concern/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rails-concern", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ThibautBaissac/rails_ai_agents rails-concernInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/rails-concern .github/skills/rails-concern && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rails-concern" agent skill from https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concern into .github/skills/rails-concern/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rails-concern", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ThibautBaissac/rails_ai_agents rails-concern --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/rails-concern .opencode/skills/rails-concern && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rails-concern" agent skill from https://github.com/ThibautBaissac/rails_ai_agents/tree/main/.agents/skills/rails-concern into .opencode/skills/rails-concern/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rails-concern", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rails-concernCreates Rails concerns for shared behavior across models or controllers with TDD.
Rails Concern is an agent skill from ThibautBaissac/rails_ai_agents. Creates Rails concerns for shared behavior across models or controllers with TDD. Use when extracting shared code, creating reusable modules, DRYing up models/controllers, or when user mentions concerns, modules, mixins, or shared behavior. WHEN NOT: Logic used by only one model or controller (keep it in place), complex business logic (use service objects), or query encapsulation (use query objects).
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Backend development and Test-driven development. The repository describes itself as: Specialized AI skills, agents, rules and hooks for modern Rails AI driven-development + Spec-Driven-Development kit + MCP. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 03622f2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bundleFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rails Concern loads about 1.7k tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 214 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ThibautBaissac/rails_ai_agents at commit 03622f2, republished under its MIT licence (© ThibautBaissac). 214 words, ~1,737 tokens.
.claude/skills/rails-concern/SKILL.md (or your agent's skills folder).Creates concerns (ActiveSupport::Concern modules) for shared behavior with specs first.
app/models/concerns/ or app/controllers/concerns/Good use cases:
Avoid concerns when:
For Model Concerns, test via a model that includes it:
# spec/models/concerns/[concern_name]_spec.rb
RSpec.describe [ConcernName] do
# Create a test class that includes the concern
let(:test_class) do
Class.new(ApplicationRecord) do
self.table_name = "events" # Use existing table
include [ConcernName]
end
end
let(:instance) { test_class.new }
describe "included behavior" do
it "adds the expected methods" do
expect(instance).to respond_to(:method_from_concern)
end
end
describe "#method_from_concern" do
it "behaves as expected" do
expect(instance.method_from_concern).to eq(expected_value)
end
end
describe "class methods" do
it "adds scope" do
expect(test_class).to respond_to(:scope_name)
end
end
endAlternative: Test through an actual model that uses the concern:
# spec/models/event_spec.rb
RSpec.describe Event, type: :model do
describe "[ConcernName] behavior" do
describe "#method_from_concern" do
let(:event) { build(:event) }
it "does something" do
expect(event.method_from_concern).to eq(expected)
end
end
end
endFor Controller Concerns, test via request specs:
# spec/requests/[feature]_spec.rb
RSpec.describe "[Feature]", type: :request do
describe "pagination (from Paginatable concern)" do
let(:user) { create(:user) }
before { sign_in user }
it "paginates results" do
create_list(:resource, 30, account: user.account)
get resources_path
expect(response.body).to include("page")
end
end
endbundle exec rspec spec/models/concerns/[concern_name]_spec.rb
# OR
bundle exec rspec spec/models/[model]_spec.rbModel Concern:
# app/models/concerns/[concern_name].rb
module [ConcernName]
extend ActiveSupport::Concern
included do
# Callbacks
before_validation :generate_uuid, on: :create
# Validations
validates :uuid, presence: true, uniqueness: true
# Scopes
scope :with_uuid, ->(uuid) { where(uuid: uuid) }
scope :recent, -> { order(created_at: :desc) }
end
# Class methods
class_methods do
def find_by_uuid!(uuid)
find_by!(uuid: uuid)
end
end
# Instance methods
def generate_uuid
self.uuid ||= SecureRandom.uuid
end
def short_uuid
uuid&.split("-")&.first
end
endController Concern:
# app/controllers/concerns/[concern_name].rb
module [ConcernName]
extend ActiveSupport::Concern
included do
before_action :set_locale
helper_method :current_locale
end
class_methods do
def skip_locale_for(*actions)
skip_before_action :set_locale, only: actions
end
end
private
def set_locale
I18n.locale = params[:locale] || I18n.default_locale
end
def current_locale
I18n.locale
end
endbundle exec rspec spec/models/concerns/[concern_name]_spec.rb# app/models/concerns/has_uuid.rb
module HasUuid
extend ActiveSupport::Concern
included do
before_validation :generate_uuid, on: :create
validates :uuid, presence: true, uniqueness: true
end
private
def generate_uuid
self.uuid ||= SecureRandom.uuid
end
end# app/models/concerns/soft_deletable.rb
module SoftDeletable
extend ActiveSupport::Concern
included do
scope :active, -> { where(deleted_at: nil) }
scope :deleted, -> { where.not(deleted_at: nil) }
default_scope { active }
end
def soft_delete
update(deleted_at: Time.current)
end
def restore
update(deleted_at: nil)
end
def deleted?
deleted_at.present?
end
end# app/models/concerns/searchable.rb
module Searchable
extend ActiveSupport::Concern
class_methods do
def search(query)
return all if query.blank?
where("name ILIKE :q OR email ILIKE :q", q: "%#{query}%")
end
end
end# app/models/concerns/auditable.rb
module Auditable
extend ActiveSupport::Concern
included do
has_many :audit_logs, as: :auditable, dependent: :destroy
after_create :log_creation
after_update :log_update
end
private
def log_creation
audit_logs.create(action: "created", changes: attributes)
end
def log_update
return unless saved_changes.any?
audit_logs.create(action: "updated", changes: saved_changes)
end
end# app/controllers/concerns/filterable.rb
module Filterable
extend ActiveSupport::Concern
private
def apply_filters(scope, allowed_filters)
allowed_filters.each do |filter|
if params[filter].present?
scope = scope.where(filter => params[filter])
end
end
scope
end
endIn Models:
class Event < ApplicationRecord
include HasUuid
include SoftDeletable
include Searchable
endIn Controllers:
class ApplicationController < ActionController::Base
include Filterable
endextend ActiveSupport::Concernincluded block for callbacks/validations/scopesclass_methods block for class-level methods© ThibautBaissac, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/rails-concern of ThibautBaissac/rails_ai_agents.
Open the folder on GitHubat commit 03622f2
Rails Concern next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rails Concern this skillThibautBaissac/rails_ai_agents | 665 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Laravel TDDaffaan-m/ECC | 276k | 3 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Laravel TDDaffaan-m/ECC | 276k | 1 repos | ~4.5k | Automated safety check: Pass | MIT | |
| Laravel TDDaffaan-m/ECC | 276k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Laravel TDDaffaan-m/ECC | 276k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Django Forms Validation TDDhashgraph-online/awesome-codex-plugins | 1.3k | — | ~845 | Automated safety check: Pass | MIT |
affaan-m/ECC
Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.
affaan-m/ECC
Laravel testing strategies with PHPUnit, Pest, model factories, HTTP tests, Sanctum authentication testing, mocking, and coverage.
affaan-m/ECC
使用 PHPUnit 和 Pest、工厂、数据库测试、模拟以及覆盖率目标进行 Laravel 的测试驱动开发. An agent skill from affaan-m/ECC.
affaan-m/ECC
Laravel での TDD:PHPUnit と Pest、ファクトリー、データベーステスト、フェイク、カバレッジターゲット
hashgraph-online/awesome-codex-plugins
Test-drive Django validation across model constraints, forms, ModelForms, views, template errors, duplicate handling, and redirects.
liberusoftware/real-estate-laravel
A skill your agent uses for Pest PHP testing in Laravel projects only.
ThibautBaissac/rails_ai_agents
Audits Rails application accessibility against WCAG 2.2 Level AA, detects violations with axe-core / Lighthouse / Pa11y, and reports remediation guidance for ERB views, ViewComponents, Stimulus…
ThibautBaissac/rails_ai_agents
Implements real-time features with Action Cable and WebSockets.
ThibautBaissac/rails_ai_agents
Configures Active Storage for file uploads with variants and direct uploads.
ThibautBaissac/rails_ai_agents
Implements authentication using Rails 8 built-in generator. An agent skill from ThibautBaissac/rails_ai_agents.
ThibautBaissac/rails_ai_agents
Implements Rails caching patterns for performance optimization.
ThibautBaissac/rails_ai_agents
Implements internationalization with Rails I18n for multi-language support.
Categories
Creates Rails concerns for shared behavior across models or controllers with TDD. Rails Concern is an agent skill from ThibautBaissac/rails_ai_agents. Creates Rails concerns for shared behavior across models or controllers with TDD.
Rails Concern fits situations like: extracting shared code; creating reusable modules; DRYing up models/controllers; user mentions concerns.
Run `npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a claude-code`. Or copy the skill folder (.agents/skills/rails-concern in ThibautBaissac/rails_ai_agents) into .claude/skills/rails-concern in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a codex`. Or copy the skill folder (.agents/skills/rails-concern in ThibautBaissac/rails_ai_agents) into .agents/skills/rails-concern in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ThibautBaissac/rails_ai_agents --skill rails-concern -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rails-concern, .gemini/skills/rails-concern, .github/skills/rails-concern and .opencode/skills/rails-concern in your project.
Going by SKILL.md and its folder, Rails Concern needs the command-line tools its instructions call (bundle).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Rails Concern is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Rails Concern: Laravel TDD (affaan-m/ECC, 276k stars), Laravel TDD (affaan-m/ECC, 276k stars), Laravel TDD (affaan-m/ECC, 276k stars) and Laravel TDD (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ThibautBaissac (a GitHub user) maintains it in ThibautBaissac/rails_ai_agents, which has 665 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on June 1, 2026.
Source: ThibautBaissac/rails_ai_agents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.