con un clic
code-commit
// Must be invoked when the user asks to commit code, submit code, or any similar request.
// Must be invoked when the user asks to commit code, submit code, or any similar request.
important!!! Must read before writing/editing any code, and follow it. Covers architecture, conventions, quality standards, and responsive design requirements.
Called only when actively triggered by the user..
Must be invoked when the user asks to commit review.
| name | code-commit |
| description | Must be invoked when the user asks to commit code, submit code, or any similar request. |
Run git status and git diff in the repository to understand all current changes.
Review all changed files. If any issues are found, report them to the user and wait for confirmation before committing.
Use your judgment to identify code that looks temporary or was clearly left in by accident -- things like debugger statements, placeholder values (test123, asdf, foo), commented-out code blocks, or anything that reads like a quick hack not meant for production. Don't be overly rigid; focus on what obviously doesn't belong.
Check whether any files that should not be committed are included in the changes:
.DS_Store, Thumbs.db, etc.*.log, *.tmp, *.bak, *.swp, etc..idea/, .vscode/, etc.node_modules/, dist/, build/, etc..env, credentials.json, private keys, etc.Ensure the code is suitable for an internationalized, open-source project:
Format:
<type>: #AI commit# <concise description>. collaboration and commit by halo
Supported types:
| type | usage |
|---|---|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation changes |
| style | Code formatting (no logic changes) |
| refactor | Refactoring (no new features or bug fixes) |
| perf | Performance improvement |
| test | Test-related changes |
| chore | Build, tooling, dependency updates, etc. |
Examples:
git commit -m "feat: #AI commit# add user authentication module. collaboration and commit by halo"
git commit -m "fix: #AI commit# resolve memory leak in event listener. collaboration and commit by halo"
git add <relevant files>
git commit -m "<generated commit message>"
git add ..git status after committing to verify.git push unless the user explicitly asks.