scaffold-hooks

Scaffold agent lifecycle hooks across multiple AI coding platforms.

37|2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/jpcaparas/skills --skill scaffold-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-hooks
Source: https://github.com/jpcaparas/skills/tree/main/skills/scaffold-hooks
Command: npx skills add https://github.com/jpcaparas/skills --skill scaffold-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of setting up and managing agent lifecycle hooks across multiple platforms, reducing the complexity of configuring and maintaining hooks in different environments.

Core Features & Use Cases

  • Universal Scaffolding: Provides a unified approach to scaffold hooks for Claude Code, Codex, GitHub Copilot, Devin CLI, and OpenCode, eliminating the need for multiple dedicated skills.
  • Detects Existing Hooks: Automatically detects existing hook surfaces or managed scaffold states, allowing for efficient updates and refreshes.
  • Conservative Merging: Preserves non-managed custom hooks and ensures compatibility with existing configurations.
  • Migration: Migrates legacy hook configurations to a shared hooks/ directory, simplifying maintenance and future updates.
  • Use Case: If you're using multiple agent platforms and want to standardize hook configurations across them, this skill can automate the process and keep your hook setup up-to-date.

Quick Start

Run the scaffold-hooks skill with the --project flag to specify your project directory. For example:

npx skills add jpcaparas/skills --skill scaffold-hooks --project /path/to/project

Frequently Asked Questions about scaffold-hooks

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

FAQPage Schema
How do I set up agent hooks across multiple coding platforms like Claude Code and Codex?

To set up agent hooks across Claude Code, Codex, GitHub Copilot, Devin CLI, and OpenCode, you can use a universal scaffolder to generate YAML-based plans and shell scripts. This provides a unified approach to managing project configuration and lifecycle hooks across different environments.

What is the best way to standardize hook configurations for multiple AI coding agents?

Standardizing hook configurations for multiple AI coding agents is best achieved by migrating legacy setups into a shared hooks directory. A universal scaffolding tool applies conservative merging to preserve custom configurations while maintaining a standardized YAML-based plan across your projects.

Can I update existing agent hooks without losing my custom configurations?

Yes, you can update existing agent hooks without losing custom configurations. The scaffolding process automatically detects existing managed states and uses conservative merging to preserve non-managed custom hooks, ensuring compatibility with your current project configuration.

Does the hook scaffolder support migrating legacy hook configurations to a new directory?

Yes, the hook scaffolder supports migrating legacy hook configurations. It automatically detects existing surfaces and migrates them into a shared hooks directory, simplifying maintenance and ensuring your project configuration remains up-to-date.

What do I need to scaffold hooks for AI coding assistants in my project?

To scaffold hooks for AI coding assistants, you need project context, access to the respective agent platforms, and a designated project directory. The scaffolder uses YAML-based plans and shell scripts to handle the setup and manage the agent lifecycle.

Why should I use a universal scaffolder instead of configuring hooks separately for each agent?

Using a universal scaffolder eliminates the need for multiple dedicated configurations by providing a unified approach to hook setup. It handles platform-specific agent lifecycle hooks automatically, reducing the complexity of maintaining different environments.