ivanlutsenko/awac-ai-agent-plugins/install-hook
Claude Code and agent skill by ivanlutsenko/awac-ai-agent-plugins
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Install the plugin-cross-port pre-commit hook into any git repository. Use when the user invokes /install-hook.
Install
npx vskill@latest install ivanlutsenko/awac-ai-agent-plugins/install-hookSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ivanlutsenko/awac-ai-agent-plugins/install-hook.
Converted from Claude Code command/install-hook.Review and adapt: hooks and MCP tool IDs may need manual mapping for Codex.Helper scripts ship in this skill's ownscripts/directory. Replace<this skill directory>with the path Codex reported when it loaded this skill —a bare relative path would resolve against the repository under review instead.
Install Hook
Installs the bidirectional plugin-cross-port pre-commit hook into a target git repository.
Arguments
/path/to/target-repo(optional) — defaults to current working directory
Steps
Step 1 — Resolve target repo
Use the argument if provided, otherwise use cwd.
Verify it's a git repo:
If this fails: stop with "Not a git repository: <target>".
Step 2 — Get scripts path
Run to get the absolute path to the converter scripts:
Store the result as SCRIPTS_DIR. This is the path that will be embedded in the generated hook.
Step 3 — Check for existing pre-commit hook
If it exists: show the user the first 5 lines and ask:
".githooks/pre-commitalready exists in target repo. Overwrite?"
If they say no: stop.
Step 4 — Create .githooks dir
Step 5 — Write hook
Write <target>/.githooks/pre-commit using the Write tool. Replace __SCRIPTS_DIR__ with the value from Step 2.
Hook content (substitute __SCRIPTS_DIR__ literally):
Step 6 — Make executable
Step 7 — Configure git hooks path
Check if already set:
If not .githooks: set it:
If already set to something else: warn the user — don't overwrite, they need to merge manually.
Step 8 — Summary
Print:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/plugin-cross-port/skills/generated-from-commands/install-hook/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ivanlutsenko/awac-ai-agent-plugins/install-hook)