Skip to content

Commit 791085d

Browse files
nanotaboadaclaude
andcommitted
chore(claude): rename and extend slash commands (#554)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5169a71 commit 791085d

4 files changed

Lines changed: 18 additions & 15 deletions

File tree

.claude/commands/pre-commit.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Pre-commit checklist
2+
3+
Run the pre-commit checklist for this project:
4+
5+
1. Update `CHANGELOG.md` `[Unreleased]` section — add an entry under the
6+
appropriate subsection (Added / Changed / Fixed / Removed) describing the
7+
changes made, referencing the issue number.
8+
2. Run `uv run flake8 .` — must pass.
9+
3. Run `uv run black --check .` — must pass (run `uv run black .` to auto-fix).
10+
4. Run `uv run pytest --cov=./ --cov-report=term` — all tests must pass, coverage must be ≥80%.
11+
5. If `coderabbit` CLI is installed, run `coderabbit review --type uncommitted --prompt-only`:
12+
- If actionable/serious findings are reported, stop and address them before proposing the commit.
13+
- If only nitpick-level findings, report them and continue to the commit proposal.
14+
- If `coderabbit` is not installed, skip this step with a note.
15+
16+
Run steps 1–4, report the results clearly, run step 5 if available, 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`). Do not create the branch or commit until I explicitly confirm.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ open PRs, or create tags until I explicitly confirm.
6363

6464
5. **Propose commit**: `docs(changelog): release vX.Y.Z Codename`
6565

66-
6. **After confirmation**: commit. Then run steps 2–4 of `/precommit` (linting,
66+
6. **After confirmation**: commit. Then run steps 2–4 of `/pre-commit` (linting,
6767
formatting, tests — the CHANGELOG step is already handled). Push the branch
6868
and open a PR into `master` only once all checks pass.
6969

@@ -73,7 +73,6 @@ open PRs, or create tags until I explicitly confirm.
7373

7474
7. **Stop and wait** for confirmation that:
7575
- All CI checks have passed
76-
- CodeRabbit review comments have been addressed
7776
- The PR has been merged into `master`
7877

7978
8. **Pull `master`**, then propose the annotated tag:

.claude/commands/precommit.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
## Claude Code
66

7-
- Run `/precommit` to execute the full pre-commit checklist for this project.
7+
- Run `/pre-commit` to execute the full pre-commit checklist for this project.

0 commit comments

Comments
 (0)