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.
- AGENTS.mdAGENTS.md
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
- Distinctive: line 17
Follow agreed-upon architecture and patterns
- Distinctive: line 18
Do not change technical decisions without discussion
- Distinctive: line 19
Ensure code matches the established folder structure
- Distinctive: line 20
Use chosen libraries and frameworks
- Very specific: line 21
Do NOT run bun run dev or bun run build commands
- Very specific: line 25
Run bun run check and bun run lint.
- Distinctive: line 26
Do not create any .md files unless explicitly instructed
- Distinctive: line 31
Do NOT create the branch, commit, or PR automatically — draft all three for review
- Distinctive: line 38
COMMUNICATE: if existing plans need to be changed
- Distinctive: line 39
STOP: after each stage for review
- Very specific: line 48
Always use bun commands (never npm/pnpm/yarn)
- Very specific: line 60
Use const by default; use let only when reassignment is needed
- Distinctive: line 62
Use Svelte 5 runes for state management (not traditional stores)
- Distinctive: line 63
Follow Tailwind CSS v4 conventions
- Very specific: line 64
Use custom logger module (debug) instead of console.*
- Very specific: line 68
Run bun run check for type checking, bun run lint for linting, bun run test for the suite (--isolate, data in ~/.clopen-test)
- Distinctive: line 69
Ensure all checks pass before committing
- Distinctive: line 74
Ask for clarification when requirements are unclear
- Distinctive: line 81
Run dev/build commands during development
- Distinctive: line 82
Create documentation files without request
- Distinctive: line 84
Use console.* directly (use debug module instead)
- Very specific: line 92
Run bun run check and bun run lint after coding
- Distinctive: line 93
Stop and wait for confirmation between stages
- Distinctive: line 96
Follow Svelte 5 runes system
- Distinctive: line 97
Use debug module for logging
≈ “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 Code Guidelines
This document provides guidelines for Claude Code when working on the Clopen project.
WORK PROTOCOL
Before Coding
- Identify which stage is currently being worked on
- Understand the specific task that needs to be completed
- For PR-related tasks (e.g., "review PR #123", "check PR X"), read
MAINTAINERS.mdfirst 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 devorbun run buildcommands
After Coding
- Run
bun run checkandbun run lint; addbun run testwhen 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
- Branch:
IMPORTANT RULES
- Be CONSISTENT with previously made decisions
- COMMUNICATE if existing plans need to be changed
- STOP after each stage for review
PROJECT-SPECIFIC GUIDELINES
Runtime & Package Manager
- Bun-only project — Node.js and Deno are NOT supported
- Always use
buncommands (never npm/pnpm/yarn) - Runtime checks exist in
bin/clopen.tsandbackend/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
constby default; useletonly when reassignment is needed - In
.sveltefiles:letfor$stateand$bindable;constfor$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 checkfor type checking,bun run lintfor linting,bun run testfor 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 checkandbun run lintafter 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
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.

