gemini-hooks

Community

Automate Gemini CLI with lifecycle hooks.

Authorolafkfreund
Version1.0.0
Installs0

System Documentation

## What problem does it solve? Gemini CLI hooks provide a structured mechanism to customize and automate Gemini CLI behavior across sessions, tool calls, and prompts, reducing manual setup and repetitive tasks.

## Core Features & Use Cases

  • Lifecycle events: trigger scripts on SessionStart, SessionEnd, BeforeAgent, AfterAgent, BeforeModel, AfterModel, BeforeTool, AfterTool, and Notification.
  • Command hooks: execute scripts or commands in response to events.
  • Matcher-based filters: selectively apply hooks to specific tools or prompts.
  • Layered configuration: project-specific hooks can override global user hooks for consistency.
  • Use cases: initialize environments for projects, log activity, enforce policies, and intercept tool calls.

### Quick Start Enable hooks in your settings.json, add scripts under the hooks directory (e.g., .gemini/settings.json hooks) and verify with /hooks 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: gemini-hooks
Download link: https://github.com/olafkfreund/nixos_config/archive/main.zip#gemini-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 223,000+ vetted skills library on demand.