feat: add commit skill for conventional commit messages#56
feat: add commit skill for conventional commit messages#56feloy merged 2 commits intokortex-hub:mainfrom
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughIntroduces a new "commit" skill that generates conventional commit messages from staged changes. Includes a reference pointer, README documentation entry, and comprehensive skill documentation with format specifications, guidelines, and examples. No functional code changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
There was a problem hiding this comment.
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 `@skills/commit/SKILL.md`:
- Around line 135-138: Replace the hardcoded "Co-Authored-By: Claude Code
(Claude Sonnet 4.5) <noreply@anthropic.com>" trailer in SKILL.md with
logic/instructions to derive the trailer from the current agent metadata (agent
name and agent noreply email) or to prompt the user to confirm/enter the
co-author info when agent metadata is unavailable; update the examples and
heredoc snippet that reference this trailer (the occurrences around the existing
Co-Authored-By lines) to use a placeholder like "<current agent name> <agent
noreply email>" and add a short note instructing implementers to populate that
placeholder from the runtime agent metadata or via explicit user confirmation.
- Around line 38-45: Update the skill to base its analysis on the index (staged
changes) rather than the working tree: replace uses of `git diff HEAD`/`git
diff` in the SKILL.md examples and checks with `git diff --cached`/`git diff
--cached --stat` (or equivalent) and change the user-facing messages to indicate
"staged" vs "no staged changes"; if nothing is staged, have the skill explicitly
ask the user which files to stage before composing the commit message instead of
proceeding; and stop using a blanket `git add -A` in the workflow—replace that
step with instructing the agent to run `git add` only on the user-approved files
(e.g., the files the user selected to include in the commit).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 700032ef-a4ea-40fa-b55a-27774bf337e3
📒 Files selected for processing (3)
.claude/skills/commitskills/README.mdskills/commit/SKILL.md
Adds a new skill that helps generate conventional commit messages based on git changes. The skill analyzes git status, diff, and recent commit history to suggest well-structured commit messages following the project's conventions. Closes kortex-hub#55 Co-Authored-By: Claude Code (Claude Sonnet 4.5) <noreply@anthropic.com> Signed-off-by: Philippe Martin <phmartin@redhat.com>
Replaces hardcoded agent information with instructions to derive the Co-Authored-By trailer from runtime agent metadata or prompt the user when metadata is unavailable. Updates heredoc example to use placeholders with clear implementation notes. Co-Authored-By: Claude Code (Claude Sonnet 4.5) <noreply@anthropic.com> Signed-off-by: Philippe Martin <phmartin@redhat.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Adds a new skill that helps generate conventional commit messages based on git changes. The skill analyzes git status, diff, and recent commit history to suggest well-structured commit messages following the project's conventions.
Closes #55