本文へ移動
cccskills
無料GitHub で公開

commit

Stage and commit changes using conventional commits format

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.2 KB
  • references/formatting.md888 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Commit with Conventional Commits

Read the formatting constraints before formatting or checking shell changes. Repository paths are relative to the repository root.

Stage and commit current changes using the conventional commits format.

IMPORTANT: This skill MUST be used for ALL commits, even when the user says "commit" without commit. Never commit without following these steps.

Current State

Run the following commands before proceeding:

  • Branch: git branch --show-current
  • Status: git status --short
  • Staged diff: git diff --cached --stat 2>/dev/null
  • Unstaged diff: git diff --stat 2>/dev/null
  • Recent commits: git log --oneline -5 2>/dev/null

Arguments

  • User-supplied argument: Optional hint for the commit message (e.g., fix the snapshot comparison)

Instructions

  1. Review the state above, understand what changed and why.

  2. Stage files, add only the relevant changed files by name. Never use git add -A or git add .. Never stage files that contain secrets (.env, credentials, etc.).

  3. Determine the commit type from the nature of the changes:

    • feat, new feature or capability
    • fix, bug fix
    • docs, documentation only
    • style, formatting, whitespace (no logic change)
    • refactor, code restructuring (no behavior change)
    • test, adding or updating tests
    • chore, maintenance, tooling, config
    • perf, performance improvement
  4. Determine the scope from the area of the codebase affected:

    • assert, assertions (src/assert*.sh)
    • runner, test runner
    • cli, CLI entry point, flags, options
    • doubles, mocks, spies
    • docs, documentation site
    • ci, CI/CD, GitHub Actions
    • Use the most specific scope that fits. Omit if changes span many areas.
  5. Write the commit message:

    • Format: <type>(<scope>): <description>
    • Description: imperative mood, lowercase, no period, under 70 chars
    • Focus on why, not what
    • Add a body (separated by blank line) only if the why isn't obvious from the description
    • Never mention AI, Claude, or automation in the message
  6. Create the commit:

    git commit -m "$(cat <<'EOF'
    <type>(<scope>): <description>
    
    <optional body>
    EOF
    )"
    
  7. Verify the commit was created:

    git log --oneline -1
    

Examples

feat(assert): add assert_json_contains function
fix(runner): resolve parallel execution race condition
test(doubles): add spy verification edge cases
refactor(cli): extract option parsing into helper
docs: update installation instructions
chore(ci): upgrade shellcheck to v0.10
perf(runner): reduce subshell usage in test discovery

Rules

  • One logical change per commit, don't mix unrelated changes
  • Never use --no-verify, if hooks fail, fix the issue
  • Never amend unless the user explicitly asks
  • Always create a NEW commit, even after a hook failure
  • Author: use the git config identity (never commit as sandbox/default user)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add new assertion function with comprehensive tests following TDD

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4352026年10月12日 更新

Analyze test coverage and identify untested code paths

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4352026年10月12日 更新

fix-test

無料

Debug and fix failing tests systematically

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4352026年10月12日 更新

Measure process costs and fork budgets when changing startup, per-file, per-test, parallel workers, reporting, or coverage paths; use for fork census and performance comparisons.

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4352026年10月12日 更新

gh-issue

無料

Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4352026年10月12日 更新

gh-issues

無料

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4352026年10月12日 更新

TypedDevs のスキルをすべて見る

このスキルの問題を報告する