agentleFS
StripeKnown publisherstripe/stripe-go/.claude/CLAUDE.md

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

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 8 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the stripe/stripe-go repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about stripe/stripe-go

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

15 more on GitHub

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
  1. Very specific:

    Run all tests: just test

    line 5
  2. Very specific:

    Run tests for a single package: just test ./invoice

    line 6
  3. Distinctive:

    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 …

    line 26
  4. Very specific:

    All code must run on all supported Go versions (full list in the test section of @.github/workflows/ci.yml)

    line 35

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 spec at the top are generated; do not edit. Similarly, any code block starting with The beginning of the section generated from our OpenAPI spec is 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.go and stripe_client.go contain both generated and non-generated sections — look for section markers.

Conventions

  • Uses Go's standard net/http package
  • Flat package structure (everything in package stripe)
  • Major version in import path (e.g. github.com/stripe/stripe-go/v82) — just format handles 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:
    1. Document a function
    2. Explain the WHY of a piece of code
    3. Explain a particularly complicated piece of code
  • Comments NEVER should be used to:
    1. Say what used to be there. That's no longer relevant!
    2. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.