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

stripe-java

CLAUDE.md1k starsChanged 9 months agoMITView on GitHub

It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 4 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the stripe/stripe-java repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about stripe/stripe-java

The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 19

Talked about on GitHub and Hacker News (19 times).

On GitHub · 18

13 more on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    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 a single test class: just test-one com.stripe.net.HttpClientTest

    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 28

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

Testing

  • Run all tests: just test
  • Run a single test class: just test-one com.stripe.net.HttpClientTest
  • Pass extra Gradle args: just test --tests com.stripe.SomeTest

Formatting

  • Format: just format (uses Spotless via Gradle)
  • Format check: just format-check

Key Locations

  • HTTP client abstract base (retry logic): src/main/java/com/stripe/net/HttpClient.java
  • HTTP implementation: src/main/java/com/stripe/net/HttpURLConnectionClient.java
  • Header management: src/main/java/com/stripe/net/HttpHeaders.java
  • Request building: src/main/java/com/stripe/net/StripeRequest.java
  • Authentication: src/main/java/com/stripe/net/Authenticator.java, BearerTokenAuthenticator.java
  • Response getter (request dispatch): src/main/java/com/stripe/net/LiveStripeResponseGetter.java
  • Main config/version: src/main/java/com/stripe/Stripe.java
  • Client class: src/main/java/com/stripe/StripeClient.java

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 model classes under src/main/java/com/stripe/model/ are largely generated.
  • The net/ package (HTTP client, headers, request/response) is NOT generated.

Conventions

  • Uses Java's built-in HttpURLConnection for HTTP
  • Requires JDK 17 to build
  • Gradle build system
  • Work is not complete until just test passes

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 on/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.