agentleFS
aws-solutions-library-samplesaws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrock/docs/CLAUDE.md

guidance-for-claude-code-with-amazon-bedrock

CLAUDE.md405 starsChanged 5 months agoMIT-0View on GitHub

The file

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

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If content exists in another doc, link to it — don't copy.

    line 15
  2. Very specific:

    Use placeholder format: 123456789012, https://your-api.execute-api.region.amazonaws.com

    line 19
  3. Distinctive:

    Test that code samples actually work (or clearly mark as pseudocode).

    line 23
  4. Very specific:

    Update CHANGELOG.md for user-facing changes only (not internal refactors).

    line 28
  5. Very specific:

    Don't create new top-level docs files — use assets/docs/ subdirectory.

    line 33
  6. Distinctive:

    Don't document internal implementation details in user-facing docs.

    line 34
  7. Distinctive:

    Don't use em-dashes (—) in file paths or command examples.

    line 35
  8. Very specific:

    Don't reference branch names (beta) in user docs — users see main releases only.

    line 36

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

CLAUDE.md — Documentation

Naming Conventions

  • Claude Desktop (not "CoWork", "Cowork", "Co-Work", or "Claude for Desktop")
  • Claude Code (not "the CLI", "ccwb CLI", or "Claude Code CLI")
  • Historical Usage Analytics (not just "Analytics")
  • IAM Identity Center or IDC (not "SSO" in new docs)
  • Cognito — mark as "legacy" when referencing old auth flows

Key Rules

Don't Duplicate

  • README.md is the entry point — keep it concise (users skim).
  • Detailed docs live in assets/docs/ — link from README, don't inline.
  • If content exists in another doc, link to it — don't copy.

Security in Docs

  • Never include real AWS account IDs, internal URLs, or API keys in examples.
  • Use placeholder format: 123456789012, https://your-api.execute-api.region.amazonaws.com
  • Redact in code samples: export OIDC_ISSUER_URL=https://your-idp.example.com

Code Samples

  • Test that code samples actually work (or clearly mark as pseudocode).
  • Include the auth mode each sample applies to (OIDC/IDC/both).
  • Show both success and error cases where relevant.

Changelog

  • Update CHANGELOG.md for user-facing changes only (not internal refactors).
  • Format: ## [version] - YYYY-MM-DD with Added/Changed/Fixed/Removed sections.
  • Link to PR numbers for traceability.

Common Pitfalls

  • Don't create new top-level docs files — use assets/docs/ subdirectory.
  • Don't document internal implementation details in user-facing docs.
  • Don't use em-dashes (—) in file paths or command examples.
  • Don't reference branch names (beta) in user docs — users see main releases only.

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.