Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat: add commit capture hook reference to context-manager
Jez811eb4d48d30
diff --git a/skills/context-manager/SKILL.md b/skills/context-manager/SKILL.mdindex ad1fcdfe..82b670be 100644--- a/skills/context-manager/SKILL.md+++ b/skills/context-manager/SKILL.md@@ -54,6 +54,7 @@ Auto-memory (`~/.claude/projects/*/memory/MEMORY.md`) is also scanned for awaren3. Generate changes autonomously — create, update, or flag files as needed4. Present all changes as a single batch for approval5. Apply approved changes+6. Check if the commit capture hook is installed — if not, offer to set it up (see [references/commit-hook.md](references/commit-hook.md))For large repos, delegate to a sub-agent:```@@ -182,6 +183,7 @@ See [references/quality-criteria.md](references/quality-criteria.md) for the ful| Scoring CLAUDE.md quality | [references/quality-criteria.md](references/quality-criteria.md) || Detecting project type and expected docs | [references/project-types.md](references/project-types.md) || Creating new CLAUDE.md or rules files | [references/templates.md](references/templates.md) |+| Setting up automatic capture on commit | [references/commit-hook.md](references/commit-hook.md) |## Scriptsdiff --git a/skills/context-manager/references/commit-hook.md b/skills/context-manager/references/commit-hook.mdnew file mode 100644index 00000000..25aa8216--- /dev/null+++ b/skills/context-manager/references/commit-hook.md@@ -0,0 +1,43 @@+# Recommended Hook: Context Capture on Commit++Automatically remind Claude to capture learnings after every git commit. This pairs with Mode 1 (Session Capture) — the hook triggers the prompt, the skill handles the capture.++## Setup++Create this file at `~/.claude/hookify.context-capture-reminder.local.md` for global coverage, or `project/.claude/hookify.context-capture-reminder.local.md` for a single project:++```markdown+---+name: context-capture-reminder+enabled: true+event: bash+pattern: git\s+commit+action: warn+---++Context check: Were any patterns, gotchas, or commands discovered during this work that should be captured to CLAUDE.md or .claude/rules/? If yes, update them now before moving on. If nothing new was learned, carry on.+```++## How It Works++1. You finish work and commit+2. The hook fires after the `git commit` Bash call+3. Claude pauses to consider whether anything learned during this work should be persisted+4. If yes, Claude updates CLAUDE.md or creates/updates a `.claude/rules/` file+5. If nothing new, Claude continues++## Why Commit Time?++- Context is fresh — you just finished the work+- You're creating a permanent record anyway+- Natural checkpoint before moving to the next task+- Pairs with `git log` for tracing when a pattern was discovered++## Requires++This hook uses the [hookify](https://github.com/jezweb/claude-skills) plugin for Claude Code. If you don't have hookify, you can add the same reminder as a line in your CLAUDE.md:++```markdown+## Workflow+- Before committing: check if any discoveries should be captured to CLAUDE.md or .claude/rules/+```