ger
CLAUDE.md4 starsChanged 13 months agoMITView on GitHub
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- could be automatic: a setting could enforce it
- Very specific: line 18
MUST: use isolatedDeclarations: true in tsconfig.json
- Very specific: line 19
ONLY: use .ts files (no .js/.jsx/.tsx files - this is a CLI tool)
- Very specific: line 20
NEVER: use as typecasting except for as const or as unknown
- Very specific: line 21
NEVER: use --no-verify flag with git commands
- Distinctive: line 27
RUN: all tests in pre-commit and pre-push hooks
- Distinctive: line 35
NEVER: commit sensitive data, API keys, or secrets
- Distinctive: line 57
UNIT TESTS: Test individual functions, schemas, and utilities
- Distinctive: line 58
INTEGRATION TESTS: Test complete command flows with mocked HTTP requests
- Distinctive: line 59
HTTP MOCKING: Use MSW handlers with http.get/http.post patterns for mocking
- Distinctive: line 60
SCHEMA VALIDATION: Ensure mocks return data that validates against Effect Schemas
- Distinctive: line 61
COMMAND COVERAGE: Every command must have integration tests covering:
- Distinctive: line 70
NEVER: commit directly to main
- Distinctive: line 71
INCLUDE: test coverage report in README.md
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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
Gerrit CLI Tool - Project Rules
Technology Stack
- Runtime: Bun
- Language: TypeScript with isolatedDeclarations: true
- CLI Framework: Ink with ink-spinner and ink-text-input
- State Management: Effect and Effect Schema
- Testing: Bun test with MSW
- Database: SQLite for local-first caching
- Linting: oxlint
- Formatting: Biome
- i18n: i18next
Strict Requirements
Code Quality
- NO implicit any or noExplicitAny in TypeScript
- MUST use isolatedDeclarations: true in tsconfig.json
- ONLY use .ts files (no .js/.jsx/.tsx files - this is a CLI tool)
- NEVER use
astypecasting except foras constoras unknown - NEVER use --no-verify flag with git commands
- NO files over 700 lines (block in pre-commit/pre-push)
- WARN for files over 500 lines (but don't block)
Testing & Coverage
- ENFORCE minimum 80% code coverage
- RUN all tests in pre-commit and pre-push hooks
- USE MSW (Mock Service Worker) for all HTTP request mocking
- REQUIRE meaningful integration tests for all commands that simulate full workflows
- IMPLEMENT both unit tests and integration tests for every command modification/addition
- ENSURE integration tests use realistic MSW handlers that match Gerrit API responses
- EXCLUDE generated code and tmp/ from coverage
Security
- NEVER commit sensitive data, API keys, or secrets
- NEVER expose sensitive information in error messages
- USE Effect Schema for all input validation
- IMPLEMENT SQL injection prevention
Development Workflow
- RUN type-checking in pre-commit and pre-push hooks
- RUN oxlint in pre-commit and pre-push hooks
- RUN biome formatter before commits
- RUN
bun run buildafter making changes to ensure compilation succeeds - USE ast-grep to enforce no
astypecasting rule - CHECK file sizes in pre-commit and pre-push hooks
- EXCLUDE generated code and tmp/ from all checks
Architecture Patterns
- USE Effect for all service implementations
- USE Effect Schema for all data models
- IMPLEMENT cache-first strategy with SQLite
- USE regional error boundaries for error handling
- FOLLOW functional programming patterns with Effect
Testing Requirements for Commands
- UNIT TESTS: Test individual functions, schemas, and utilities
- INTEGRATION TESTS: Test complete command flows with mocked HTTP requests
- HTTP MOCKING: Use MSW handlers with http.get/http.post patterns for mocking
- SCHEMA VALIDATION: Ensure mocks return data that validates against Effect Schemas
- COMMAND COVERAGE: Every command must have integration tests covering:
- Happy path execution
- Error handling (network errors, API errors, validation errors)
- Interactive UI behavior (where applicable)
- Cache behavior verification
Git Workflow
- USE conventional commit messages
- CREATE feature branches from main
- NEVER commit directly to main
- INCLUDE test coverage report in README.md
CLI Specific
- USE Ink components for all UI
- IMPLEMENT proper loading states with ink-spinner
- USE ink-text-input for user input
- SUPPORT internationalization with i18next
- PROVIDE helpful error messages without sensitive data
File Organization
- src/cli/ - Ink components and commands
- src/services/ - Effect services
- src/api/ - Gerrit API client
- src/db/ - SQLite layer
- src/schemas/ - Effect Schema definitions
- src/i18n/ - Internationalization
- tests/ - All test files
- scripts/ - Build and hook scripts
- docs/adr/ - Architecture Decision Records
- docs/prd/ - Product Requirements Documents
Performance
- IMPLEMENT efficient caching strategies
- USE SQLite for offline-first functionality
- MINIMIZE API calls through smart caching
- OPTIMIZE bundle size for fast CLI startup
Commands
- show - Comprehensive change information including metadata, diff, and all comments
- comment - Post comments with piped input support for AI integration
- diff - Get diffs with various formatting options
- comments - View all comments on a change with context
- incoming/mine/abandon/open - Change management commands
Remember: This is a CLI tool, not a web app. No React components, no .tsx files, no Playwright tests.
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.

