スキル一覧に戻る
erikpr1994

commit-discipline

by erikpr1994

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: commit-discipline description: "Use when making commits. Conventional commits, atomic changes."

Commit Discipline

Goal: Atomic commits that are easy to review, revert, and understand.

Rules

ATOMIC     -> One logical change per commit
COMPLETE   -> Each commit leaves code working
MEANINGFUL -> Message explains WHY
CONVENTIONAL -> Follow the format

Format

<type>(<scope>): <description>

[optional body]
TypeUse
featNew feature
fixBug fix
refactorCode change (no feature/fix)
testAdding/fixing tests
docsDocumentation
choreBuild, deps, config

Examples

git commit -m "feat(auth): add password reset endpoint"

git commit -m "$(cat <<'EOF'
fix(payments): handle webhook race condition

Two webhooks arriving simultaneously both update same order.
Added mutex to serialize.

Fixes #234
EOF
)"

Atomic Commits

Atomic: One change. Describable in one sentence.

git add -p         # Stage specific hunks
git add src/auth/  # Stage specific files

Workflow

git diff --cached          # Check staged
npm test                   # Verify tests
git commit -m "type: msg"  # Commit

Fixing Mistakes (Not Pushed)

git commit --amend                 # Add to last
git commit --amend -m "new msg"    # Fix message

Decision Criteria

SituationAction
Multiple unrelated changesSplit commits
Tests failingDon't commit. Fix first.
WIP changesUse stash, not commit

Pairs with: tdd, pr-workflow, verification

スコア

総合スコア

50/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

レビュー

💬

レビュー機能は近日公開予定です