All AI employees
Engineering & dataone-time

Claude Code の事故防止フック集(自己点検・秘密値・push 先・型チェック・誤デプロイ)

Builder: Shun

Sign in to purchase. Ask the builder in the public Q&A on this page.

Ask before hiring
ShunEngineering & data

one-time

¥9,800

Overview

Claude Code が「うっかり」やる事故を、フック(実行の前後に自動で走るスクリプト)で止める 9 本のセットです。止めた理由と直し方を、日本語のメッセージで Claude に返します。 できること ・完了前の自己点検: ファイルを変えたのに、点検の報告(潰した/もともと堅牢/あえて見送り)が無いと、セッションで1回だけ差し戻す ・未確認の主張の差し戻し: 報告に「動くはず」「should work」が混じると、実行結果を貼らせる ・git: commit する追加行の秘密値と .env のステージを止める。許可していない GitHub の持ち主(owner)への push を止める(他人の fork への誤 push の防止) ・Write / Edit: 書き込む内容の API キー・トークン・秘密鍵と、.env.production・secrets/ への直接の書き込みを止める ・画面表示: 画面に出る文章の秘密値をマスク(会話の記録は元のまま)。巨大なコードブロックを畳む ・TypeScript を編集したあとの型エラーを Claude に返す(多重実行しない・60 秒で打ち切り) ・wrangler deploy: 他のプロジェクトの設定を借りた誤デプロイ(--prefix、--name の不一致、リポジトリ外の設定)を止める。本番ドメインの乗っ取り事故の防止 導入と安全性 ・install.sh が、フックを ~/.claude/safety-hooks/ に置き、設定ファイルを作ります。settings.json への登録は `--apply` を付けたときだけ(既存の設定は残し、バックアップを作り、何度実行しても重複しません)。`--remove` で、このキットの登録だけを外せます ・パスは $HOME と設定ファイルで指定し、ユーザー名やパソコンに依存しません ・付属のテスト 36 項目を、一時フォルダの中で実行できます(本物の設定には触れません) 必要なもの ・Claude Code 2.1.152 以降(MessageDisplay フックのため。ほかの 8 本はそれ以前でも動作する見込みです)、bash、Python 3、git。macOS で動作確認 ・外部サービス・追加費用はありません。ネットワーク通信もしません ご注意 ・これは「うっかり」を減らす安全網です。悪意のある操作や、すべての秘密値の漏れを防ぐものではありません。検出パターンは代表的な形式だけです ・Claude Code のフックの仕様が変わると、動かなくなる場合があります 納品物 ・フック 9 本、設定のひな形、導入・解除スクリプト、テスト、日本語の導入手順書、CLAUDE.md に貼る文面の例、利用許諾(個人利用・社内利用) 購入後の質問は、取引ルームから出品者に送ってください。

How it is operated (reported by the builder)

How it runs
Runs automatically
What a person does
導入時に、config.sh に自分の GitHub のユーザー名を書き、install.sh --apply で登録します。フックが止めた内容の確認と、本当に必要な操作の許可は購入者が行います。
Trigger
自動(Claude Code の Bash・Write・Edit の前後と、応答の終わりに起動)
Models & tools
Claude Code のフック / bash / Python 3(標準ライブラリのみ)/ git。AI モデルは使いません
Who responds if it stops
購入者が、フックが返したメッセージと tests/run-tests.sh の結果を確認します。使い方の質問は出品者が取引ルームで対応します。

The 'AI employee' label is assigned by the operator from the builder's reported figures.

Ask the builder directly about track record and current usage through the pre-hire question form.

After you hire

  1. 01

    Pay once by card (Stripe)

  2. 02

    The builder posts setup steps and access to the delivery box, within 3 business days

  3. 03

    Check it and confirm receipt. Nothing recurring

Questions

Ask before you hire

Questions and answers are public on this page, so nobody has to ask twice.

No questions yet. Ask the first one.

Log in to ask

Questions are public so nobody asks twice. Only signed-in people can post.

Log in to ask

Reviews

Only buyers who hired and confirmed receipt can post a review.

Reviews open after the buyer confirms receipt.

Ask AI

Ask AI if it fits your work.

Use your usual AI to explore what Employee Store offers and what to check before buying.

Opens an external AI service. Confirm pricing and deliverables on the listing page.