From hook-guard
This skill should be used when the user asks to "update hooks", "refresh hook configuration", "sync hooks with current tools", "upgrade hooks", "hook-guard update", "regenerate hooks", "update pre-commit", "update Claude Code hooks", or wants to update their existing hook-guard setup after adding new tools, changing languages, or wanting the latest check implementations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hook-guard:updateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Update existing hook-guard installation by re-detecting the environment and applying changes.
Update existing hook-guard installation by re-detecting the environment and applying changes.
Check that hook-guard is already set up:
.githooks/pre-commit exists.claude/settings.local.json has hook-guard hooksIf not found, suggest running setup instead.
Run the same detection as setup. Read these reference files from the setup skill:
skills/setup/references/detection.md — detection matrixskills/setup/references/settings.md — settings schema and defaultsDetect: languages, toolchain, VCS, project structure.
Compare current detection results with what's currently installed:
Read existing hooks and extract current configuration:
.githooks/pre-commit for enabled checks and tool commands.claude/settings.local.json for CC hook commands.claude/hook-guard.local.md for user overrides (read skills/setup/references/settings.md for schema)Identify changes:
Show a diff-style summary:
Hook Guard Update
═══════════════════════════════════════
Changes detected:
+ ruff detected (new) → update lint/format commands
- flake8 no longer configured → remove from hooks
~ pytest → pytest with coverage flag (pyproject.toml changed)
Files to update:
.githooks/pre-commit (lint/format commands)
.claude/settings.local.json (PostToolUse command)
No changes needed:
.githooks/commit-msg
Security checks
File integrity checks
═══════════════════════════════════════
After user confirms, apply changes surgically — do not rewrite unchanged parts.
Read canonical implementations from the setup skill references:
skills/setup/references/pre-commit-checks.md — check function implementationsskills/setup/references/cc-hooks.md — Claude Code hooks patternsFor .githooks/pre-commit:
pre-commit-checks.mdFor .claude/settings.local.json:
Preserve user customizations from .claude/hook-guard.local.md throughout.
npx claudepluginhub musingfox/cc-plugins --plugin hook-guardManages Claude Code repository hooks for adding, configuring, troubleshooting, enabling/disabling, and enforcing rules. Delegates to docs-management for official documentation.
Automates Git hooks setup with Husky, lint-staged, and commitlint to enforce code quality before commits and pushes.
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.