hook-manager

Generate per-task enforcement policies for filesystem path ownership and MCP server access.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/MassimilianoPili/agent-framework --skill hook-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-manager
Source: https://github.com/MassimilianoPili/agent-framework/tree/main/.claude/agents/hook-manager
Command: npx skills add https://github.com/MassimilianoPili/agent-framework --skill hook-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that AI agents only access and modify files and network resources they are explicitly permitted to, preventing unauthorized actions and maintaining system integrity.

Core Features & Use Cases

  • Path Ownership Enforcement: Restricts agent write access to designated directories.
  • MCP Server Allowlisting: Controls which external services agents can communicate with.
  • Use Case: Before an agent begins writing code, this Skill verifies it only writes to the backend/ directory and can only call the git and repo-fs MCP servers, ensuring adherence to project structure and security policies.

Quick Start

Use the hook-manager skill to generate hook policies for the current plan.

Frequently Asked Questions about hook-manager

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

FAQPage Schema
How do I enforce filesystem path ownership for autonomous AI agents?

Filesystem path ownership enforcement restricts autonomous AI agents to writing only within explicitly designated directories, preventing unauthorized modifications and maintaining project security boundaries. It uses generated per-task policies to define these access controls.

What is MCP server allowlisting for AI agent network access control?

MCP server allowlisting is a network access control mechanism that dictates which external services AI agents are permitted to communicate with, ensuring agents only call explicitly authorized servers and preventing unauthorized network requests.

How do I generate per-task security policies for orchestrating AI agents?

Generating per-task security policies requires accessing the agent registry, hook configurations, and worker manifests to determine appropriate filesystem boundaries and MCP server access controls before an agent begins executing its assigned tasks.

Can I restrict an AI agent's write access to specific directories like the backend folder?

Yes, you can restrict an AI agent's write access to specific directories by applying path ownership enforcement, verifying that the agent only modifies designated folders such as a backend directory and preventing writes elsewhere.

Do I need an agent registry to apply filesystem and network policies?

Yes, an agent registry is required alongside hook configurations and worker manifests, as these components provide the necessary framework context to accurately determine and apply appropriate per-task security boundaries.