hooks-skill

Validate PreToolUse hook execution order before tool invocation.

376|31|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/avifenesh/agnix --skill hooks-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hooks-skill
Source: https://github.com/avifenesh/agnix/tree/main/tests/fixtures/valid/skills/with-hooks
Command: npx skills add https://github.com/avifenesh/agnix --skill hooks-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps validate that predefined pre-tool hooks run before tool invocations, ensuring reliable workflow orchestration.

Core Features & Use Cases

  • Hook-based pre-tool execution: declaratively defines a PreToolUse command in YAML frontmatter and runs it before any tool use.
  • Observability and auditing: captures and logs the pre-tool command output for verification.
  • Use Case: simulate a pipeline step that must complete a pre-tool action prior to tool invocation.

Quick Start

Execute the skill to run the PreToolUse hook and verify the echo pre-tool output before the tool invocation.

Frequently Asked Questions about hooks-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate pre-tool hooks before tool invocation in an automated workflow?

Pre-tool hook validation is done by declaratively defining a PreToolUse command in YAML frontmatter, which executes reliably before any tool invocation to ensure proper orchestration order across diverse environments.

What is a PreToolUse hook and how does it enforce workflow execution order?

A PreToolUse hook is a command-type hook defined in YAML frontmatter that executes strictly before a tool invocation, capturing its output for auditing to enforce and verify reliable workflow execution order.

How do I capture and log pre-tool command output for pipeline auditing?

You can capture and log pre-tool command output for auditing by running the defined PreToolUse hook, which records the echo pre-tool output for verification before the actual tool invocation occurs.

Can I use YAML frontmatter to define command-type hooks for DevOps testing?

Yes, you can use YAML frontmatter to define command-type hooks for DevOps testing, specifying the required command to run as a PreToolUse hook prior to tool execution for workflow validation.

Does this pre-tool orchestration approach work across diverse environments without dependencies?

Yes, this pre-tool orchestration approach works across diverse environments with no dependencies, ensuring the predefined pre-tool hook runs reliably before tool invocation regardless of the environment setup.