CLAUDE.md
.claude/CLAUDE.mdCLAUDE.md
Quality
78/100
Scores the file, not the repository.Length
359 words
9 headings · 0 code blocksRepository
20k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Bitwarden Server - Claude Code Configuration23## Project Context Files45**Read these files before reviewing to ensure that you fully understand the project and contributing guidelines**671. @README.md82. @CONTRIBUTING.md93. @.github/PULL_REQUEST_TEMPLATE.md1011## Critical Rules1213- **NEVER** use code regions: If complexity suggests regions, refactor for better readability14- **NEVER** compromise zero-knowledge principles: User vault data must remain encrypted and inaccessible to Bitwarden15- **NEVER** log or expose sensitive data: No PII, passwords, keys, or vault data in logs or error messages16- **ALWAYS** use secure communication channels: Enforce confidentiality, integrity, and authenticity17- **ALWAYS** encrypt sensitive data: All vault data must be encrypted at rest, in transit, and in use18- **ALWAYS** prioritize cryptographic integrity and data protection19- **ALWAYS** add unit tests (with mocking) for any new feature development2021## Project Structure2223- **Source Code**: `/src/` - Services and core infrastructure24- **Tests**: `/test/` - Test logic aligning with the source structure, albeit with a `.Test` suffix25- **Utilities**: `/util/` - Migration tools, seeders, and setup scripts26- **Dev Tools**: `/dev/` - Local development helpers27- **Configuration**: `appsettings.{Environment}.json`, `/dev/secrets.json` for local development2829## Security Requirements3031- **Compliance**: SOC 2 Type II, SOC 3, HIPAA, ISO 27001, GDPR, CCPA32- **Principles**: Zero-knowledge, end-to-end encryption, secure defaults33- **Validation**: Input sanitization, parameterized queries, rate limiting34- **Logging**: Structured logs, no PII/sensitive data in logs3536## Common Commands3738- **Build**: `dotnet build`39- **Test**: `dotnet test`40- **Run locally**: `dotnet run --project src/Api`41- **Database update**: `pwsh dev/migrate.ps1`42- **Generate OpenAPI**: `pwsh dev/generate_openapi_files.ps1`4344## Development Workflow4546- Security impact assessed47- xUnit tests added / updated48- Performance impact considered49- Error handling implemented50- Breaking changes documented51- CI passes: build, test, lint52- Feature flags considered for new features53- CODEOWNERS file respected5455### Key Architectural Decisions5657- Use .NET nullable reference types (ADR 0024)58- TryAdd dependency injection pattern (ADR 0026)59- Authorization patterns (ADR 0022)60- OpenTelemetry for observability (ADR 0020)61- Log to standard output (ADR 0021)6263## References6465- [Server architecture](https://contributing.bitwarden.com/architecture/server/)66- [Architectural Decision Records (ADRs)](https://contributing.bitwarden.com/architecture/adr/)67- [Contributing guidelines](https://contributing.bitwarden.com/contributing/)68- [Setup guide](https://contributing.bitwarden.com/getting-started/server/guide/)69- [Code style](https://contributing.bitwarden.com/contributing/code-style/)70- [Bitwarden security whitepaper](https://bitwarden.com/help/bitwarden-security-white-paper/)71- [Bitwarden security definitions](https://contributing.bitwarden.com/architecture/security/definitions)72
Also in bitwarden/server
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bitwarden/serverutil/Seeder/CLAUDE.md · 20k | CLAUDE.md | buildtesttesting-strategysecurity+5 | 84/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| livewire/livewireCLAUDE.md · 24k | CLAUDE.md | setupbuildteststyle+4 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| stacklok/toolhiveCLAUDE.md · 2.0k | CLAUDE.md | buildteststylearch+4 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago |
