一键导入
commit-smart
Atomic Git Commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Atomic Git Commit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Process autonomous task queue from do-work/ folder
Enter plan mode for complex tasks (pour energy into the plan for 1-shot implementation)
Initiate autonomous PR review process with Codex agent
Run comprehensive repo assessment with Codex (every 3 PRs)
Comprehensive security audit covering 10 threat categories
Install all automation for a new repo (git hooks + GitHub Actions)
| name | commit-smart |
| description | Atomic Git Commit |
Created: 2026-02-09-00-00 Last Updated: 2026-02-09-00-00
Create an atomic git commit for the changes made in this session.
First, run git status to see all changes (staged, unstaged, and untracked files).
Identify only the files you touched in this session. Do not commit files modified by other agents or processes.
For tracked files (modified):
git commit -m "<scoped message>" -- path/to/file1 path/to/file2
For brand-new (untracked) files:
git restore --staged :/ && git add "path/to/file1" "path/to/file2" && git commit -m "<scoped message>" -- path/to/file1 path/to/file2
Quote paths with special characters: Any path containing brackets [], parentheses (), or other shell metacharacters must be quoted:
git add "src/app/[candidate]/page.tsx"
git commit -m "message" -- "src/app/[slug]/page.tsx"
feat(auth): add login form, fix(api): handle null response)Co-Authored-By: Codex or any AI co-author line - commits should appear as user-authoredNEVER run these commands unless the user explicitly requests them in writing:
git reset --hardgit checkout <older-commit>git restore to revert files you didn't authorrm on tracked filesIf unsure, STOP and ask the user before proceeding.
git status - review what changedgit diff --staged and git diff - understand the changes.md file (e.g., CODEX.md, QUICK-REFERENCE.md). Keep it minimal.git status again to verify success