スキル一覧に戻る
ingpoc

enforcement

by ingpoc

5🍴 0📅 2026年1月2日
GitHubで見るManusで実行

SKILL.md


name: enforcement description: "Use when implementing hooks that BLOCK invalid actions, creating quality gates for state transitions, or enforcing tested:true verification. Load when designing enforcement mechanisms. Uses exit code 2 to block, JSON permissionDecision:deny, or updatedInput modification. Rules are instructions; hooks are enforcement." keywords: hooks, blocking, quality-gates, verification, exit-code-2, deny

Enforcement

Runtime mechanisms that block invalid actions.

Core Principle

"Rules are instructions, not enforcements. Systems need verification gates, not more documentation."

Instructions

  1. Identify what needs enforcement (not just documentation)
  2. Choose hook timing: PreToolUse, PermissionRequest, SubagentStop
  3. Implement blocking logic: scripts/block-*.sh
  4. Test with invalid action → verify block

Blocking Mechanisms

MechanismHowEffect
Exit code 2exit 2 + stderrBlocks, feeds stderr to Claude
JSON deny"permissionDecision": "deny"Structured blocking
Stop block"decision": "block"Forces agent to continue

Hook Timing

EventCan Block?Use Case
PreToolUseYesValidate before execution
PermissionRequestYesCustom approval logic
SubagentStopYesForce quality gates
PostToolUseNoFeedback only

References

FileLoad When
references/blocking-hooks.mdImplementing hook mechanisms
references/quality-gates.mdDesigning verification loops
references/hook-templates.mdWriting hook code
references/agent-harness-hooks.mdAgent-harness specific patterns
references/sandbox-runtime.mdOS-level MCP server isolation
references/sandbox-fast-path.mdHybrid security (allowlist + sandbox for 2-3x speed)

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です