Capabilities
- Staging: Add modified files to the git staging area.
- Message Generation: Create commit messages that follow the
type(scope): descriptionformat (e.g.:feat(auth): add login page)。 - Committing: Execute
git commit。
Instructions
- Pre-commit Check: Before performing any git commit operation, confirm that
@quality-guardianhas passedpnpm typecheckandpnpm lint. If not yet performed, prompt the Agent or user to complete the quality check first. - Verify Status: Check
git statusto see what needs to be staged. - Generate Message: Analyze the changes to determine
type(feat, fix, docs, style, refactor, test, perf, build, ci, chore, revert),scope(optional, e.g.: component name, module) anddescription。 - Commit: Run
git commit -m "..."。 - Verification: Ensure the message conforms to
commitlint.config.ts。
Usage Example
Input: "Commit the new user profile feature."
Action: git add ., analyze changes, generate message feat(user): 实现带有头像上传功能的用户个人资料页面, git commit。