SuperAPI AI Directory

git-commit

Coding & development

View repository

Updated 11-08 16:15

About this skill

Commit all changes (purely local operation).

Commit requirements

  • Commit at an auditable granularity, with clear commit messages, and only commit files that should be included in the repository
  • Commit messages comply with the Conventional Commits specification
  • Run the minimum-scope tests related to the modified content; if they fail, fix and commit
  • When the changes involve skills/ or README.md , run node scripts/check.mjs before committing to verify consistency

Process

  1. First check git status --porcelain then decide.
  2. If files that should be ignored/temporary files are found: after seeking the user's opinion, decide 1 include them in the commit 2 keep them and update .gitignore 3 delete them directly.
  3. Complete the commit according to the "Commit requirements"; at the end, try to ensure the working tree is clean.