affaan-m/ECC/docs/ja-JP/skills/safety-guard/SKILL.md
safety-guard
Review safety-guard's use cases, installation, workflow, and original source instructions.
- Source repository stars
- 234,327
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
本番システムでの作業時や、エージェントを自律的に実行する際に破壊的な操作を防ぐためにこのスキルを使用してください。
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/safety-guard"Inspect the Agent Skill "safety-guard" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/ja-JP/skills/safety-guard/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
使用するタイミング
本番システムでの作業時
本番システムでの作業時エージェントが自律的に動作している場合(フルオートモード)特定のディレクトリへの編集を制限したい場合 - 02
動作の仕組み
検知した場合: コマンドの内容を示し、確認を求め、より安全な代替手段を提示します。
検知した場合: コマンドの内容を示し、確認を求め、より安全な代替手段を提示します。特定のディレクトリツリーへのファイル編集をロックします:src/components/ 外への Write/Edit は説明付きでブロックされます。エージェントを特定の領域に集中させ、無関係なコードに触れないようにしたい場合に便利です。 - 03
モード1: Careful モード
検知した場合: コマンドの内容を示し、確認を求め、より安全な代替手段を提示します。
検知した場合: コマンドの内容を示し、確認を求め、より安全な代替手段を提示します。
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 64/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | catalog record | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- docs/ja-JP/skills/safety-guard/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
Safety Guard — 破壊的な操作の防止
使用するタイミング
- 本番システムでの作業時
- エージェントが自律的に動作している場合(フルオートモード)
- 特定のディレクトリへの編集を制限したい場合
- センシティブな操作時(マイグレーション、デプロイ、データ変更)
動作の仕組み
3つの保護モードがあります:
モード1: Careful モード
実行前に破壊的なコマンドを検知して警告します:
監視するパターン:
- rm -rf(特に /、~、またはプロジェクトルート)
- git push --force
- git reset --hard
- git checkout .(全変更を破棄)
- DROP TABLE / DROP DATABASE
- docker system prune
- kubectl delete
- chmod 777
- sudo rm
- npm publish(誤公開)
- --no-verify を含む全コマンド
検知した場合: コマンドの内容を示し、確認を求め、より安全な代替手段を提示します。
モード2: Freeze モード
特定のディレクトリツリーへのファイル編集をロックします:
/safety-guard freeze src/components/
src/components/ 外への Write/Edit は説明付きでブロックされます。エージェントを特定の領域に集中させ、無関係なコードに触れないようにしたい場合に便利です。
モード3: Guard モード(Careful + Freeze の組み合わせ)
両方の保護が有効になります。自律エージェントのための最大安全モードです。
/safety-guard guard --dir src/api/ --allow-read-all
エージェントはすべてを読み取れますが、src/api/ にのみ書き込めます。破壊的なコマンドはどこでもブロックされます。
ロック解除
/safety-guard off
実装
PreToolUse フックを使用して Bash、Write、Edit、MultiEdit ツールの呼び出しを検知します。実行前に、アクティブなルールに対してコマンド/パスを確認します。
統合
codex -a neverセッションでデフォルトで有効化する- ECC 2.0 の可観測性リスクスコアリングと組み合わせる
- ブロックされた全アクションを
~/.claude/safety-guard.logに記録する
Alternatives