hook-builder

Generate SessionStart hooks that install project dependencies from manifests.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/kangnam7654/ai-config-sync --skill hook-builder-kangnam7654
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-builder
Source: https://github.com/kangnam7654/ai-config-sync/tree/main/claude-code/skills/hook-builder
Command: npx skills add https://github.com/kangnam7654/ai-config-sync --skill hook-builder-kangnam7654

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation and development of startup hooks for Claude Code on the web, ensuring that projects can run tests and linters seamlessly during web sessions.

Core Features & Use Cases

  • SessionStart Hook Creation: Generates a SessionStart hook to install project dependencies.
  • Dependency Management: Analyzes dependency manifests (package.json, pyproject.toml, etc.) to determine installation commands.
  • Use Case: When setting up a new repository in Claude Code on the web, use this Skill to automatically create a hook that runs npm install or pip install -r requirements.txt so that your code linter and test runner are ready to go.

Quick Start

Use the hook-builder skill to create a SessionStart hook that installs npm dependencies for the current project.

Frequently Asked Questions about hook-builder

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

FAQPage Schema
How do I automate dependency installation for Claude Code startup hooks on the web?

Automate dependency installation by generating a SessionStart hook that analyzes manifests like package.json or pyproject.toml to create idempotent installation scripts for Claude Code on the web. This ensures tests and linters are ready immediately when a session starts.

Can I set up a Claude Code hook to run npm install or pip install automatically?

Yes, you can set up a Claude Code hook to run npm install or pip install automatically. The skill analyzes dependency manifests like package.json and pyproject.toml to determine the correct installation commands and generate non-interactive scripts.

Does the startup hook builder support conditional execution based on the environment?

The startup hook builder supports conditional execution based on remote environment detection. It also supports environment variable persistence, ensuring generated installation scripts run correctly and idempotently across different web session contexts.

How to generate idempotent installation scripts for web development sessions?

Generate idempotent installation scripts for web development sessions by analyzing dependency manifests to create non-interactive startup hooks. This approach prevents duplicate installations and ensures the environment is consistently prepared for tests and linters without manual intervention.

What is a SessionStart hook in Claude Code and when do I need it?

A SessionStart hook in Claude Code is an automation script that runs when a web session begins to install project dependencies. You need it when setting up a new repository to ensure your code linter and test runner are ready to execute without manual setup.