Skip to content
Back to skills

Configuring Copilot

ASecurity

Use when setting up or debugging GitHub Copilot CLI or cloud-agent hooks, policy hooks, plugins, or skills. Triggers on `.github/hooks`, `~/.copilot/hooks`, `policy.d`, preToolUse, permissionRequest, agentStop, `plugin.json`, repository trust, `disableAllHooks`, or Copilot onboarding, even when the user doesn't say 'Copilot hook'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
ai-agentsrustgoshellbashdebugginggitsecuritydocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill configuring-copilot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Configuring Copilot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Configuring Copilot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-configuring-copilot/badge)](https://www.skillsdirectory.com/skills/xonovex-configuring-copilot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: configuring-copilot
description: "Use when setting up or debugging GitHub Copilot CLI or cloud-agent hooks, policy hooks, plugins, or skills. Triggers on `.github/hooks`, `~/.copilot/hooks`, `policy.d`, preToolUse, permissionRequest, agentStop, `plugin.json`, repository trust, `disableAllHooks`, or Copilot onboarding, even when the user doesn't say 'Copilot hook'."
---

# GitHub Copilot Hooks and Policy

Configure GitHub Copilot's native hook and extension surface without inventing unsupported guarantees or a universal hook file.

## Essentials

- **Separate CLI and cloud** - Resolve the product surface before selecting an event or guarantee.
- **Use version-1 config** - Pin configuration schema, docs snapshot, and observed `copilot --version`.
- **Preserve handler support** - Commands cover hook types; HTTP and prompt handlers have narrower rules and surface limits.
- **Respect policy precedence** - CLI policy hooks load first and cannot be disabled by lower scopes.
- **Review repository execution** - Hooks, plugin extensions, and skill scripts require trust and security review.
- **Onboard reversibly** - Follow **configuring-harness-integrations**; preview scope, handler, cloud data flow, and firewall.

## Gotchas

- Current documentation is not command-only: HTTP handlers are documented, and prompt handlers are limited to `sessionStart`.
- Cloud agent supports a subset of events, runs non-interactively, and does not use `permissionRequest` as a decision gate.
- Cloud hook files are repository-scoped and execute in an ephemeral Linux sandbox with restricted network.
- CLI policy hooks cannot be disabled with lower-scope `disableAllHooks`.
- Pre-approving shell in a skill expands risk and requires review of the skill and its scripts.

## Example

A policy requiring cloud-agent command blocking selects repository `preToolUse`, not `permissionRequest`; the preview includes version-1 JSON, bash-only cloud behavior, firewall/data flow, repository trust, output decision schema, job-timeout impact, and file-level disable rollback.

## Progressive Disclosure

- Read [references/capabilities.md](references/capabilities.md) - Load when mapping semantic intents to native events, handlers, guarantees, versions, ordering, context, or limitations
- Read [references/onboarding.md](references/onboarding.md) - Load when discovering, previewing, applying, verifying, disabling, rolling back, updating, or detecting drift
- Read [references/patterns.md](references/patterns.md) - Load when translating deterministic hooks, model evaluators, specialist agents, or managed adoption recipes

Files in this skill

  • SKILL.md2.6 KB
  • eval-output.json1.9 KB
  • eval-trigger.json4.9 KB
  • moon.yml86 B
  • references/capabilities.md2.8 KB
  • references/onboarding.md1.6 KB
  • references/patterns.md1.2 KB
  • sources.json3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.