Implements real-time features with Action Cable and WebSockets. Use when adding live updates, chat features, notifications, real-time dashboards, or when user mentions Action Cable, WebSockets, channels, or real-time.
Install with Tessl CLI
npx tessl i github:ThibautBaissac/rails_ai_agents --skill action-cable-patterns90
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/skillValidation for skill structure
Connection auth and notification broadcasting
Production adapter
100%
100%
Dev/test adapters
100%
100%
identified_by usage
100%
100%
Session token cookie
100%
100%
Session model lookup
100%
100%
reject_unauthorized_connection
100%
100%
stream_for model instance
100%
100%
broadcast_to class method
50%
100%
iso8601 timestamp
20%
100%
Payload type field
0%
100%
JS consumer import
100%
100%
JS received handler
100%
100%
Without context: $0.2345 · 46s · 13 turns · 62 in / 2,561 out tokens
With context: $0.3591 · 1m 8s · 19 turns · 63 in / 3,665 out tokens
Channel authorization and presence with Stimulus
Authorization check
100%
100%
stream_for on join
75%
100%
Presence on subscribe
100%
100%
Presence on unsubscribe
100%
100%
Presence payload fields
37%
100%
Timestamp iso8601
0%
100%
ApplicationController renderer
0%
100%
Stimulus connect lifecycle
87%
100%
Stimulus disconnect cleanup
85%
100%
Disconnected CSS class
0%
100%
perform() for actions
87%
100%
Typing indicator timeout
100%
100%
JS switch on data.type
85%
100%
Without context: $0.3038 · 1m 24s · 13 turns · 13 in / 4,970 out tokens
With context: $0.4058 · 1m 25s · 18 turns · 14 in / 4,913 out tokens
Channel specs and performance configuration
stub_connection usage
100%
100%
type: :channel
100%
100%
be_confirmed matcher
100%
100%
have_stream_for matcher
25%
100%
have_broadcasted_to matcher
100%
100%
be_rejected matcher
100%
100%
Authorized vs unauthorized cases
100%
100%
max_connections_per_server
0%
100%
Selective broadcast method
60%
100%
Connection check pattern
37%
100%
require rails_helper
100%
100%
Spec notes file
100%
100%
Without context: $0.3051 · 1m 15s · 14 turns · 14 in / 4,435 out tokens
With context: $0.5053 · 1m 27s · 20 turns · 19 in / 5,006 out tokens
Table of Contents
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.