A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A Claude Code skill that systematically eliminates unexpected output from a Ruby on Rails RSpec test suite
A Claude Code skill that systematically eliminates unexpected output from a Ruby on Rails RSpec test suite.
You know the feeling. You run bundle exec rspec and instead of a clean wall
of dots, you get this:
❯ bundle exec rspec
[DEPRECATION] This gem has been renamed to 'omniauth-entra-id' and will no longer be supported.
.......Warning: The code in the `before_worker_boot` block will not execute in
the current Puma configuration...
............Checking for expected text of nil is confusing and/or pointless...
...Checking for expected text of nil is confusing and/or pointless...
..WARNING: Using the `raise_error` matcher without providing a specific error...
.....Order ID: 2789
Order2 ID: 2790
.........true
true
Your eyes water. Your OCD bleeds. Somewhere, a Toyota engineer reaches for the Andon cord.
Drop everything. Yes, everything. That critical production bug? It can wait. The
six-month feature you are one PR away from shipping? Not important. There is
only one priority now, and it stares back at you from your terminal in a cascade
of deprecation warnings and orphaned puts calls from 2019.
The. Output. Must. Be. Cleaned.
After running this skill. Bliss:
❯ bundle exec rspec
..............................................................................................................................
..............................................................................................................................
..............................................................................................................................
Finished in 4 minutes 2 seconds (files took 8.06 seconds to load)
892 examples, 0 failures
This skill attempts to handles the full range of unexpected RSpec output:
already initialized constant, method redefined)puts, p, pp, or Rails.logger calls left behind from debuggingIt works through the output one issue at a time: locate the source test, reproduce in isolation, fix the root cause, verify it's gone, then commit. Each fix is its own commit so individual changes can be reviewed or cherry-picked independently.
Copy the skill to your Claude Code skills folder:
cp -r clean-rspec-output ~/.claude/skills/
Or clone directly:
git clone https://github.com/thoughtbot/clean-rspec-output ~/.claude/skills/clean-rspec-output
From inside a Claude Code session, in the root of your Rails project:
/clean-rspec-output
The skill will ask which branch to work on before doing anything (it creates one commit per fix, so the branch choice matters).
rspec command, fixes the root cause, verifies the
output is gone, then commits.The skill will not start planning or applying a fix until it can reproduce the output with a scoped command. That reproduction case is also the verification case, so there is no ambiguity about whether the fix worked.
The skill fixes how a test runs. It should not change what it covers.
Legitimate fixes:
puts/p/pp calls left over from debuggingOut of scope:
expect(...) to ones that happen not to warnContributions are welcome. If you'd like to improve the workflow or add handling for new categories of output:
git checkout -b my-new-feature)git push origin my-new-feature)This skill is open source and available under the MIT License.
This skill is maintained by thoughtbot. We are passionate about open source software and helping teams ship maintainable, well-tested software.
See thoughtbot's other projects.
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
Design enforcement with memory — keeps your UI consistent across a project
AI image generation skill for Claude Code -- Creative Director powered by Gemini