feat: add Git Commit Assistant workflow for quality checks and message generation#156
Open
pontemonti wants to merge 2 commits intomainfrom
Open
feat: add Git Commit Assistant workflow for quality checks and message generation#156pontemonti wants to merge 2 commits intomainfrom
pontemonti wants to merge 2 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a dedicated Git Commit Assistant agent specification to standardize how commits are prepared, validated, and messaged within the project.
Changes:
- Introduces a structured, multi-phase commit workflow (pre-commit validation, linting with optional auto-fix, tests, commit message generation, and commit execution).
- Defines detailed user interaction patterns and error handling for lint failures, test failures, missing staged changes, and git errors.
- Establishes conventional commit message guidelines (types, scopes, and quality rules) plus an example end-to-end session.
Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new agent definition for commit assistance in the
.claude/agents/commit.mdfile. The agent guides users through a structured workflow for committing staged changes, ensuring code quality by running linting and tests, and generating conventional commit messages. The workflow includes clear user prompts and error handling to improve commit reliability and message quality.Commit Workflow Agent Addition:
.claude/agents/commit.mdfor a Git Commit Assistant that automates and quality-controls the commit process, including activation triggers and stepwise phases.Quality Assurance Steps:
Commit Message Standards:
User Interaction and Error Handling: