hook-factory

Generate safety hooks and enforcement scripts from plan analysis files.

Updated May 18, 2026
One-click install
npx skills add https://github.com/fzturk/clearlegaltips-workspace --skill hook-factory-fzturk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-factory
Source: https://github.com/fzturk/clearlegaltips-workspace/tree/main/.claude/skills/hook-factory
Command: npx skills add https://github.com/fzturk/clearlegaltips-workspace --skill hook-factory-fzturk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, python, jq, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the generation of safety hooks, enforcement scripts, and JSON configuration files for systems, ensuring that forbidden patterns are enforced and tool usage is audited, reducing architectural drift.

Core Features & Use Cases

  • Generate Safety Hooks: Automatically produce hooks that enforce forbidden patterns and audit tool usage.
  • System Integration: Operates after the completion of the SYSTEM_MANIFEST.md and identification of forbidden patterns.
  • Use Case: After completing the SYSTEM_MANIFEST.md, the Skill can be used to enforce safety policies across a codebase.

Quick Start

Activate the hook-factory skill after completing the SYSTEM_MANIFEST.md file.

Frequently Asked Questions about hook-factory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate safety hook generation to prevent architectural drift in my codebase?

You can automate safety hook generation by providing a system manifest and analysis file to generate enforcement scripts and JSON configurations that prevent architectural drift and audit tool usage automatically.

What are code safety enforcement scripts and how do they work?

Code safety enforcement scripts are automated hooks that block forbidden patterns and audit tool usage within your system. They operate by executing Bash and Python scripts based on predefined architectural constraints.

Do I need a system manifest to start generating enforcement hooks?

Yes, you need to complete a SYSTEM_MANIFEST.md file and identify forbidden patterns before activating the hook generation process to ensure the generated scripts accurately enforce your specific architectural constraints.

Can I use Bash and Python to configure automated system auditing for code safety?

Yes, automated system auditing for code safety is configured using Bash scripts and Python execution permissions to run the generated enforcement hooks and validate your codebase against security constraints.

What's the best way to prevent forbidden code patterns from entering my system?

The best way to prevent forbidden code patterns is to implement automated safety hooks that enforce architectural constraints directly in your system, blocking non-compliant code before it causes architectural drift.

What limitations exist when using generated safety hooks for system auditing?

Limitations include the strict dependency on a completed manifest file and analysis for accurate pattern enforcement, plus the requirement for explicit execution permissions for both Bash and Python scripts.