You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/pre-commit.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,13 @@ Run the pre-commit checklist for this project:
10
10
2. Run `cargo fmt` — formats code in place.
11
11
3. Run `cargo clippy --all-targets --all-features -- -D warnings` — must pass clean.
12
12
4. Run `cargo test` — all tests must pass.
13
-
5. Run `cargo build` — must succeed.
14
-
6. If Docker is running, run `docker compose build` — must succeed with no
13
+
5. Run `cargo tarpaulin --fail-under 80` — coverage must be ≥80%.
14
+
6. Run `cargo build` — must succeed.
15
+
7. If Docker is running, run `docker compose build` — must succeed with no
15
16
errors. Skip this step with a note if Docker Desktop is not running.
16
-
7. If `coderabbit` CLI is installed, run `coderabbit review --type uncommitted --prompt-only`:
17
+
8. If `coderabbit` CLI is installed, run `coderabbit review --type uncommitted --prompt-only`:
17
18
- If actionable/serious findings are reported, stop and address them before proposing the commit.
18
19
- If only nitpick-level findings, report them and continue to the commit proposal.
19
20
- If `coderabbit` is not installed, skip this step with a note.
20
21
21
-
Run steps 2–5, run step 6 (docker build), then run step 7 (CodeRabbit review) if available, report the results clearly, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat``fix``chore``docs``test``refactor``ci``perf`) followed by a co-author line `Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>`. Do not create the branch or commit until I explicitly confirm.
22
+
Run steps 2–6, run step 7 (docker build), then run step 8 (CodeRabbit review) if available, report the results clearly, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat``fix``chore``docs``test``refactor``ci``perf`) followed by a co-author line `Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>`. Do not create the branch or commit until I explicitly confirm.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,14 @@ Release codenames follow an A-Z sequence using Ballon d'Or award nominees surnam
44
44
45
45
### Added
46
46
47
-
- Architecture Decision Records in `adr/`: 8 ADRs (0001–0008) documenting framework selection, four-layer architecture, Diesel/r2d2/SQLite persistence stack, dual-key strategy, PUT semantics, embedded migrations, integration-only testing, and Docker/Compose strategy (`#113`)
47
+
- Architecture Decision Records in `docs/adr/`: 11 ADRs (0001–0011) documenting framework selection, four-layer architecture, Diesel/r2d2/SQLite persistence stack, dual-key strategy, PUT semantics, embedded migrations, integration-only testing, Docker/Compose strategy, Ballon d'Or-themed versioning, AI-assisted development workflow, and Spec-Driven Development (`#113`)
48
48
49
49
### Changed
50
50
51
51
- Replace `cargo install cargo-tarpaulin` with `taiki-e/install-action@v2.81.8` in CI to use a pre-built binary and reduce coverage job runtime
52
52
- Consolidated agent instructions from `.github/copilot-instructions.md` into `CLAUDE.md`; deleted the legacy split-file layout (`#112`)
53
53
- Rewrote all stale `.coderabbit.yaml` path instructions to reflect the current Diesel/r2d2/SQLite architecture; removed all references to the old `Mutex<Vec<Player>>` in-memory design (`#112`)
54
+
- Added `cargo tarpaulin --fail-under 80` to the `/pre-commit` checklist to enforce 80% coverage locally
Copy file name to clipboardExpand all lines: CLAUDE.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ cargo test -- --nocapture # with output
70
70
3.`cargo build` — must succeed
71
71
4.`cargo test` — all tests must pass
72
72
5. Commit message follows Conventional Commits format (enforced by commitlint)
73
-
6. If this commit introduces or changes an architectural decision, update `CLAUDE.md` and create or amend the relevant ADR in `adr/`.
73
+
6. If this commit introduces or changes an architectural decision, update `CLAUDE.md` and create or amend the relevant ADR in `docs/adr/`.
74
74
7. If this commit adds, removes, or changes an endpoint, a dependency, or how the project is run, update `README.md` and the relevant path instructions in `.coderabbit.yaml`.
75
75
76
76
### Commits
@@ -148,20 +148,23 @@ Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
148
148
149
149
## Architecture Decision Records
150
150
151
-
Architectural decisions are documented in `adr/`. When proposing structural
151
+
Architectural decisions are documented in [`docs/adr/`](docs/adr/README.md). When proposing structural
152
152
changes, check the ADR index first. When a decision changes, mark the existing
153
153
ADR as `Deprecated` or `Superseded by ADR-XXXX` and write a new one.
154
154
155
155
Current ADRs:
156
156
157
-
-[ADR-0001](adr/0001-adopt-rocket-as-rest-api-framework.md) — Rocket 0.5 as HTTP framework
158
-
-[ADR-0002](adr/0002-four-layer-architecture.md) — Routes → Services → Repositories → State
0 commit comments