commit-changes
정보
commit-changes 스킬은 컨벤셔널 커밋 메시지를 사용하여 Git 변경 사항을 스테이징, 커밋 및 수정합니다. 선택적 스테이징, HEREDOC 형식의 설명형 메시지 작성, 커밋 기록 검증 기능을 제공합니다. 이를 통해 논리적인 작업 단위를 적절한 커밋 관행과 함께 버전 관리 시스템에 저장할 수 있습니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/commit-changesClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Commit Changes
Stage files selective. Write clear commit messages. Verify commit history.
When Use
- Save logical unit of work to version control
- Create commit with descriptive, conventional message
- Amend most recent commit (message or content)
- Review what commit before commit
Inputs
- Required: One or more changed files to commit
- Optional: Commit message (drafted if not given)
- Optional: Whether amend previous commit
- Optional: Co-author attribution
Steps
Step 1: Review Current Changes
Check working tree status. Inspect diffs.
# See which files are modified, staged, or untracked
git status
# See unstaged changes
git diff
# See staged changes
git diff --staged
Got: Clear picture of all modified, staged, untracked files.
If fail: git status fail? Verify inside git repo (git rev-parse --is-inside-work-tree).
Step 2: Stage Files Selective
Stage specific files. Avoid git add . or git add -A — may grab sensitive files or unrelated changes.
# Stage specific files by name
git add src/feature.R tests/test-feature.R
# Stage all changes in a specific directory
git add src/
# Stage parts of a file interactively (not supported in non-interactive contexts)
# git add -p filename
Review staged before commit.
git diff --staged
Got: Only intended files and changes staged. No .env, credentials, large binaries.
If fail: Unstage accidental files with git reset HEAD <file>. Sensitive data staged? Unstage now, before commit.
Step 3: Write Commit Message
Use conventional commits format. Always pass message via HEREDOC for proper formatting.
git commit -m "$(cat <<'EOF'
feat: add weighted mean calculation
Implements weighted_mean() with support for NA handling and
zero-weight filtering. Includes input validation for mismatched
vector lengths.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
Conventional commit types:
| Type | When use |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
test | Add or update tests |
refactor | Code change — no fix, no new feature |
chore | Build, CI, dependency updates |
style | Formatting, whitespace (no logic change) |
Got: Commit created with descriptive message. Explains why, not just what.
If fail: Pre-commit hook fail? Fix issue, re-stage with git add, create new commit. No --amend — failed commit never created.
Step 4: Amend Last Commit (Optional)
Only amend if commit not pushed to shared remote.
# Amend message only
git commit --amend -m "$(cat <<'EOF'
fix: correct weighted mean edge case for empty vectors
EOF
)"
# Amend with additional staged changes
git add forgotten-file.R
git commit --amend --no-edit
Got: Previous commit updated in-place. git log -1 shows amended content.
If fail: Commit already pushed? No amend. Create new commit. Force-push amended commits to shared branches breaks history.
Step 5: Verify Commit
# View the last commit
git log -1 --stat
# View recent commit history
git log --oneline -5
# Verify the commit content
git show HEAD
Got: Commit appears in history with correct message, author, file changes.
If fail: Commit has wrong files? Use git reset --soft HEAD~1 to undo commit, keep changes staged. Re-commit correct.
Checks
- Only intended files in commit
- No sensitive data (tokens, passwords,
.envfiles) committed - Commit message follows conventional commits format
- Message body explains why change made
-
git logshows commit with correct metadata - Pre-commit hooks (if any) passed
Pitfalls
- Commit too much at once: Each commit = one logical change. Split unrelated changes into separate commits.
- Using
git add .blind: Always reviewgit statusfirst. Prefer stage specific files by name. - Amend pushed commits: Never amend commits pushed to shared branch. Rewrites history. Breaks collaborators.
- Vague commit messages: "fix bug" or "update" tells nothing. Describe what changed and why.
- Forget
--no-editon content amends: Adding forgotten files to last commit? Use--no-edit— keeps existing message. - Hook fail leading to
--amend: Pre-commit hook fail → commit never created.--amendwould modify previous commit. Always create new commit after fix hook issues.
See Also
manage-git-branches- branch workflow before commitcreate-pull-request- next step after commitresolve-git-conflicts- handle conflicts during merge/rebaseconfigure-git-repository- repo setup and conventions
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
