flow-engineer-hook

Create cross-platform IDE hooks to enforce custom automation policies.

3|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/korchasa/flow --skill flow-engineer-hook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flow-engineer-hook
Source: https://github.com/korchasa/flow/tree/main/framework/skills/flow-engineer-hook
Command: npx skills add https://github.com/korchasa/flow --skill flow-engineer-hook

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Hooks enable intercepting agent actions (command execution, file read/write, tool usage) and applying rules: allow, block (with explanation), request confirmation, or modify input data. This skill provides a framework to design and implement event hooks (plugins) that intercept agent actions across major IDEs, enabling consistent governance.

Core Features & Use Cases

  • Create and configure hooks to intercept before or after key events (file read/write, tool execution, session lifecycle) across Cursor, Claude Code, and OpenCode.
  • Implement logic via scripts or plugins to enforce security, gating, or workflow policies during AI-assisted development.
  • Use cases include enforcing safety checks before tool usage, auditing agent activity, and shaping agent behavior with contextual prompts.

Quick Start

Define a new hook for your target IDE, implement it in the appropriate scripts or plugins directory, and hook it into the IDE configuration.

Frequently Asked Questions about flow-engineer-hook

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

FAQPage Schema
How do I intercept and block agent actions in IDEs like Cursor or Claude Code?

You intercept and block agent actions by designing event hooks that govern tool usage across IDEs like Cursor and Claude Code. These hooks apply rules to allow, block, or request confirmation before commands execute or files are read and written.

Can I enforce security checks before an AI agent executes commands?

Yes, you can enforce security checks before an AI agent executes commands by implementing pre-event hooks. These intercept tool usage and apply gating policies to ensure safety checks pass before the agent proceeds.

How do I configure workflow hooks to modify file read and write operations?

You configure workflow hooks to modify file operations by placing modular scripts or plugins in your project's hook directory. These hooks intercept file read and write events to modify input data or enforce workflow policies during AI-assisted development.

Does this hook framework work across multiple IDEs or is it IDE-specific?

This hook framework works across multiple IDEs including Cursor, Claude Code, and OpenCode. It requires IDE-specific markers and project hook placements to consistently govern agent actions across different development environments.

What is the best way to audit AI agent activity during a development session?

The best way to audit AI agent activity is by implementing post-event hooks that intercept session lifecycle and tool execution events. These hooks capture agent actions after they occur, enabling consistent governance and activity logging.

When should I use pre-event hooks versus post-event hooks for agent governance?

Use pre-event hooks when you need to block, modify, or confirm input data before an agent action occurs, and use post-event hooks for auditing activity or shaping behavior with contextual prompts after events complete.