generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Describe the feature
Add AI assistant-specific slash commands to the repository for common git and GitHub workflows such as gh-commit, gh-new-pr, gh-review, etc. These commands would encode our repository conventions (worktree workflow, commit message format, PR template, etc.) so that any AI assistant working in this repo follows them consistently.
Use Case
When AI assistants (Claude Code, Cursor, Kiro, etc.) work in this repository, they need to follow specific conventions documented in CLAUDE.md -- for example, running mise run build before committing, and following our PR template. Currently each assistant must interpret CLAUDE.md each time. Purpose-built commands would:
- Standardize commit messages across all contributors (human and AI)
- Ensure PRs follow the repository template and include required sections
- Run the full build validation before committing
- Reduce errors from assistants that miss or misinterpret conventions
Proposed Solution
For instance, add commands for the following workflows:
gh-commit
- Stage specified files (or prompt for which files)
- Run
mise run buildto validate before committing - Generate a conventional commit message based on the diff
- Create the commit with appropriate Co-Authored-By trailer
gh-new-pr
- Ensure work is on a worktree branch (not main)
- Push the branch to the remote
- Create a PR using
gh pr createwith the repository's PR template - Auto-populate the summary from commit messages
gh-review
- Fetch PR details using
gh - Run the existing review agents/skills on the PR diff
- Post review comments
...
Other Information
- These commands should be implemented as plugin commands (
.mdfiles with YAML frontmatter) - They should use
misetasks where appropriate (e.g.,mise run buildfor validation)
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Reactions are currently unavailable