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.
Install with Tessl CLI
npx tessl i github:ThibautBaissac/rails_ai_agents --skill rails-concern90
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillAgent success when using this skill
Validation for skill structure
Model concern TDD workflow
Spec file created first
100%
100%
Spec uses test class pattern
50%
50%
Concern file location
100%
100%
ActiveSupport::Concern usage
100%
100%
included block for callbacks/validations
100%
100%
Instance methods placement
100%
100%
Single responsibility
100%
100%
Descriptive module name
100%
100%
RED step documented
57%
71%
GREEN step documented
57%
71%
Without context: $0.2230 · 49s · 12 turns · 12 in / 2,951 out tokens
With context: $0.5033 · 1m 19s · 26 turns · 337 in / 4,549 out tokens
Concern structure and placement
Concern file location
100%
100%
ActiveSupport::Concern
100%
100%
included block for scopes
100%
100%
included block for callbacks
100%
100%
class_methods block used
100%
100%
Instance methods placement
100%
100%
Single responsibility
100%
100%
Descriptive module name
100%
100%
Spec file location
100%
100%
Spec tests via including model
100%
100%
Model includes concern
100%
100%
Without context: $0.2533 · 49s · 13 turns · 14 in / 3,139 out tokens
With context: $0.3632 · 1m 9s · 17 turns · 17 in / 3,848 out tokens
Controller concern with request specs
Controller concern location
100%
100%
ActiveSupport::Concern
100%
100%
included block for before_action
100%
100%
class_methods block used
0%
100%
Instance methods placement
100%
100%
Request spec location
100%
100%
Request spec type
100%
100%
Single responsibility
100%
100%
Descriptive module name
100%
100%
Controller includes concern
100%
100%
Without context: $0.2373 · 54s · 11 turns · 12 in / 3,297 out tokens
With context: $0.5935 · 1m 52s · 25 turns · 24 in / 6,994 out tokens
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.