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>
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>
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>
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>
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>
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>
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>
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>