본문으로 건너뛰기
cccskills
무료GitHub에 공개

commit

Create well-formatted git commits following project conventions with emoji, type, and scope

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/commit - Smart Git Commit

Usage

/commit              # Auto-generate commit for staged/unstaged changes
/commit <message>    # Use provided message as starting point

Workflow

Step 0: Run /review (MANDATORY)

Before any commit work, invoke the /review skill to review and auto-fix all working changes.

  • Run /review using the Skill tool
  • If there are CRITICAL findings, STOP — report them to the user and do NOT proceed to commit
  • If there are only WARNING or SUGGESTION findings, note them in the commit output but proceed
  • The review auto-runs ruff check --fix and ruff format, so code is clean before commit

Step 1: Gather Context (run in parallel)

git status              # Modified/untracked files
git diff --stat         # Summary of changes
git log --oneline -5    # Recent commit style

Step 2: Analyze & Group

  • Identify distinct features/contexts
  • Split ONLY for BIG unrelated features (e.g., new browser detection + analytics rewrite + CI overhaul)
  • Keep together all files for ONE feature (parser + constants + tests)

Step 3: Stage, Commit, Verify

git add <specific-files>
git commit -m "$(cat <<'EOF'
<emoji> <type>(<scope>): <subject>

<body>

- <emoji> Change 1
- <emoji> Change 2
EOF
)"
git status              # Verify success

Type Reference

TypeEmojiUse CaseBody Emojis
feat✨New feature✨ addition, 🔧 config
fix🐛Bug fix🐛 fix, 🛡️ validation
docs📝Documentation📝 docs
style💄Formatting only💄 format
refactor♻️Code restructure♻️ refactor, 🔥 removal
perf⚡Performance⚡ optimize
test✅Tests✅ test, 📋 logging
build📦Dependencies📦 deps
ci🌐CI/CD🌐 pipeline, 🚀 deploy
chore🔧Maintenance🔧 tooling
revert⏪Revert commit⏪ revert
remove🔥Remove code/files🔥 delete

Scope Priority (for multi-area changes)

When changes span multiple areas, use the highest priority scope:

PriorityScopeFile Paths
1parseruser_agent_parser/parser.py
2engineuser_agent_parser/advanced_engine.py
3analyticsuser_agent_parser/analytics.py
4devicesuser_agent_parser/modern_devices.py, MOBILE_DEVICE_CODE_NAME in constants
5constantsuser_agent_parser/constants.py
6apiuser_agent_parser/__init__.py (public API surface)
7teststests/*
8ci.github/workflows/*
9depspyproject.toml, poetry.lock

Rules

RuleDetails
SubjectMax 50 chars, imperative mood
BodyWrap at 72 chars, explain what & why
StagingName specific files, never git add -A
FormatAlways use HEREDOC (see Step 3)
CommitsAlways NEW commits, never amend
Co-AuthorNEVER add Co-Authored-By

Error Handling

ErrorAction
/review has CRITICAL findingsReport findings to user and STOP — do not commit
Pre-commit hook failsFix issue, re-stage, create NEW commit
Nothing to commitReport to user and stop
Merge conflictsReport to user and stop

Examples

Single feature (parser + constants + tests):

git add user_agent_parser/parser.py user_agent_parser/constants.py tests/test_user_agent_parser.py && \
git commit -m "$(cat <<'EOF'
✨ feat(parser): add Brave browser detection

Add regex pattern for Brave browser identification.

- ✨ Add Brave to browser_rules tuple
- 🔧 Add Brave to constants
- ✅ Add parametrized test cases
EOF
)"

Split only for BIG unrelated features:

# Commit 1: New device support
git add user_agent_parser/constants.py user_agent_parser/modern_devices.py && \
git commit -m "$(cat <<'EOF'
✨ feat(devices): add Galaxy S25 device specs

- ✨ Add SM-S93x model codes to MOBILE_DEVICE_CODE_NAME
- ✨ Add DeviceSpec entries for Galaxy S25 series
EOF
)"

# Commit 2: Unrelated analytics fix
git add user_agent_parser/analytics.py tests/test_advanced_engine.py && \
git commit -m "$(cat <<'EOF'
🐛 fix(analytics): correct device distribution percentages

- 🐛 Fix floating point rounding in distributions
- ✅ Add edge case tests for empty datasets
EOF
)"

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

pr

무료

Create or update a pull request from current branch to origin main with auto-generated title and description

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Purushot14/user-agent-parser62026년 3월 18일 업데이트

pr-review

무료

Review PR changes against project standards and post feedback

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Purushot14/user-agent-parser62026년 3월 18일 업데이트

review

무료

Review working changes - code quality, security, library correctness, and standards auto-fix

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Purushot14/user-agent-parser62026년 3월 18일 업데이트

Purushot14의 스킬 모두 보기

이 스킬의 문제 신고