Skip to content

Commit fdf55f1

Browse files
authored
Merge pull request #23 from ModbusScope/dev/claude
Update claude conf
2 parents 180a3bd + 0ab115c commit fdf55f1

4 files changed

Lines changed: 9 additions & 7 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: 3 additions & 3 deletions
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,8 +36,6 @@ 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.
38-
3939
## Project Structure
4040

4141
```text
@@ -89,4 +89,4 @@ Several sub-agents are defined in `.claude/agents/` to keep build/test/lint outp
8989
- **`@agent-quality`** - runs clang-format, clang-tidy, and clazy; reports only violations.
9090
- **`@agent-code-reviewer`** - reviews code for quality, safety, and best practices; provides specific, actionable feedback.
9191

92-
Always use these agents rather than running the commands directly. After making source file changes: build, then run tests, then run quality checks - all must pass before the work is done.
92+
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.

0 commit comments

Comments
 (0)