agentleFS
myrialabsmyrialabs/clopen/CLAUDE.md

clopen

CLAUDE.md48 starsChanged 4 months agoMITView on GitHub

This document provides guidelines for Claude Code when working on the Clopen project.

  • 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

25 rules. About 0 are common, 18 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow agreed-upon architecture and patterns

    line 17
  2. Distinctive:

    Do not change technical decisions without discussion

    line 18
  3. Distinctive:

    Ensure code matches the established folder structure

    line 19
  4. Distinctive:

    Use chosen libraries and frameworks

    line 20
  5. Very specific:

    Do NOT run bun run dev or bun run build commands

    line 21
  6. Very specific:

    Run bun run check and bun run lint.

    line 25
  7. Distinctive:

    Do not create any .md files unless explicitly instructed

    line 26
  8. Distinctive:

    Do NOT create the branch, commit, or PR automatically — draft all three for review

    line 31
  9. Distinctive:

    COMMUNICATE: if existing plans need to be changed

    line 38
  10. Distinctive:

    STOP: after each stage for review

    line 39
  11. Very specific:

    Always use bun commands (never npm/pnpm/yarn)

    line 48
  12. Very specific:

    Use const by default; use let only when reassignment is needed

    line 60
  13. Distinctive:

    Use Svelte 5 runes for state management (not traditional stores)

    line 62
  14. Distinctive:

    Follow Tailwind CSS v4 conventions

    line 63
  15. Very specific:

    Use custom logger module (debug) instead of console.*

    line 64
  16. Very specific:

    Run bun run check for type checking, bun run lint for linting, bun run test for the suite (--isolate, data in ~/.clopen-test)

    line 68
  17. Distinctive:

    Ensure all checks pass before committing

    line 69
  18. Distinctive:

    Ask for clarification when requirements are unclear

    line 74
  19. Distinctive:

    Run dev/build commands during development

    line 81
  20. Distinctive:

    Create documentation files without request

    line 82
  21. Distinctive:

    Use console.* directly (use debug module instead)

    line 84
  22. Very specific:

    Run bun run check and bun run lint after coding

    line 92
  23. Distinctive:

    Stop and wait for confirmation between stages

    line 93
  24. Distinctive:

    Follow Svelte 5 runes system

    line 96
  25. Distinctive:

    Use debug module for logging

    line 97

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

This document provides guidelines for Claude Code when working on the Clopen project.


WORK PROTOCOL

Before Coding

  1. Identify which stage is currently being worked on
  2. Understand the specific task that needs to be completed
  3. For PR-related tasks (e.g., "review PR #123", "check PR X"), read MAINTAINERS.md first to understand the PR workflow, review process, and maintainer conventions

During Coding

  • Follow agreed-upon architecture and patterns
  • Do not change technical decisions without discussion
  • Ensure code matches the established folder structure
  • Use chosen libraries and frameworks
  • Do NOT run bun run dev or bun run build commands

After Coding

  • Run bun run check and bun run lint; add bun run test when the change touches tested logic
  • Do not create any .md files unless explicitly instructed
  • Hand back the three artifacts from CONTRIBUTING.md → Delivering a Change:
    • Branch: <type>/<description> — lowercase, kebab-case, concise
    • One commit: <type>(<scope>): <subject> (imperative, lowercase, no period) plus a body — what broke, why it happened, what the change does about it, wrapped at 72 columns
    • PR description from the template, ready to paste — or a PR comment if the work extends an open PR
    • Do NOT create the branch, commit, or PR automatically — draft all three for review

IMPORTANT RULES

  1. Be CONSISTENT with previously made decisions
  2. COMMUNICATE if existing plans need to be changed
  3. STOP after each stage for review

PROJECT-SPECIFIC GUIDELINES

Runtime & Package Manager

  • Bun-only project — Node.js and Deno are NOT supported
  • Always use bun commands (never npm/pnpm/yarn)
  • Runtime checks exist in bin/clopen.ts and backend/index.ts

Architecture

  • Backend: Bun + Elysia with WebSocket architecture
  • Frontend: Svelte 5 with runes system ($state, $derived, $effect)
  • Database: SQLite with migration system

Code Style

  • TypeScript throughout the entire codebase
  • Use const by default; use let only when reassignment is needed
  • In .svelte files: let for $state and $bindable; const for $derived, $props, functions
  • Use Svelte 5 runes for state management (not traditional stores)
  • Follow Tailwind CSS v4 conventions
  • Use custom logger module (debug) instead of console.*

Testing

  • Run bun run check for type checking, bun run lint for linting, bun run test for the suite (--isolate, data in ~/.clopen-test)
  • Ensure all checks pass before committing

Communication

  • Report progress after each significant change
  • Ask for clarification when requirements are unclear
  • Discuss architectural changes before implementation

DO NOT

  • Run dev/build commands during development
  • Create documentation files without request
  • Proceed without confirmation after each stage
  • Use console.* directly (use debug module instead)
  • Change technical stack decisions independently

DO

  • Follow established patterns
  • Run bun run check and bun run lint after coding
  • Stop and wait for confirmation between stages
  • Communicate before making significant changes
  • Use TypeScript throughout
  • Follow Svelte 5 runes system
  • Use debug module for logging

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.