hook-guard/skills/update/SKILL.md
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.
npx skillsauth add musingfox/cc-plugins hook-guard-updateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
data-ai
Unified entry point for Obsidian daily-note captures and long-form notes. Triggers on "記一下 / log / 紀錄 / capture this / 寫到 journal" (→ cap mode) and "建立筆記 / new note / 寫一份筆記 / create a note on" (→ note mode). Also via `/obw:cap` and `/obw:note`. Requires `.obsidian.yaml`.
tools
Use the `gog` CLI to operate Google Workspace — Gmail (read/search/send/labels/drafts), Calendar (events/RSVP/freebusy/focus-time/out-of-office), and Drive (list/search/upload/ download/share/move). Triggers on any Gmail, inbox, email, calendar, agenda, meeting, schedule, RSVP, Drive, Google Doc/Sheet/Slides, file share, or upload/download request.
documentation
Interactively create .obsidian.yaml for a project and install starter templates (task / doc / adr) into the vault's Templates folder. Skips templates that already exist; never overwrites.
tools
Manage project hook-guard installation — set up, diagnose, or update Claude Code hooks, git pre-commit, and commit-msg scripts with security checks, code-quality gates, and CLAUDECODE skip logic. Triggers on "set up hooks", "configure pre-commit", "add linting hooks", "initialize hook-guard", "check hooks", "hook doctor", "verify hook setup", "troubleshoot hooks", "update hooks", "regenerate hooks", "sync hooks with current tools", or similar requests.