github avatar

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-code

Installs 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
1github avatarmcp-cligithub/awesome-copilotInterface for MCP (Model Context Protocol) servers via CLI. Use when you need to interact with external tools, APIs, or data sources through MCP servers, list a9.7Kskills.sh installs
2github avatarcontext-mapgithub/awesome-copilotGenerate a map of all files relevant to a task before making changes9.7Kskills.sh installs
3github avataref-coregithub/awesome-copilotGet best practices for Entity Framework Core9.7Kskills.sh installs
4github avatarazure-deployment-preflightgithub/awesome-copilotPerforms comprehensive preflight validation of Bicep deployments to Azure, including template syntax validation, what-if analysis, and permission checks. Use th9.6Kskills.sh installs
5github avatarwrite-coding-standards-from-filegithub/awesome-copilotWrite a coding standards document for a project using the coding styles from the file(s) and/or folder(s) passed as arguments in the prompt.9.6Kskills.sh installs
6github avatarmy-issuesgithub/awesome-copilotList my issues in the current repository9.6Kskills.sh installs