SuperAPI AI Directory

conventional-committer

General & other

View repository

Updated 10-16 08:49

About this skill

Conventional Committer Skill

Capabilities

  • Staging: Add modified files to the git staging area.
  • Message Generation: Create commit messages that follow the type(scope): description format (e.g.: feat(auth): add login page)。
  • Committing: Execute git commit。

Instructions

  1. Pre-commit Check: Before performing any git commit operation, confirm that @quality-guardian has passed pnpm typecheck and pnpm lint. If not yet performed, prompt the Agent or user to complete the quality check first.
  2. Verify Status: Check git status to see what needs to be staged.
  3. 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) and description。
  4. Commit: Run git commit -m "..."。
  5. 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。