Skip to content
cccskills
FreePublished on GitHub

wrap-git-commit-safe

git commit を安全側で実行したいとき、機密ファイルやhook無視を防ぎたいときに使う。

The English summary is being prepared. Showing the original description.

See how to install

Files included (6)

  • SKILL.md6.9 KB
  • references/resource-map.yaml1.9 KB
  • schemas/wrap-io.schema.json1008 B
  • scripts/pre-commit-secret-scan.py3.3 KB
  • scripts/preflight-git-commit.py3.0 KB
  • templates/commit-template.md552 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Pre-choice usable artifact execution

Purpose & Output Contractの最小の実成果物をmain contextで作成する。effect別のparse/open・secret・irreversible・corrupt guardだけを実行し、現物path・digest・開き方を提示してからaccept-as-is/light/standard/detailedを記録する。accept-as-isはその場でhandoff完了とし、後続sectionを実行しない。

Post-choice selected improvement execution

以下の既存workflow・goal-seek・評価・修正sectionはlight/standard/detailedが記録されてsemantic_evaluator_startedへ遷移した場合だけ実行する。release/exhaustiveは別の明示eventを必要とする。

wrap-git-commit-safe

Purpose & Output Contract

base Skill (run-build-skill) の commit ステップを wrap し、機密ファイル混入・hook bypass・force-push を防止する。

入力: なし (base から呼ばれる) 出力: 安全側で実行された git commit の結果、または BLOCK 理由

完了条件: commit 成功または BLOCK 理由が提示されている。

Key Rules

  1. base 継承: run-build-skill の commit 手順を base とし、前後に安全チェックを追加。
  2. --no-verify 禁止: hook bypass フラグを検出したら即停止。
  3. 機密ファイル検出: .env, credentials.json, *.pem を git add 対象に含めない。
  4. force-push 禁止: main/master への git push --force は常に BLOCK。

ゴールシーク実行

base Skill (run-build-skill) の commit ステップを wrap する実行系。固定手順ではなく、下記ゴール・チェックリストへ向けて反復する(正本 run-build-skill/references/goal-seek-paradigm.md)。

ゴール (Goal)

機密ファイル混入・hook bypass・force-push のいずれもないことが決定論的に確認されたうえで git commit が成功している、または BLOCK 理由が提示されている。

目的・背景 (Why)

base の commit を上書きせず前後に安全フックを被せ、LLM の文字列マッチに頼らない決定論検査で危険な commit/push を未然に止めるため。

完了チェックリスト (Checklist)

  • pre-commit-secret-scan.py が exit 0(.env / credentials.json / *.pem 等が add 対象に含まれない)
  • commit_args / script に --no-verify / --no-gpg-sign が含まれない
  • main/master への git push --force が発生していない
  • base (run-build-skill) の commit が成功、または上記いずれか不合格時に BLOCK 理由を提示している

ゴールシークループ

正本の 6 ステップ(現状評価→手順生成→実行→検証→Anchor Step→反復/差し戻し)に従う。固有差分は下記局面で未達チェックを埋める。決定論検査は script に寄せ、検査不合格は即 BLOCK(再試行で握り潰さない)。

局面カタログ(順序は都度判断)

  • 機密ファイル検出 (決定論スキャン):

    python3 plugins/harness-creator/skills/wrap-git-commit-safe/scripts/pre-commit-secret-scan.py \
      --repo-root "$(git rev-parse --show-toplevel)" \
      --commit-args "$@"
    

    exit 2 で BLOCK。LLM の文字列マッチに依存しない決定論的検査。

  • hook bypass 検出: ユーザー指示や script に --no-verify / --no-gpg-sign が含まれていないか確認。検出時は BLOCK。

  • base の commit 実行: base (run-build-skill) の commit 手順を呼ぶ。

Gotchas

  • wrap は base の代替ではない: base を上書きせず、前後フックとして振る舞う。
  • L1 階層: 共通 git 規約 (L0) に依存。プロジェクト固有規約 (L2) はさらに wrap する。

Additional Resources

  • base: run-build-skill
  • templates/commit-template.md — commit message を整形するときに Read
  • 設計書: 06-classification-and-naming.md (wrap-* prefix), 01a-build-flow.md Step3

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

アプリ・Webサービス・業務ツールの制作を、証拠分析→確定的な初稿→要件定義→体験設計→機能分解→実装→品質ゲート→リリース判定の手順ゲート制で進めるスキル。質問で要件を埋めるのではなく、依頼文・既存コード・資料・ログから最有力案を選び、動く成果物を先に出して差分で改善する。ユーザーが「アプリを作りたい」「ツールを作って」「〜を自動化したい」「システム化したい」「要件定義」「仕様を決めたい」「UI/UXを設計して」「体験を良くしたい」「機能を洗い出して」「MVPを決めたい」「品質チェック」「リリースしていいか判断して」などと言ったら必ず使用する。外部データの取込・マスタ・締め処理を伴う業務システムでは references/data-lifecycle.md も併用する。新規・既存を問わずアプリの制作・改善・リニューアルで使用する。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 19, 2026

Webアプリの準備→要件定義→設計→実装→公開→品質ゲートを実行する内部オーケストレーター。Claude Codeの /build-app /improve-app、Codexの $build-app / $improve-app から明示的に委譲された場合、custom agent起動時、または利用者が $app-orchestrator を明示した場合だけ使用する。一般のアプリ相談から暗黙起動しない。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 19, 2026

run-extract-blueprint が生成した章別ブループリントの忠実性を独立 context で評価したいとき、事実/推測区別と粒度と被覆を検証し draft_hash に束縛した PASS/FAIL verdict をローカル品質ゲート (C01 の周回内の受入判定・差し戻し) へ渡したいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 19, 2026

確認点で利用者が見る深さを選んだあと打ち合わせ資料を作り手とは別の目で確かめたいとき、正確さ・言葉・見た目・シンプルさの指摘を資料の編集なしで受け取りたいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 19, 2026

生成した handout 資料が初心者に伝わるか読みやすさレビューを依頼したいとき、独立 context のレビュアーから指摘と根拠つきの verdict を回収したいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 19, 2026

Notion ページを描画する直前に粒度を検証したいとき、info-collector-agent ページと同等の section 充足度を section_canonical_map 基準で機械検証したいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 19, 2026

See all skills by daishiman

Report a problem with this skill