rb:state-audit
CommunityDetect and fix Rails request state leaks
System Documentation
What problem does it solve?
This Skill helps you uncover hidden state‑management problems in Rails applications, such as leaking CurrentAttributes, oversized session data, Redis key misconfiguration, unsafe Turbo Stream broadcasts, and duplicated sources of truth that can cause production‑time bugs.
Core Features & Use Cases
- CurrentAttributes Audit – Finds jobs, threads, or async tasks that use
Currentwithout explicit context. - Session Size & Content Check – Detects cookie or Redis session bloat and improper data storage.
- Redis Namespace & TTL Validation – Ensures keys use proper environment prefixes and have expirations.
- Turbo Stream Safety Review – Verifies broadcasts occur after commit and that stream templates contain no DB queries.
- Source‑of‑Truth Verification – Flags denormalized counters or scattered cache invalidations.
Use this Skill before major releases or whenever you notice unexpected memory growth, session‑related errors, or inconsistent data across requests.
Quick Start
Run the request state audit for your Rails project by issuing the command rb:state-audit followed by the relevant path or feature name.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rb:state-audit Download link: https://github.com/slbug/claude-ruby-grape-rails/archive/main.zip#rb-state-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.