stripe-ruby
CLAUDE.md2.2k starsChanged 4 months agoMITView on GitHub
When adding or modifying public methods on non-generated files, you must also update the corresponding rbi/stripe/stripe_client.rbi with matching Sorbet type signatures. This file provides type information for tools and IDEs. It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Trending
Quiet since August.about the whole repository
Who's talking about stripe/stripe-ruby
- stripe-ruby-mock/stripe-ruby-mock“Insufficient Invoice Support”GitHub · Nov 20, 2019 · 13 reactions
- integrallis/stripe_event“stripe-ruby 9.0 support”GitHub · Aug 19, 2023 · 8 reactions
- stripe-ruby-mock/stripe-ruby-mock“Support stripe-ruby 5.0+ Stripe::CardError.new arguments”GitHub · Aug 23, 2019 · 5 reactions
- whomwah/rqrcode“Lacking a CHANGELOG.md file”GitHub · Nov 11, 2019 · 4 reactions
- stripe-ruby-mock/stripe-ruby-mock“Make the gem compatible with Stripe Gem v.5”GitHub · Oct 21, 2019 · 3 reactions
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub (17 times).
On GitHub · 17
- Nov 20, 2019Insufficient Invoice Support — stripe-ruby-mock/stripe-ruby-mock13 reactions · 2 comments
- Aug 19, 2023stripe-ruby 9.0 support — integrallis/stripe_event8 reactions · 1 comment
- Aug 23, 2019Support stripe-ruby 5.0+ Stripe::CardError.new arguments — stripe-ruby-mock/stripe-ruby-mock5 reactions · 7 comments
- Nov 11, 2019Lacking a CHANGELOG.md file — whomwah/rqrcode4 reactions · 2 comments
- Oct 21, 2019Make the gem compatible with Stripe Gem v.5 — stripe-ruby-mock/stripe-ruby-mock3 reactions · 8 comments
12 more on GitHub
- Jul 21, 2022Bump stripe from 5.42.0 to 6.5.0 — openfoodfoundation/openfoodnetwork2 reactions · 7 comments
- Nov 20, 2020Can't serialize ROS as YAML — aetherknight/recursive-open-struct2 reactions
- Oct 16, 2017Maintain a cache of idempotency keys and check for reuse — stripe/stripe-mock2 reactions
- Aug 17, 2026build(deps): bump the ruby-dependencies group across 1 directory with 12 updates — Shimizu-Technology/HafaPass1 reaction · 2 comments
- Aug 15, 2026Bump stripe from 15.5.0 to 19.5.0 — kewinzaq1/operator1 reaction · 1 comment
- Aug 10, 2026build(deps): bump the ruby-dependencies group across 1 directory with 11 updates — Shimizu-Technology/HafaPass1 reaction · 2 comments
- Aug 3, 2026build(deps): bump the ruby-dependencies group across 1 directory with 10 updates — Shimizu-Technology/HafaPass1 reaction · 2 comments
- Jul 20, 2026build(deps): bump the ruby-dependencies group across 1 directory with 9 updates — Shimizu-Technology/HafaPass1 reaction · 2 comments
- Feb 12, 2026Stop bundling root certificates and use the system certs instead — activemerchant/active_merchant1 reaction · 2 comments
- Apr 8, 2025Tapioca doesn't import hand written signatures from the `stripe` gem — Shopify/tapioca1 reaction · 19 comments
- Aug 20, 2024Skipping this week — Classicrichblog/Neduinspire.com1 reaction
- Aug 20, 2024Codegen for openapi v1204. — Classicrichblog/Neduinspire.com1 reaction
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Run all tests: just test
- Very specific: line 23
When adding or modifying public methods on non-generated files, you must also update the corresponding rbi/stripe/stripe_client.rbi with …
- Distinctive: line 28
If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it …
- Very specific: line 39
All code must run on all supported Ruby versions (full list in the test section of @.github/workflows/ci.yml)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
stripe-ruby
Testing
- Run all tests:
just test - Tests use Rake (
bundle exec rake test) - Typecheck:
just typecheck(Sorbet, requires Ruby >= 2.7)
Formatting & Linting
- Format:
just format(uses rubocop with auto-correct) - Lint check:
just format-check(rubocop without auto-correct)
Key Locations
- Main client (HTTP requests, headers, auth):
lib/stripe/stripe_client.rb - Connection management:
lib/stripe/connection_manager.rb - Version:
lib/stripe/version.rb - Sorbet type definitions:
rbi/. NEVER readrbi/stripe.rbi, since it's a huge file that collects data already present in other.rbifiles
RBI Type Annotations
When adding or modifying public methods on non-generated files, you must also update the corresponding rbi/stripe/stripe_client.rbi with matching Sorbet type signatures. This file provides type information for tools and IDEs.
Generated Code
- Files containing
File generated from our OpenAPI specat the top are generated; do not edit. Similarly, any code block starting withThe beginning of the section generated from our OpenAPI specis generated and should not be edited directly.- If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it directly.
- Resource classes under
lib/stripe/resources/are largely generated. stripe_client.rb,connection_manager.rb, and core infrastructure files are NOT generated.
Conventions
- Uses Ruby's standard
Net::HTTPlibrary - Bundler for gem management
- Rubocop for style enforcement
- Sorbet for optional type checking
- Work is not complete until
just testandjust typecheckcomplete successfully. - All code must run on all supported Ruby versions (full list in the test section of @.github/workflows/ci.yml)
Comments
- Comments MUST only be used to:
- Document a function
- Explain the WHY of a piece of code
- Explain a particularly complicated piece of code
- Comments NEVER should be used to:
- Say what used to be there. That's no longer relevant!
- Explain the WHAT of a piece of code (unless it's very non-obvious)
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

