Skip to content

Interactive workflow that detects project tooling and creates tested git hooks for Claude Code.

CCM score
40 of 100
skills.sh installs
1.2K
GitHub stars
1.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a four-step flow: analyze environment, suggest hooks, configure through targeted questions, then test and validate
  • Suggests hooks from detected tooling such as TypeScript, Prettier, ESLint, package.json test and build scripts, and git secret scanning
  • Enforces stdin JSON input and top-level additionalContext or suppressOutput output, with absolute paths via $CLAUDE_PROJECT_DIR
  • Designed for developers who want Claude Code hooks for type checking, formatting, linting, or security scans without writing the JSON plumbing by hand

Install

$ npx -y skills add neolabhq/context-engineering-kit --skill create-hook -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Create Hook Command

Analyze the project, suggest practical hooks, and create them with proper testing.

Your Task (/create-hook)

  1. Analyze environment - Detect tooling and existing hooks
  2. Suggest hooks - Based on your project configuration
  3. Configure hook - Ask targeted questions and create the script
  4. Test & validate - Ensure the hook works correctly

Your Workflow

1. Environment Analysis & Suggestions

Automatically detect the project tooling and suggest relevant hooks:

When TypeScript is detected (tsconfig.json):

  • PostToolUse hook: "Type-check files after editing"
  • PreToolUse hook: "Block edits with type errors"

When Prettier is detected (.prettierrc, prettier.config.js):

  • PostToolUse hook: "Auto-format files after editing"
  • PreToolUse hook: "Require formatted code"

When ESLint is detected (.eslintrc.*):

  • PostToolUse hook: "Lint and auto-fix after editing"
  • PreToolUse hook: "Block commits with linting errors"

When package.json has scripts:

  • test script → "Run tests before commits"
  • build script → "Validate build before commits"

When a git repository is detected:

Details

Repository
github.com/neolabhq/context-engineering-kit
Categories
Skill & Plugin Building, Git & Releases
First seen
Jun 3, 2026

Questions

What does the create-hook skill do?

The create-hook skill analyzes your project, suggests practical git hooks, and creates them with proper testing. It detects tooling such as TypeScript, Prettier, ESLint and package.json scripts, then offers hooks that match your setup.

How do I install the create-hook skill?

Run npx -y skills add neolabhq/context-engineering-kit --skill create-hook -y in a project to install it. After that, create-hook lets the agent analyze the environment and configure Claude Code hooks for that project.

Where does create-hook fit in the Skill & Plugin Building category?

create-hook sits in the Skill & Plugin Building category on Claude Marketplaces, next to find-skills, writing-for-agents, lark-skill-maker, skill-creator and discover-azure-skills. It differs from those by focusing on creating and configuring git hooks with automated testing.

More from neolabhq/context-engineering-kit

All 62

Similar to Create Hook

More Skill & Plugin Building