agentleFS
aaronshafaaronshaf/ger/CLAUDE.md

ger

CLAUDE.md4 starsChanged 13 months agoMITView on GitHub

  • In this repositoryOne other file it gives its agents.

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
  1. Very specific:

    MUST: use isolatedDeclarations: true in tsconfig.json

    line 18
  2. Very specific:

    ONLY: use .ts files (no .js/.jsx/.tsx files - this is a CLI tool)

    line 19
  3. Very specific:

    NEVER: use as typecasting except for as const or as unknown

    line 20
  4. Very specific:

    NEVER: use --no-verify flag with git commands

    line 21
  5. Distinctive:

    RUN: all tests in pre-commit and pre-push hooks

    line 27
  6. Distinctive:

    NEVER: commit sensitive data, API keys, or secrets

    line 35
  7. Distinctive:

    UNIT TESTS: Test individual functions, schemas, and utilities

    line 57
  8. Distinctive:

    INTEGRATION TESTS: Test complete command flows with mocked HTTP requests

    line 58
  9. Distinctive:

    HTTP MOCKING: Use MSW handlers with http.get/http.post patterns for mocking

    line 59
  10. Distinctive:

    SCHEMA VALIDATION: Ensure mocks return data that validates against Effect Schemas

    line 60
  11. Distinctive:

    COMMAND COVERAGE: Every command must have integration tests covering:

    line 61
  12. Distinctive:

    NEVER: commit directly to main

    line 70
  13. Distinctive:

    INCLUDE: test coverage report in README.md

    line 71

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 as typecasting except for as const or as 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 build after making changes to ensure compilation succeeds
  • USE ast-grep to enforce no as typecasting 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.

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.