agentleFS
ayutazayutaz/piper-plus/.claude/skills/commit/SKILL.md

commit

Skill240 starsChanged 17 days agoMITView on GitHub

piper-plus のコミットルール (CLAUDE.md 準拠) でステージ済みファイルをコミットします。--no-verify 禁止、HEREDOC、適切な prefix を強制。

  • Reads credentials
  • Commits and pushes

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

Files
SKILL.md

piper-plus 向けコミット

CLAUDE.md のコミット規約に従い、ステージ済みまたは指定ファイルを安全にコミットします。

現在の状態

  • ブランチ: !git rev-parse --abbrev-ref HEAD
  • 直近のコミット: !git log -3 --oneline
  • ステージ状態: !git status --short
  • 差分サマリ: !git diff --stat HEAD

手順

💡 大規模変更の場合: /sync-docs を先に呼び出してドキュメント整合性を確認することを推奨します。このスキルはステップ 2.5 でその判定を行います。

1. ブランチ確認

現在のブランチを確認し、dev の場合はユーザーに確認を取る (CLAUDE.md: 通常はフィーチャーブランチで作業)。

2. 変更内容の把握

  • git status --short で変更ファイルを確認
  • git diff で内容を簡単にレビュー
  • .env, .env.*, credentials*, *.pem, *.key 等の秘密情報が含まれていないか 必ず チェック
  • 含まれていたら 即中止 してユーザーに報告

2.5. ドキュメント同期チェック

コード変更のサイズと種類に応じて、ドキュメント更新が必要か判定します。

判定基準

以下のいずれかに該当する場合、/sync-docs skill を呼び出すことを強く推奨:

  • git diff --stat の変更行数が 100 行以上
  • src/python_run/piper_plus/ / src/python/g2p/ / src/rust/piper-core/ / src/cpp/ / src/csharp/ / src/go/ / src/wasm/openjtalk-web/src/ に新規ファイルが追加されている
  • 公開 API (関数シグネチャ、クラス、メソッド、HTTP エンドポイント) に変更がある
  • piper_train / timing / voice / phonemize / config などのコアモジュールが変更されている
  • 新規テストファイル (tests/test_*.py, test/js/test-*.js, etc.) が 3 つ以上追加されている

アクション

  1. 大規模/コア変更 → ユーザーに /sync-docs の実行を促す:

    このコミットには X 件のコア変更が含まれます。/sync-docs でドキュメント整合性を監査してからコミットしますか?

  2. 小規模変更 (< 100 行、ドキュメントのみ、テストのみ、バグ修正) → スキップ可
  3. ユーザーが「スキップ」を選択 → 警告のみ表示して続行

このステップは informational です。ユーザーが明示的にスキップを選べば、コミット自体はブロックしません。

3. ファイルのステージング

  • ユーザーが既にステージしている場合はそのまま使用
  • 必要なら関連ファイルだけを git add <file1> <file2> で個別追加
  • git add -A / git add . は禁止 (誤って秘密情報をステージするリスク)

4. コミットメッセージ生成

$ARGUMENTS がある場合はそれを優先。なければ変更内容から自動生成:

Prefix 規約

Prefix用途
feat(<scope>):新機能 (scope = python/rust/cpp/cs/go/wasm/ci/docs)
fix(<scope>):バグ修正
refactor(<scope>):リファクタ (機能変更なし)
docs:ドキュメントのみ
test:テスト追加・修正
chore(<scope>):依存/雑務
perf(<scope>):パフォーマンス改善
ci: / ci(<scope>):CI workflow / gate の変更
build(<scope>):ビルド設定 (CMake / Cargo / packaging 等)
style(<scope>):フォーマットのみ (挙動変更なし)
revert:過去コミットの取り消し

type の許容一覧は .commitlintrc.json の type-enum と pr-metadata.yml の pr-title-check (feat / fix / chore / docs / test / ci / refactor / perf / build / style / revert) が正。 一覧外の type は CI の commitlint step で fail する。

メッセージ本文の規約

  • 1-2 文、why を強調
  • 日本語可
  • 命令形ではなく事実の記述 ("Add X" ではなく "X を追加")
  • 詳細は本文に bullet で記述 (短いタイトルだけでなく)

5. コミット実行

必須形式: HEREDOC

git commit -m "$(cat <<'EOF'
<prefix>(<scope>): <summary>

- <detail 1>
- <detail 2>
EOF
)"

6. 禁止事項 (CLAUDE.md より)

  • ❌ --no-verify (pre-commit hook を skip しない)
  • ❌ --no-gpg-sign (署名を skip しない)
  • ❌ --amend は明示要求がない限り使用しない (新コミットを作る)
  • ❌ 既存の published コミットの修正
  • ❌ git config の変更
  • ❌ pre-commit hook が失敗したら、原因を修正して 新しいコミット を作る (amend ではなく)

7. pre-commit hook 失敗時

pre-commit hook (例: ruff format hook) が失敗したら:

  1. エラー内容を確認
  2. 原因を修正 (ruff format/check --fix を手動実行など)
  3. 修正したファイルを git add で再ステージ
  4. 新しいコミット を作成 (amend ではない)
  5. ユーザーに「hook が失敗したので修正後に再コミットした」と報告

8. 成功後の報告

✅ コミット成功
- ハッシュ: abc1234
- メッセージ: feat(python): ...
- ファイル: 5 changed (+120 -30)
- ドキュメント同期: ✅ (完了) / ⚠️ (未実行・推奨) / - (小規模のためスキップ)

push する場合:
  git push origin <branch-name>

PR 作成する場合:
  /check-pr-ready で最終チェック

注意

  • push は実行しない (明示要求があるまで)
  • PR は作成しない
  • 1 コミットで複数の論理的に異なる変更を混ぜない
  • 大きな変更は複数の小さなコミットに分割することを提案

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.