ad-hooks

Scaffolds deterministic pre-commit and pre-push hooks for your project stack.

1|Updated May 8, 2026
One-click install
npx skills add https://github.com/alexandremendoncaalvaro/agentic-development --skill ad-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ad-hooks
Source: https://github.com/alexandremendoncaalvaro/agentic-development/tree/main/src/skills/claude-code/ad-hooks
Command: npx skills add https://github.com/alexandremendoncaalvaro/agentic-development --skill ad-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the gap between advisory workflows and deterministic enforcement by automating the setup of pre-commit and pre-push quality gates.

Core Features & Use Cases

  • Automated Hook Scaffolding: Detects your project stack (Node, Python, Go, Rust) and configures the appropriate runner like Husky, lefthook, or pre-commit.
  • Quality Gate Enforcement: Updates AGENTS.md to ensure linting, formatting, secret scanning, and testing are mandatory and non-bypassable.
  • CI Mirroring: Compares local hooks against CI configurations to identify and close coverage gaps, ensuring local failures mirror CI failures.

Quick Start

Ask the agent to run the ad-hooks skill to detect your project stack and scaffold the necessary pre-commit and pre-push quality gates.

Frequently Asked Questions about ad-hooks

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

FAQPage Schema
How do I set up pre-commit hooks to enforce code quality automatically?

To set up pre-commit hooks for code quality, the skill detects your project stack and configures industry-standard runners like Husky, lefthook, or pre-commit. It scaffolds deterministic pre-commit and pre-push quality gates to enforce linting, formatting, and testing standards automatically.

What is the best way to ensure my local pre-commit hooks match my CI pipeline?

The best way to ensure local pre-commit hooks match your CI pipeline is through CI mirroring. This skill compares local hooks against CI configurations to identify and close coverage gaps, ensuring local failures mirror CI failures deterministically.

Does this automated hook scaffolding work with Python and Go projects?

Yes, automated hook scaffolding works with Python and Go projects, alongside Node and Rust. The skill detects your specific project stack and configures the appropriate runner, such as Husky, lefthook, or pre-commit, to establish mandatory quality gates.

How do I make secret scanning and linting mandatory and non-bypassable in my repository?

To make secret scanning and linting mandatory and non-bypassable, the skill scaffolds pre-push and pre-commit hooks while updating AGENTS.md. This enforces deterministic quality gates that eliminate the gap between advisory workflows and strict code quality enforcement.

Why do I need automated quality gates instead of relying on advisory workflows?

You need automated quality gates because advisory workflows are easily bypassed. This skill eliminates that gap by scaffolding deterministic pre-commit and pre-push hooks, ensuring linting, formatting, secret scanning, and testing are strictly enforced locally and in CI.