Skip to content

Commit 406a870

Browse files
committed
Update claude conf
1 parent 180a3bd commit 406a870

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

.claude/agents/build.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: build
33
description: Compile the project using cmake and ninja. Use when code changes need to be built or when checking for compilation errors.
44
tools: Bash
55
model: Haiku
6+
effort: low
67
---
78

89
Build the project from the project root.
910

10-
If the build directory doesn't exist yet, run:
11-
mkdir -p build && cmake -GNinja -S . -B build
12-
13-
Then always run:
11+
Run:
12+
mkdir -p build
13+
cmake -GNinja -S . -B build
1414
ninja -C build
1515

1616
Report only errors and warnings. If the build succeeds, say so briefly.

.claude/agents/quality.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: quality
33
description: Run pre-commit quality checks (clang-format, clang-tidy, clazy) on source files. Use after making code changes before finishing a task.
44
tools: Bash
55
model: Haiku
6+
effort: low
67
---
78

89
Run quality checks from the project root.

.claude/agents/test-runner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: test-runner
33
description: Run the test suite with ctest. Use after making code changes to verify correctness. The project must be built first.
44
tools: Bash
55
model: Haiku
6+
effort: low
67
---
78

89
Run the test suite from the project root:

CLAUDE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Build
44

5+
> **Preferred workflow:** use the sub-agents (`@agent-build`, `@agent-test-runner`, `@agent-quality`) defined in `.claude/agents/` — see the [Development](#development) section. The commands below are provided as reference and fallback only.
6+
57
All commands run from the **project root** unless noted.
68

79
**Requirements:** Qt 6, C++20, Ninja. Compiler flags: `-Wall -Wextra -Werror`.
@@ -34,7 +36,7 @@ clang-format -i src/path/to/file.cpp
3436
./scripts/run_clazy.sh src/path/to/file.cpp
3537
```
3638

37-
**Always run pre-commit after making source file changes.** All three checks must pass before the work is done.
39+
Always use these agents rather than running the commands directly. After making source file changes: build, then run tests, then run quality checks, then run code review - all required steps must pass before the work is done.
3840

3941
## Project Structure
4042

@@ -77,6 +79,7 @@ Enforced by `.clang-format` (Mozilla-based, C++20):
7779
- Prefer readability and maintainability over using the latest C++ features (avoid syntax sugar that may be less familiar to new contributors).
7880
- Avoid lambda expressions with more than 2 captures or multiple statements; use named functions instead for clarity.
7981
- Make sure to document public functions with brief Doxygen comments in the source file
82+
- Update json-rpc schema spec when updating json-rpc related code
8083
- Only use early return for error handling, avoid deep nesting
8184
- When fixing a bug, add a test that reproduces the issue before implementing the fix.
8285

0 commit comments

Comments
 (0)