一键导入
autocommit
Automatically commit staged changes using conventional commit format with safety checks. Use when you need a structured, conventional commit with scopes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automatically commit staged changes using conventional commit format with safety checks. Use when you need a structured, conventional commit with scopes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | autocommit |
| description | Automatically commit staged changes using conventional commit format with safety checks. Use when you need a structured, conventional commit with scopes. |
| disable-model-invocation | true |
| allowed-tools | Bash(git diff *), Bash(git log *), Bash(git status *), Bash(git commit *) |
Automatically commit staged changes using conventional commit format.
FORBIDDEN COMMANDS - NEVER RUN THESE:
git reset --hard - destroys uncommitted changesgit checkout . or git checkout -- <file> - discards changesgit clean - deletes untracked filesgit stash drop - loses stashed changesgit push --force or git push -f - rewrites remote historygit rebase without explicit user request--hard, --force, -f flags unless explicitly requestedgit add . or git add -A - user controls what is stagedONLY ALLOWED GIT COMMANDS:
git diff --cached or git diff --staged - view staged changesgit log - read commit historygit status - check repository stategit commit -m "..." - commit with message (ONLY after user approval)Read staged changes ONLY:
git diff --cached --stat
git diff --cached
Read recent commit history for style reference:
git log --oneline -20
Generate a conventional commit message following this format:
<type>(<scope>): <short description>
<optional body with more details>
Types:
feat - new featurefix - bug fixrefactor - code refactoring without changing functionalitychore - maintenance tasks, dependenciesdocs - documentation changesstyle - formatting, whitespace (no code change)test - adding/updating testsperf - performance improvementsci - CI/CD changesScopes (project-specific):
parser - lexer, parser, escape handling (src/parser/)writer - serializer, comments, quoting (src/writer/)project - XcodeProject API, build settings, paths, UUIDs (src/project/)types - plist types, ISA definitions, constants (src/types/)objects - pbxproj object model (src/objects/)napi - Node.js N-API bindings (src/lib.rs)tests - integration tests and JS specs (tests/, __test__/)bench - benchmarks (benches/)ci - GitHub Actions workflows (.github/)npm - npm packaging and platform targets (npm/, package.json)Show the proposed commit message and ASK for confirmation:
git commitAfter successful commit:
git status to confirm the commit