copilot-hooks

Community

Configure Copilot Agent hooks for safe automation.

Authortuannguyen151
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Defines and configures GitHub Copilot Agent hooks that run commands at lifecycle events, enabling you to block dangerous commands, auto-format code, log usage, and inject project context.

Core Features & Use Cases

  • Hook events support: PreToolUse, PostToolUse, SessionStart, Stop, SubagentStart, SubagentStop, UserPromptSubmit, PreCompact, and more.
  • Location-first configuration: Workspace hooks are discovered in standard locations (.github/hooks, .claude/settings.json, .claude/settings.local.json, and user-global).
  • Templates & scripts: Ready-to-use templates and scripts for common safeguards like blocking destructive commands, formatting changes, auditing, approvals, and context injection.

Quick Start

Use the Copilot Hooks skill to create a .github/hooks/config.json and a starter script in scripts/ to enforce a simple PreToolUse block for dangerous commands.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: copilot-hooks
Download link: https://github.com/tuannguyen151/nestjs-clean-architecture/archive/main.zip#copilot-hooks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.