
Agent Governance
When your AI agents start calling APIs, touching databases, or executing shell commands, you need guardrails before something goes sideways. This gives you composable governance policies (YAML-based allowlists, rate limits, content filters), semantic intent classification to catch prompt injections and data exfiltration attempts, and decorator-based tool controls with audit logging. The intent classifier catches things like "send all customer data to external API" before execution, while the policy engine enforces "this agent can only read files, not delete them" boundaries. Works with any agent framework and handles the compliance headaches of production deployments.
- skills.sh installs
- 9.7K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill agent-governance --agent claude-codeInstalls into .claude/skills of the current project.
Files
Agent Governance Patterns
Patterns for adding safety, trust, and policy enforcement to AI agent systems.
Overview
Governance patterns ensure AI agents operate within defined boundaries — controlling which tools they can call, what content they can process, how much they can do, and maintaining accountability through audit trails.
User Request → Intent Classification → Policy Check → Tool Execution → Audit Log
↓ ↓ ↓
Threat Detection Allow/Deny Trust Update
When to Use
- Agents with tool access: Any agent that calls external tools (APIs, databases, shell commands)
- Multi-agent systems: Agents delegating to other agents need trust boundaries
- Production deployments: Compliance, audit, and safety requirements
- Sensitive operations: Financial transactions, data access, infrastructure management
Pattern 1: Governance Policy
Define what an agent is allowed to do as a composable, serializable policy object.
from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
import re
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Git & Pull Requests, AI & Agent Building
More from github/awesome-copilot
All 318- Mcp Cli9.7K
- Context Map9.7K
- Ef Core9.7K
- Azure Deployment Preflight9.6K
- Write Coding Standards From File9.6K
- My Issues9.6K
- Create Spring Boot Java Project9.6K
- Appinsights Instrumentation9.5K
- Openapi To Application Code9.5K
- Create Github Issues Feature From Implementation Plan9.5K
- Folder Structure Blueprint Generator9.5K
- Power Bi Report Design Consultation9.5K
- Copilot Sdk9.4K
- Azure Role Selector9.4K
- Prompt Builder9.4K
- Next Intl Add Language9.4K
- Project Workflow Analysis Blueprint Generator9.4K
- Java Refactoring Extract Method9.3K
- Breakdown Plan9.3K
- Remember9.3K
- Breakdown Test9.3K
- Add Educational Comments9.3K
- Breakdown Feature Implementation9.2K
- Debian Linux Triage9.2K