← スキル一覧に戻る

git-commit
by kurko
An OS for agents running a company
⭐ 0🍴 0📅 2026年1月20日
SKILL.md
name: "Git Commit" description: "Create well-structured git commits. Use when committing code changes."
Git Commit
Create meaningful commits following conventional standards.
When to Use
- After completing a piece of work
- When code is reviewed and ready
- Creating atomic, logical commits
Dependencies
- code-review.md - Code should be reviewed first
- Check: Self-review completed
Commit Message Format
Structure
<type>(<scope>): <subject>
<body>
<footer>
Type
| Type | When to Use |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting, no code change |
refactor | Code change that neither fixes nor adds |
test | Adding/correcting tests |
chore | Maintenance tasks |
Scope (Optional)
Component or area affected:
auth,api,ui,db, etc.
Subject
- Imperative mood: "add" not "added" or "adds"
- No period at end
- Max 50 characters
- Lowercase start
Body (Optional)
- Explain what and why, not how
- Wrap at 72 characters
- Separate from subject with blank line
Footer (Optional)
- Reference issues:
Fixes #123 - Breaking changes:
BREAKING CHANGE: description
Examples
Simple Feature
feat(auth): add password reset flow
With Body
fix(api): handle null response from payment provider
The payment API occasionally returns null instead of an error
object when the service is degraded. This caused unhandled
exceptions in production.
Fixes #456
Breaking Change
refactor(api): change response format for /users endpoint
BREAKING CHANGE: response now returns array directly instead of
wrapped in { data: [] } object
Commit Guidelines
Atomic Commits
Each commit should:
- Represent one logical change
- Be independently buildable
- Have passing tests
What to Commit
- Only intended changes (check diff)
- No debug code
- No commented-out code
- No sensitive data (credentials, keys)
- No large binary files
What NOT to Commit
- Temporary files
- IDE configuration (unless shared)
- Node modules, vendor directories
- Environment files with secrets
Pre-Commit Checklist
Before committing:
- Tests pass locally
- Linter passes
- Self-review completed
- No unintended changes in diff
- Commit message follows format
- No sensitive data included
Workflow
1. Review Changes
git status
git diff
2. Stage Intentionally
# Stage specific files
git add path/to/file
# Or stage interactively
git add -p
3. Write Message
Write message following format above.
4. Commit
git commit
5. Verify
git log -1 # Check commit
git show # Verify contents
Integration
With code-review.md
- Review before commit
- Commit reflects reviewed changes
With CI/CD
- Commits trigger builds
- Commit message used in changelogs
Anti-Patterns
- "WIP" commits - Don't commit work in progress
- Giant commits - Keep commits atomic
- "Fix stuff" - Write meaningful messages
- Mixing concerns - One logical change per commit
- Committing secrets - Never commit credentials
- Ignoring diff - Always review before commit
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です