guidance-for-claude-code-with-amazon-bedrock
CLAUDE.md405 starsChanged 5 months agoMIT-0View on GitHub
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- deployment/CLAUDE.mdCLAUDE.md
- source/CLAUDE.mdCLAUDE.md
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
- Distinctive: line 15
If content exists in another doc, link to it — don't copy.
- Very specific: line 19
Use placeholder format: 123456789012, https://your-api.execute-api.region.amazonaws.com
- Distinctive: line 23
Test that code samples actually work (or clearly mark as pseudocode).
- Very specific: line 28
Update CHANGELOG.md for user-facing changes only (not internal refactors).
- Very specific: line 33
Don't create new top-level docs files — use assets/docs/ subdirectory.
- Distinctive: line 34
Don't document internal implementation details in user-facing docs.
- Distinctive: line 35
Don't use em-dashes (—) in file paths or command examples.
- Very specific: line 36
Don't reference branch names (beta) in user docs — users see main releases only.
≈ “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
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.mdfor user-facing changes only (not internal refactors). - Format:
## [version] - YYYY-MM-DDwith 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 seemainreleases only.
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.

