Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By thoughtbot Verified OrgMITIn 1 marketplace
Removes warnings, deprecation notices and stray puts from a Rails RSpec run so the suite prints only dots. Works one issue at a time and commits each fix separately, asking which branch to use first.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
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.
Add the thoughtbot marketplace to Claude Code:
/plugin marketplace add thoughtbot/skills
Install the plugin:
/plugin install clean-rspec-output@skills
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.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
clean-rspec-output@skills is listed by thoughtbot/skills — review the source before installing
npx claudepluginhub thoughtbot/skills --plugin clean-rspec-outputPlugins from other owners that cover similar ground