원클릭으로
creating-commits
Use when creating a git commit. Guides intelligent staging, conventional commit message authoring, and pre-commit validation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when creating a git commit. Guides intelligent staging, conventional commit message authoring, and pre-commit validation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use before any code change — new feature, bug fix, refactor, or tech debt. Explores the problem, builds understanding through concrete artifacts, and produces a spec that gates the transition to execution.
Use when you have an approved spec from the Discover phase. Orchestrates implementation — parallel or serial — with autonomy and guardrails.
Use at the start of every conversation and when deciding how to approach a task. Routes to the appropriate phase of the Discover → Execute → Verify flow.
Use after execution is complete, before declaring work ready to ship. Unified verification through multiple lenses: correctness, code quality, review, and architectural feel.
Use when creating, switching, syncing, or cleaning up git branches. Enforces naming conventions and the branching flow.
Use at the start of a new conversation or when working in an unfamiliar codebase. Generates a ranked map of the repository structure to orient before diving into code.
| name | creating-commits |
| description | Use when creating a git commit. Guides intelligent staging, conventional commit message authoring, and pre-commit validation. |
| user-invocable | true |
When it's time to commit, don't just git add -A && git commit. Be intentional about what goes into each commit and craft a message that helps future readers understand why the change was made.
Run git status (never with -uall) and git diff to understand:
Read the diff carefully. Understand the full scope of changes before deciding how to group them.
Each commit should be a single logical unit of work. Ask:
If changes serve multiple purposes, stage and commit them separately. For example:
# First commit: the actual feature
git add src/search.ts src/index.ts tests/search.test.ts
git commit -m "feat: add vector search endpoint"
# Second commit: cleanup noticed along the way
git add src/utils.ts
git commit -m "refactor: extract shared embedding logic"
Prefer staging specific files by name rather than git add -A or git add ., which can accidentally include:
.env files or credentialsgit add src/feature.ts tests/feature.test.ts
Use git add -p (patch mode) if you need to stage only part of a file's changes.
.env, .env.local, credentials, secrets, API keysnode_modules/, build artifacts, .DS_StoreIf you see these in the diff, warn the user explicitly.
Follow the git-conventions skill for format. The key principles:
Match the type to the change: feat means a wholly new capability. fix means a bug fix. refactor means behavior-preserving restructuring. Don't use feat for a bug fix or fix for a new feature.
Imperative mood, lowercase: add search endpoint, not Added search endpoint or Adds search endpoint.
Focus on "why" over "what": The diff shows what changed. The message should explain why.
fix: update query parameterfix: handle empty search queries that crash the parserKeep it concise: Under 72 characters for the subject line. Add a body only when the reasoning isn't obvious.
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>
[Optional body explaining why, not what.
Wrap at 72 characters.]
EOF
)"
After committing:
git log --oneline -5 to confirm the commit looks right--no-verify — fix the issue and create a new commit| Scenario | Approach |
|---|---|
| Single feature with its tests | One commit |
| Feature + unrelated cleanup | Separate commits |
| Bug fix + regression test | One commit |
| Multiple independent fixes | Separate commits |
| Work-in-progress checkpoint | One commit (can squash later) |