Skip to content

chore(claude): rename and extend slash commands#555

Merged
nanotaboada merged 6 commits intomasterfrom
chore/rename-and-extend-slash-commands
Apr 4, 2026
Merged

chore(claude): rename and extend slash commands#555
nanotaboada merged 6 commits intomasterfrom
chore/rename-and-extend-slash-commands

Conversation

@nanotaboada
Copy link
Copy Markdown
Owner

@nanotaboada nanotaboada commented Apr 4, 2026

Summary

  • Renames .claude/commands/precommit.mdpre-commit.md and prerelease.mdpre-release.md to align with hyphenated slash command convention
  • Extends /pre-commit with an optional CodeRabbit review step (coderabbit review --type uncommitted --prompt-only) after all checks pass — blocks on serious findings, continues on nitpicks, skips gracefully if CLI not installed
  • Updates /pre-release Phase 2 to reference /pre-commit by its new name
  • Removes CodeRabbit as a manual gate from /pre-release Phase 3 — review now happens at commit time
  • Updates CLAUDE.md reference from /precommit to /pre-commit

Closes #554

🤖 Generated with Claude Code


This change is Reviewable

Summary by CodeRabbit

  • Documentation

    • Added a manual pre-commit checklist and updated pre-release guidance (codename rules, broader breaking-change detection, and revised post-confirmation workflow including an optional automated review). Removed an outdated pre-commit checklist and standardized command naming. Updated README status badges.
  • Chores

    • Expanded build-context ignore rules, added automated analysis configuration, and added corresponding entries to the changelog.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 4, 2026

Warning

Rate limit exceeded

@nanotaboada has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 36 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 16 minutes and 36 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 747c0716-3f9b-4862-9bf7-c995ab2841de

📥 Commits

Reviewing files that changed from the base of the PR and between 955e6f6 and a7d0e71.

📒 Files selected for processing (4)
  • .claude/commands/pre-commit.md
  • .dockerignore
  • .sonarcloud.properties
  • CHANGELOG.md

Walkthrough

Renamed .claude/commands/precommit.md.claude/commands/pre-commit.md, added a conditional coderabbit review --type uncommitted --prompt-only step to the pre-commit checklist, updated .claude/commands/pre-release.md to reference /pre-commit and removed CodeRabbit as a Phase 3 gate, and updated CLAUDE.md to use /pre-commit.

Changes

Cohort / File(s) Summary
Pre-commit checklist
\.claude/commands/pre-commit.md, \.claude/commands/precommit.md
Added hyphenated pre-commit.md with git fetch, changelog/lint/format/test steps and a conditional coderabbit review --type uncommitted --prompt-only; removed legacy precommit.md.
Pre-release update
\.claude/commands/pre-release.md
Replaced internal /precommit reference with /pre-commit; removed CodeRabbit as a manual Phase 3 gate; adjusted post-confirmation workflow to invoke /pre-commit steps (including CodeRabbit review).
Docs/badges & manifest
CLAUDE.md, README.md, .dockerignore, CHANGELOG.md
Updated CLAUDE.md reference from /precommit/pre-commit; changed README status badges; updated .dockerignore; added CHANGELOG entries describing new files/ignores.
CI/analysis config added
.sonarcloud.properties
Added SonarCloud configuration file with project key/org and explicit source/test/exclusion lists.

Sequence Diagram(s)

(omitted — changes are documentation and checklist updates; no multi-component runtime flow requiring visualization)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
Rename command files to hyphenated convention [#554]
Add CodeRabbit review step to /pre-commit with actionable vs. nitpick handling [#554]
Update /pre-release Phase 2 to reference renamed /pre-commit command [#554]
Remove CodeRabbit confirmation gate from /pre-release Phase 3 [#554]

Out-of-scope changes

Code Change Explanation
Updated README badges (README.md) Badge/label updates are cosmetic and not part of #554's stated objectives.
Added SonarCloud config (.sonarcloud.properties) New CI/analysis config not mentioned in #554; unrelated to pre-commit/pre-release checklist objectives.
Updated Docker ignore entries (.dockerignore) Docker context ignores are repository maintenance unrelated to the checklist renaming and CodeRabbit workflow.
CHANGELOG entries for sonar/dockerignore (CHANGELOG.md) CHANGELOG edits document added/ignored files but are not required by #554's scope (checklist/rename/review behavior).

Possibly related issues

Possibly related PRs

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title follows Conventional Commits format with 'chore' prefix, contains a descriptive scope and message, is 47 characters (under 80 limit), and accurately summarizes the main changes: renaming precommit/prerelease files to hyphenated names and extending them with new functionality.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/rename-and-extend-slash-commands
  • 🛠️ sync documentation: Commit on current branch
  • 🛠️ sync documentation: Create PR
  • 🛠️ enforce http error handling: Commit on current branch
  • 🛠️ enforce http error handling: Create PR
  • 🛠️ idiomatic review: Commit on current branch
  • 🛠️ idiomatic review: Create PR
  • 🛠️ verify api contract: Commit on current branch
  • 🛠️ verify api contract: Create PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7df82e9) to head (a7d0e71).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #555   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          114       114           
=========================================
  Hits           114       114           
Components Coverage Δ
Services 100.00% <ø> (ø)
Routes 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/commands/pre-commit.md:
- Line 10: The coverage requirement is not enforced by the pytest command;
update the command string in the pre-commit instructions (the line containing
"uv run pytest --cov=./ --cov-report=term") to include the pytest-cov fail-under
guard so the step fails when coverage is below 80% by appending
"--cov-fail-under=80" (i.e., "uv run pytest --cov=./ --cov-report=term
--cov-fail-under=80").

In @.claude/commands/pre-release.md:
- Around line 66-68: The release instructions currently tell the user to "run
steps 2–4 of `/pre-commit`", which skips commit-time CodeRabbit review (step 5);
update the prose so it runs steps 2–5 of `/pre-commit` instead (e.g., change
"run steps 2–4" to "run steps 2–5") and keep the note that the CHANGELOG step is
already handled, ensuring the commit-time review (step 5) is enforced before
pushing and opening the PR.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: aa41b0cb-951d-4766-879e-903c993e66c8

📥 Commits

Reviewing files that changed from the base of the PR and between 7df82e9 and 791085d.

📒 Files selected for processing (4)
  • .claude/commands/pre-commit.md
  • .claude/commands/pre-release.md
  • .claude/commands/precommit.md
  • CLAUDE.md
💤 Files with no reviewable changes (1)
  • .claude/commands/precommit.md

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.claude/commands/pre-release.md (1)

66-66: Markdownlint style preference (safe to ignore).

Markdownlint expects list item 4 but sees 6 because the numbering continues from Phase 1. This is intentional and improves readability across the multi-phase checklist. The warning can be safely ignored or suppressed with a comment if desired.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/commands/pre-release.md at line 66, The numbered list intentionally
continues from Phase 1 (the line starting "6. **After confirmation**") and
triggers markdownlint; to silence this, add a markdownlint suppression comment
before and after the multi-phase list (e.g., insert <!-- markdownlint-disable
--> immediately above the continued list and <!-- markdownlint-enable --> after
it) so the linter ignores the numbering continuity while preserving the intended
numbering and readability.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.claude/commands/pre-release.md:
- Line 66: The numbered list intentionally continues from Phase 1 (the line
starting "6. **After confirmation**") and triggers markdownlint; to silence
this, add a markdownlint suppression comment before and after the multi-phase
list (e.g., insert <!-- markdownlint-disable --> immediately above the continued
list and <!-- markdownlint-enable --> after it) so the linter ignores the
numbering continuity while preserving the intended numbering and readability.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f940186c-f61d-4ec6-9bd8-694975f472c0

📥 Commits

Reviewing files that changed from the base of the PR and between 791085d and ae0fa1a.

📒 Files selected for processing (2)
  • .claude/commands/pre-commit.md
  • .claude/commands/pre-release.md
✅ Files skipped from review due to trivial changes (1)
  • .claude/commands/pre-commit.md

@nanotaboada nanotaboada force-pushed the chore/rename-and-extend-slash-commands branch from 148f2c2 to 3379b56 Compare April 4, 2026 04:14
nanotaboada and others added 3 commits April 4, 2026 01:17
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@nanotaboada nanotaboada force-pushed the chore/rename-and-extend-slash-commands branch from 3379b56 to 0db6d2b Compare April 4, 2026 04:17
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.claude/commands/pre-release.md (1)

71-71: Static analysis false positive: cross-phase numbering is intentional.

The markdownlint warning MD029 expects step "4" but sees "6" because it counts from the current markdown list block. However, this document intentionally numbers steps sequentially across all phases (Phase 1: 1-2, Phase 2: 3-6, Phase 3: 7-9) for a unified workflow. The numbering is semantically correct; you can safely ignore or suppress this warning.

Optional: Suppress the warning if preferred

If you prefer to silence this specific warning, add a markdownlint comment above line 71:

<!-- markdownlint-disable-next-line MD029 -->
6. **After confirmation**: commit. Then run steps 2–5 of `/pre-commit` (linting,

Or configure .markdownlint-cli2.jsonc to allow "ordered" style for this rule.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.claude/commands/pre-release.md at line 71, The markdown list intentionally
continues numbering across phases (the line starting "6. **After confirmation**"
is correct), so silence the MD029 false positive by adding a markdownlint
disable comment immediately above that list item (use <!--
markdownlint-disable-next-line MD029 -->) or alternatively adjust the
markdownlint config (.markdownlint-cli2.jsonc) to allow "ordered" style for
MD029; update the document to include the disable comment or config change so
the linter no longer flags the intentional cross-phase numbering.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.claude/commands/pre-release.md:
- Line 71: The markdown list intentionally continues numbering across phases
(the line starting "6. **After confirmation**" is correct), so silence the MD029
false positive by adding a markdownlint disable comment immediately above that
list item (use <!-- markdownlint-disable-next-line MD029 -->) or alternatively
adjust the markdownlint config (.markdownlint-cli2.jsonc) to allow "ordered"
style for MD029; update the document to include the disable comment or config
change so the linter no longer flags the intentional cross-phase numbering.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 43e7612c-fc7a-448a-bfb9-654b36559509

📥 Commits

Reviewing files that changed from the base of the PR and between ae0fa1a and 3379b56.

📒 Files selected for processing (2)
  • .claude/commands/pre-commit.md
  • .claude/commands/pre-release.md
✅ Files skipped from review due to trivial changes (1)
  • .claude/commands/pre-commit.md

nanotaboada and others added 2 commits April 4, 2026 01:38
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@nanotaboada nanotaboada force-pushed the chore/rename-and-extend-slash-commands branch from 2bc290e to 9964b7e Compare April 4, 2026 04:58
@nanotaboada
Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 4, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nanotaboada nanotaboada force-pushed the chore/rename-and-extend-slash-commands branch 2 times, most recently from 9d906f2 to b909d6f Compare April 4, 2026 06:05
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@nanotaboada nanotaboada force-pushed the chore/rename-and-extend-slash-commands branch 2 times, most recently from bd2f1ab to a7d0e71 Compare April 4, 2026 06:11
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 4, 2026

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@nanotaboada nanotaboada merged commit 342e663 into master Apr 4, 2026
13 checks passed
@nanotaboada nanotaboada deleted the chore/rename-and-extend-slash-commands branch April 4, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend /pre-commit with CodeRabbit review and clean up /pre-release

1 participant