Commit Graph

8 Commits

Author SHA1 Message Date
7d3af85adb refactor(claude/commands): clarify PR description expectations in commit-push-pr
The previous instructions were vague about what the PR description should
contain, leading to redundant commit lists in PR bodies. Now explicitly
instructs the agent to use git diff alongside git log, write a cohesive
summary of purpose and impact, and avoid listing commits since the PR
already shows those.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:00:29 +00:00
745535eb84 feat(claude/commands): add recent commits to commit-push-pr context
Give the agent visibility into recent commit history so it can
follow the project's commit message conventions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 23:13:27 +00:00
bcefc18e51 refactor(claude/commands): defer file reads to agent in commit-push-pr
Avoid bloating the prompt context with file contents that may not be
needed. Instead of injecting AGENTS.md, CLAUDE.md, and PR template
via shell commands, instruct the agent to read them on demand. Also
tighten allowed-tools (git branch -m instead of wildcard), add git
log permission, and require PR descriptions to cover all branch
commits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:47:31 +00:00
250279b40f feat(claude/commands): add AGENTS.md/CLAUDE.md review step to commit-push-pr
Ensure agent documentation stays in sync with code changes by
having the command review AGENTS.md and CLAUDE.md before committing.
Adds both files to the context section and inserts a new first step
that checks whether changes warrant documentation updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:41:23 +00:00
6297f5b61d feat(claude/commands): improve commit-push-pr with PR template and master branch support
Add PR template auto-detection context, handle master as a default
branch alongside main, and use template content for PR body when
available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:26:02 +00:00
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