Create Hook
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
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
additionalContextorsuppressOutputoutput, 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 -yInstalls 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)
- Analyze environment - Detect tooling and existing hooks
- Suggest hooks - Based on your project configuration
- Configure hook - Ask targeted questions and create the script
- 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:
testscript → "Run tests before commits"buildscript → "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- Create Command1.2K
- Setup Codemap Cli1.2K
- Create Pr1.2K
- Actualize1.2K
- Git Worktrees1.2K
- Decay1.2K
- Attach Review To Pr1.2K
- Setup Arxiv Mcp1.2K
- Propose Hypotheses1.2K
- Git Notes1.2K
- Load Issues1.2K
- Query1.2K
- Create Workflow Command1.2K
- Status1.2K
- Reset1.2K
- Setup Context7 Mcp1.2K
- Prompt Engineering1.5K
- Context Engineering1.5K
- Thought Based Reasoning1.5K
- Reflect1.5K
- Write Concisely1.4K
- Kaizen1.4K
- Multi Agent Patterns1.4K
- Judge With Debate1.4K
Similar to Create Hook
More Skill & Plugin BuildinghooksSkillparcadei/continuous-claude-v3510 installsShell-to-TypeScript hook pattern with templates, six lifecycle events, and settings registration for Claude Code.
hook-developmentSkillanthropics/claude-plugins-official8.3K installsGuide for writing Claude Code plugin hooks, covering prompt-based and command hook types across lifecycle events.
sc-hooksPluginkylesnowschwartz/SimpleClaude116 starsSimpleClaude hooks for auto-formatting, lint checks, and tool monitoring
setup-codemap-cliSkillneolabhq/context-engineering-kit1.2K installsGuided setup for the Codemap CLI that installs it, wires it into CLAUDE.md, and adds session hooks.
claude-automation-recommenderSkillanthropics/claude-plugins-official12.2K installsAnalyzes a codebase and recommends Claude Code hooks, subagents, skills, plugins, and MCP servers without modifying files.
claude-code-bash-patternsSkillsecondsky/claude-skills416 installsBash command patterns, PreToolUse hooks, and git workflows for Claude Code, with security guardrails and CLI integration.