branchdeck
CLAUDE.md17 starsChanged 8 months agoMITView on GitHub
Guidance for Claude Code when working in this repository. Branchdeck is a daemon-first autonomous development system — desktop-delivered, local-first. Detects quality issues, implements fixes, verifies improvements, learns from results. Stack: Tauri v2 (Rust) + SolidJS (TypeScript) + xterm.js (terminal) + Axum (daemon) Crate boundary rule: use axum:: → daemon. use tauri:: → desktop. Everything else → core. See @.claude/rules/crate-boundaries.md for details. See @.claude/rules/testing.md for full testing patterns and effect executor rules. Quick reference: - Pure functions first, return effects, no…
In this repository74 other files it gives its agents.
- src/CLAUDE.mdCLAUDE.md
- bmad-advanced-elicitationSkill
- bmad-agent-analystSkill
- bmad-agent-architectSkill
- bmad-agent-builderSkill
- bmad-agent-devSkill
- bmad-agent-pmSkill
- bmad-agent-qaSkill
- bmad-agent-quick-flow-solo-devSkill
- bmad-agent-smSkill
- bmad-agent-tech-writerSkill
- bmad-agent-ux-designerSkill
- bmad-brainstormingSkill
- bmad-builder-setupSkill
- bmad-check-implementation-readinessSkill
- bmad-code-reviewSkill
- bmad-correct-courseSkill
- bmad-create-architectureSkill
- bmad-create-epics-and-storiesSkill
- bmad-create-prdSkill
- bmad-create-storySkill
- bmad-create-ux-designSkill
- bmad-dev-storySkill
- bmad-distillatorSkill
- bmad-document-projectSkill
- bmad-domain-researchSkill
- bmad-editorial-review-proseSkill
- bmad-editorial-review-structureSkill
- bmad-edit-prdSkill
- bmad-generate-project-contextSkill
- bmad-helpSkill
- bmad-index-docsSkill
- bmad-initSkill
- bmad-market-researchSkill
- bmad-party-modeSkill
- bmad-product-briefSkill
- bmad-qa-generate-e2e-testsSkill
- bmad-quick-devSkill
- bmad-retrospectiveSkill
- bmad-review-adversarial-generalSkill
- bmad-review-edge-case-hunterSkill
- bmad-shard-docSkill
- bmad-sprint-planningSkill
- bmad-sprint-statusSkill
- bmad-story-cycleSkill
- bmad-teach-me-testingSkill
- bmad-teaSkill
- bmad-technical-researchSkill
- bmad-testarch-atddSkill
- bmad-testarch-automateSkill
- bmad-testarch-ciSkill
- bmad-testarch-frameworkSkill
- bmad-testarch-nfrSkill
- bmad-testarch-test-designSkill
- bmad-testarch-test-reviewSkill
- bmad-testarch-traceSkill
- bmad-validate-prdSkill
- bmad-workflow-builderSkill
- pr-shepherdSkill
- sat-generateSkill
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
Services: all business logic — pure functions, return effects
- Distinctive: line 57
Key rule: No business logic in command/route handlers — call a service, return the result
- Very specific: line 69
All errors via AppError enum in error.rs
- Distinctive: line 97
Test: happy path + one error + one edge case.
- Distinctive: line 102
Always read @DESIGN.md before any visual or UI decisions.
- Distinctive: line 104
Do not deviate without explicit user approval.
≈ “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.md
Guidance for Claude Code when working in this repository.
Project Overview
Branchdeck is a daemon-first autonomous development system — desktop-delivered, local-first. Detects quality issues, implements fixes, verifies improvements, learns from results.
Stack: Tauri v2 (Rust) + SolidJS (TypeScript) + xterm.js (terminal) + Axum (daemon)
Critical Rules
- Package manager is Bun — NEVER use
npm,npx,yarn, orpnpm - Linter is Biome — NEVER use
eslint,prettier, ortscfor linting/formatting - Dev server:
bunx tauri dev(NOTcargo tauri dev) - Build:
bunx tauri build - Verify before commit:
bun run verify
Commands
bun install # Install frontend + sidecar deps (workspaces)
bunx tauri dev # Dev mode (hot reload + Rust rebuild)
bunx tauri build # Production build
bun run check # Biome lint + format check
bun run check:fix # Biome auto-fix
bun test # Frontend tests (vitest)
bun run verify # Full check suite (Biome + vitest + fmt + clippy + cargo test)Architecture (3-Crate Workspace)
crates/
branchdeck-core/ # Library: all business logic (models, services, EventBus)
branchdeck-daemon/ # Binary: Axum server + CLI subcommands
branchdeck-desktop/ # Binary: Tauri thin shell (auto-launches daemon)
src/ # Frontend: SolidJS (shared desktop + web)
sidecar/ # Agent bridge: Node.js + Claude Agent SDK
workflows/ # Default workflow definitions (YAML + SKILL.md)Crate boundary rule: use axum:: → daemon. use tauri:: → desktop. Everything else → core.
See @.claude/rules/crate-boundaries.md for details.
Frontend (src/)
- Framework: SolidJS + Tailwind CSS v4 + Kobalte + xterm.js
- API client:
src/lib/api/client.ts(ky) — never call fetch/ky directly from components - SSE events:
src/lib/api/events.ts—onEvent<T>()helper - Stores:
src/lib/stores/— factory functions, createStore + produce - Components:
src/components/{category}/ComponentName.tsx
Backend (crates/branchdeck-core/src/)
- Services: all business logic — pure functions, return effects
- Models: domain types with Serialize/Deserialize
- Errors: single
AppErrorenum via thiserror - Key rule: No business logic in command/route handlers — call a service, return the result
Code Standards
TypeScript
- Strict mode, no
anyexcept API boundaries - Named exports only, no barrel files
- Single quotes, semicolons, 2-space indent, 100 char width (Biome enforces)
Rust
unsafedenied,unwrap()/expect()warned — use?with thiserror- Clippy pedantic enabled
- All errors via
AppErrorenum inerror.rs - Models:
#[serde(rename_all = "kebab-case")] - File writes:
write_atomic()only —std::fs::writeblocked by clippy lint
Conventions
- Conventional commits (
feat:,fix:,refactor:,docs:,chore:) - No commented-out code
- Structured logging — see @.claude/rules/logging.md
Adding a New Feature
- Models in
crates/branchdeck-core/src/models/ - Service in
crates/branchdeck-core/src/services/— pure functions, return effects - Tests in
crates/branchdeck-core/tests/ - Route in
crates/branchdeck-daemon/src/routes/— thin handler - Frontend types in
src/types/ - API wrapper in
src/lib/api/orsrc/lib/commands/ - Store in
src/lib/stores/if reactive state needed - Component in
src/components/{category}/ - Lifecycle trace — walk one scenario through every function call before committing
- Verify:
bun run verify
Testing
See @.claude/rules/testing.md for full testing patterns and effect executor rules.
Quick reference:
- Pure functions first, return effects, no AppHandle in business logic
- Test: happy path + one error + one edge case. Don't over-test.
- Effect executor arms MUST do real work — no no-op match arms
Design System
Always read @DESIGN.md before any visual or UI decisions. Tokyo Night palette, JetBrains Mono, 0px border-radius, dark-only. Do not deviate without explicit user approval.
CI/CD
Workflows (.github/workflows/)
- ci.yml — PR checks: Biome + Clippy + fmt → build + tests
- claude-code-review.yml — Auto-reviews every PR
- claude.yml — Responds to
@claudementions - claude-ci-fix.yml — Auto-fixes CI failures on feature branches
- release.yml — Manual dispatch: version bump → tag → build → release
Key Docs
DESIGN.md— design system (typography, color, spacing, motion, layout)_bmad-output/planning-artifacts/prd.md— product requirements (59 FRs, 26 NFRs)_bmad-output/planning-artifacts/architecture.md— architecture decisions, implementation patterns_bmad-output/planning-artifacts/epics.md— 9 epics, 43 stories with ACs_bmad-output/project-context.md— AI-optimized codebase context
Detailed Rules (loaded on demand)
- @.claude/rules/testing.md — effect pattern, test conventions, what's not tested
- @.claude/rules/logging.md — structured logging for Rust and TypeScript
- @.claude/rules/crate-boundaries.md — 3-crate workspace rules, file ownership
- @.claude/rules/daemon-api.md — REST API, SSE, frontend transport patterns
- @.claude/rules/workflows.md — WorkflowDef schema, authoring, registry merge
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.

