본문으로 건너뛰기
Skillpedia
일반 코딩26k · #10023

ce-commit

하는 일

이 스킬은 로컬 코드 변경을 명확한 메시지가 달린 하나 이상의 git 커밋으로 저장합니다. 배포 단계 없이 깔끔한 커밋 기록을 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓현재 변경 사항을 명확한 메시지의 커밋으로 저장하고 싶을 때.
  • ✓서로 관련 없는 변경이 여러 개 있어 별도의 커밋으로 나누고 싶을 때.
  • ✓로컬에서 먼저 커밋하고, 푸시는 나중에 결정하고 싶을 때.

스킬 링크

https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-commit/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-commit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“현재 변경 사항을 명확한 메시지와 함께 커밋해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 작업 트리와 최근 커밋 스타일을 읽고, 변경된 파일을 묶은 뒤, 결과를 설명하는 커밋 메시지를 작성합니다. 그다음 커밋을 만들고 변경 사항이 저장되었는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Git Commit

Create well-crafted local commit(s) from the current working tree. No push, no PR — use ce-commit-push-pr for the full ship flow.

Done when: each logical change is committed with an explicit file list and a message that states the outcome, and git status is clean of those changes. Stop when: the tree is clean (nothing to commit).

Context

Gather context with each command as its own shell tool call (program + args only). Do not join with ;, &&, ||, pipes, $(...), or redirects — that syntax fails under Windows PowerShell. A non-zero exit is a normal state to interpret, not a failure to suppress.

Command Purpose Non-zero / empty means
git status Working-tree state Not a git repo — stop
git diff HEAD Uncommitted changes Unborn repo / no commits yet
git branch --show-current Current branch Empty = detached HEAD
git log --oneline -10 Recent message style Unborn repo — no history
git rev-parse --abbrev-ref origin/HEAD Remote default branch No origin/HEAD / bare HEAD — try gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name', else main

Treat this as a snapshot. Re-read branch and staged set immediately before committing if anything may have changed.

Default branch name: strip a leading origin/ from origin/HEAD (so origin/trunk → trunk). Use that bare name for all “on the default branch?” checks — never compare against origin/<name>.

Workflow

  1. Gather — run every Context command above (own shell call each), then continue.

  2. Nothing to commit — if git status shows no staged, modified, or untracked files, report that and stop. Do not use git diff HEAD alone as cleanliness (it misses untracked files).

  3. Branch first — if detached HEAD, or on the default branch (main / master / the bare default name above), create a feature branch from the change content (git checkout -b <name>), then re-read git branch --show-current. Do not ask — commit-only still must not leave work only on a detached HEAD or the default branch. If the derived name exists, pick a non-conflicting suffix.

  4. Convention — match project commit conventions already in context; else match the recent log pattern; else conventional commits (type(scope): description). When using conventional commits and fix/feat both fit, default to fix: (remedying broken or missing behavior); reserve feat: for new capabilities. User override wins.

  5. Logical commits — if changed files clearly split into distinct concerns, make separate commits (file level only, 2–3 max, no git add -p). If ambiguous, one commit.

  6. Message — subject is imperative and names the outcome (what is now possible or fixed), not the file list. Body only when motivation or trade-offs are not obvious from the subject. When a plan Implementation Unit ID is already in hand for this commit (conversation, caller, or the files belong to one unit), append that unit's U-ID in parentheses — (U3) means unit 3. Do not hunt for a plan. Omit when the commit spans units, the unit is unclear, or no plan is in hand. When the commit carries someone else's work that will not otherwise land under their name (ported from their branch or PR, or applied from their patch), end the message with a Co-authored-by: Name <email> trailer for each person that work credits: its commit authors and anyone their Co-authored-by trailers name. Copy each identity exactly from those commits or the patch. Never guess an email: when none is recorded, name them in the message body instead.

    • Bad: Update checkout.rb / Add tests and fix stuff
    • Good: Fix double-submit on checkout
    • Good: Add per-subscription mute (U3)
  7. Stage and commit — stage named files only (never git add -A or git add .). Honor exclude:<paths> when the invocation carries it: those files stay uncommitted no matter what else changed; say in the report that they were left out. Write the full message — subject line, blank line, optional body — to a file outside the repo with your file-write tool, then stage and commit as two calls per commit group:

git add file1 file2 file3
git commit -F <message-file> -- file1 file2 file3

No shell parses the message with -F: a $, quotes, backticks, or a multi-line body pass through literally under any shell, with no quoting rules to satisfy. Git's normal whitesp

자주 묻는 질문

커밋을 푸시하나요?

아니요. 로컬 커밋만 만들며, 전체 배포 흐름은 별도의 스킬이 담당합니다.

커밋할 것이 없으면 어떻게 하나요?

스킬은 작업 트리가 깨끗하다고 알리고 멈춥니다.

저장소의 메시지 스타일에 맞추나요?

네. 최근 커밋 메시지를 확인해 새 메시지가 기존 스타일과 맞도록 합니다.

상세 정보

작성자의 원본 설명

Create a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message.

repo: EveryInc/compound-engineering-plugin

인기도

GitHub 스타
26k
순위
#10023
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬