Commit Graph

3 Commits

Author SHA1 Message Date
27330ceae1 feat(claude/commands): support staged-only commits and add git diff permission
Allow commit commands to operate on only staged changes when requested,
rather than always staging everything. This enables more granular control
over what gets committed.

- Add `Bash(git diff:*)` to allowed-tools in both commit and
  commit-push-pr commands
- Add instructions to check staged changes with `git diff --staged`
  and skip staging additional files when asked for staged-only commits
- Restructure commit.md flow to clarify staged-only vs full commit

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:30:35 +00:00
623e3896e6 fix(claude/commands): improve line wrapping for 80-char line length
Reflow long lines in command files to stay within 80 characters,
matching the project's line length convention. Also fix lowercase
"markdown" to "Markdown" in refactor-agents.md.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:22:22 +00:00
46b6b051c8 feat(claude/commands): add commit and branch cleanup commands
Bring in three slash commands from the official claude-plugins repo
to streamline common git workflows directly from Claude.

- clean-gone-branches: remove local branches deleted on remote
- commit-push-pr: commit, push, and open a PR in one step
- commit: create a git commit from current changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 14:23:17 +00:00