stripe-go
CLAUDE.md2.6k starsChanged 9 months agoMITView on GitHub
Note: this SDK uses a flat package layout. Most resource files (e.g. customer.go, invoice.go) are at the repo root alongside the core code. It's ok not to put comments in a function if their addition wouldn't meaningfully clarify anything.
Trending
Quiet since September.about the whole repository
Who's talking about stripe/stripe-go
- golang/mock“Mock import contains "vendor" directory.”GitHub · Apr 6, 2016 · 22 reactions
- AlekSi/pointer“Explain why this package exists”GitHub · Nov 3, 2018 · 11 reactions
- openfga/go-sdk“Go SDK Enhancement Opportunities”GitHub · Apr 12, 2023 · 6 reactions
- @jacob.gold“github.com/redis/go-redis is a good example of database style API that’s not database/sql (which is quite …”Bluesky · Jul 11, 2025 · 5 likes
- onmyway133/blog“How to use Stripe and Apple Pay in iOS”GitHub · Apr 30, 2019 · 4 reactions
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub and Bluesky (21 times).
On GitHub · 20
- Apr 6, 2016Mock import contains "vendor" directory. — golang/mock22 reactions · 9 comments
- Nov 3, 2018Explain why this package exists — AlekSi/pointer11 reactions · 1 comment
- Apr 12, 2023Go SDK Enhancement Opportunities — openfga/go-sdk6 reactions
- Apr 30, 2019How to use Stripe and Apple Pay in iOS — onmyway133/blog4 reactions
- Jun 6, 2026chore(deps): update module github.com/stripe/stripe-go/v85 to v86 - autoclosed — LumeWeb/portal-plugin-billing2 reactions
15 more on GitHub
- Apr 29, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 - autoclosed — LumeWeb/portal-plugin-billing2 reactions
- Apr 29, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 — LumeWeb/portal-plugin-billing2 reactions
- Apr 29, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 — LumeWeb/portal-plugin-billing2 reactions
- Apr 28, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 — LumeWeb/portal-plugin-billing2 reactions
- Apr 28, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 — LumeWeb/portal-plugin-billing2 reactions
- Apr 27, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 — LumeWeb/portal-plugin-billing2 reactions
- Apr 24, 2026chore(deps): update module github.com/stripe/stripe-go/v83 to v85 — LumeWeb/portal-plugin-billing2 reactions
- Nov 21, 2025chore(main): release 2.0.0 — distr-sh/distr2 reactions · 1 comment
- Nov 5, 2025bigtable: error logs writing metrics after upgrade from v1.39.0 to v1.40.1 — googleapis/google-cloud-go2 reactions · 10 comments
- Dec 13, 2024storage: ambiguous import — googleapis/google-cloud-go2 reactions · 2 comments
- Feb 7, 2023false-positive: elements outside of the module are reported — go-simpler/musttag2 reactions · 6 comments
- Apr 24, 2021api/errors: API 的错误模型 — go-kratos/kratos2 reactions · 5 comments
- Sep 18, 2016Google App Engine compatibility — awa/go-iap2 reactions · 3 comments
- Sep 7, 2026fix(deps): update module github.com/stripe/stripe-go/v86 to v86.4.1 — bytebase/bytebase1 reaction · 1 comment
- Apr 1, 2026Dependency Dashboard — isityael/wakapi-dhi1 reaction
On Bluesky · 1
- Jul 11, 2025github.com/redis/go-redis is a good example of database style API that’s not database/sql (which is quite good too)… — @jacob.gold5 likes and reposts
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 6
Run tests for a single package: just test ./invoice
- Distinctive: line 26
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 35
All code must run on all supported Go 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-go
Testing
- Run all tests:
just test - Run tests for a single package:
just test ./invoice - Lint:
just lint(uses go vet + staticcheck) - Benchmarks:
just bench
Formatting
- Format:
just format(uses gofmt + goimports) - Format check:
just format-check
Key Locations
- Core client, HTTP handling, request logic, headers, retries:
stripe.go - Service-based client:
stripe_client.go - Tests:
stripe_test.go
Note: this SDK uses a flat package layout. Most resource files (e.g. customer.go, invoice.go) are at the repo root alongside the core code.
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 files at the root (e.g.
customer.go,invoice.go) are largely generated. stripe.goandstripe_client.gocontain both generated and non-generated sections — look for section markers.
Conventions
- Uses Go's standard
net/httppackage - Flat package structure (everything in package
stripe) - Major version in import path (e.g.
github.com/stripe/stripe-go/v82) —just formathandles updating these - All code must run on all supported Go 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 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.

