subagent-safety

Define and enforce delegation rules for subagent operations.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/matteobortolazzo/claude-tools --skill subagent-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subagent-safety
Source: https://github.com/matteobortolazzo/claude-tools/tree/main/ccflow/skills/subagent-safety
Command: npx skills add https://github.com/matteobortolazzo/claude-tools --skill subagent-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Defines and enforces safe delegation rules for subagents, preventing security and workflow risks.

Core Features & Use Cases

  • Explicit delegation gates: clearly separates allowed tasks like code reading and local file writes from restricted actions.
  • Prompt and auth guardrails: blocks surface of user prompts or authentication errors to subagents.
  • Governance for task coordination: applies across toolchain to avoid permission prompts and risky commands.

Quick Start

Configure the system to allow subagents to perform reading, analysis, and local file operations while routing any actions requiring authentication or user prompts through the main agent.

Frequently Asked Questions about subagent-safety

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

FAQPage Schema
How do I prevent subagents from accessing authentication credentials in AI workflows?

To prevent credential exposure in AI workflows, you enforce delegation rules that block authentication errors and route privileged actions through the main agent. This ensures subagents only handle allowed tasks like local file operations.

What tasks should be restricted when delegating operations to AI subagents?

When delegating operations to AI subagents, restricted tasks include any actions requiring authentication, user prompts, or permission prompts. Subagents should only perform code reading, analysis, and local file writes to maintain safety.

How do I set up safe delegation rules for subagents doing code analysis?

To set up safe delegation rules for subagents doing code analysis, configure the system to allow reading and local file writes while routing authentication and user prompts to the main agent. This documents guardrails that prevent risky commands.

Why does my AI subagent trigger permission prompts during file operations?

AI subagents trigger permission prompts during file operations when governance rules are not enforced to separate allowed local writes from restricted actions. Applying delegation gates prevents these prompts by routing privileged requests to the main agent.

Can subagents handle user prompts safely in a delegated task architecture?

Subagents cannot handle user prompts safely in a delegated task architecture. Guardrails must block the surface of user prompts to subagents, ensuring the main agent retains control over privileged actions and authentication.

What is the best way to govern task coordination between a main agent and subagents?

The best way to govern task coordination between a main agent and subagents is to apply explicit delegation gates across the toolchain. This clearly separates allowed analysis tasks from restricted actions, avoiding permission prompts and risky commands.