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

stripe-node

CLAUDE.md4.5k starsChanged 4 months agoMITView on GitHub

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

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 3 mentionsJun 2026: 9 mentionsJul 2026: 5 mentionsAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the stripe/stripe-node repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about stripe/stripe-node

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

See all 35

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

On GitHub · 34

29 more on GitHub

On Hacker News · 1

The file

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

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

  • 5

    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 (builds first)

    line 5
  2. Very specific:

    Run a specific test: just test --grep "test name pattern"

    line 6
  3. Very specific:

    Run type tests: just types-test (builds first, then type-checks testProjects/types/typescriptTest.ts)

    line 7
  4. Very specific:

    Must build TypeScript before testing (handled automatically by just commands)

    line 9
  5. 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 30
  6. Very specific:

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

    line 38

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

Testing

  • Run all tests: just test (builds first)
  • Run a specific test: just test --grep "test name pattern"
  • Run type tests: just types-test (builds first, then type-checks testProjects/types/typescriptTest.ts)
  • Tests use mocha
  • Must build TypeScript before testing (handled automatically by just commands)
  • Most changes that add or modify public API surface should include a corresponding type test in testProjects/types/typescriptTest.ts

Formatting & Linting

  • Format: just format (uses prettier)
  • Lint: just lint (uses eslint, also auto-fixes)
  • Lint check only: just lint-check

Key Locations

  • HTTP client interface: src/net/HttpClient.ts
  • Node.js HTTP implementation: src/net/NodeHttpClient.ts
  • Fetch-based HTTP implementation: src/net/FetchHttpClient.ts
  • Request orchestration (headers, auth, retries): src/RequestSender.ts
  • Core client setup: src/stripe.core.ts (CJS) and src/stripe.esm.node.ts (ESM) — changes to one usually need mirroring in the other
  • API version: src/apiVersion.ts

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.

Conventions

  • TypeScript source in src/, compiled to cjs/ (CommonJS) and esm/ (ES modules)
  • Multi-platform: exports for Node.js, browser, Deno, Bun, workers
  • Dependencies installed via yarn
  • Work is not complete until just test, just format, and just lint complete successfully.
  • All code must run on all supported Node 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 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.