caliber-pre-commit · diff
git:20260319.243527c to git:20260329.8cf93fd
8 added, 3 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
- description: Run caliber refresh before git commits to keep docs in sync
+ description: Run Caliber sync before git commits to keep agent configs up to date
alwaysApply: true
---
- Before creating git commits, run `caliber refresh` to update docs based on code changes,
- then stage modified doc files (CLAUDE.md .claude/ .cursor/ .github/copilot-instructions.md AGENTS.md CALIBER_LEARNINGS.md).
+ Before every git commit, check if the Caliber pre-commit hook is installed:
+ Run: `grep -q "caliber" .git/hooks/pre-commit 2>/dev/null && echo "hook-active" || echo "no-hook"`
+
+ If hook-active: just commit normally — Caliber syncs automatically via the hook. Tell the user: "Caliber will sync your agent configs automatically."
+ If no-hook: run `caliber refresh && git add CLAUDE.md .claude/ .cursor/ .cursorrules .github/copilot-instructions.md .github/instructions/ AGENTS.md CALIBER_LEARNINGS.md 2>/dev/null` before committing, and tell the user what was updated.
+
+ If `caliber` is not found, read the setup-caliber skill from .cursor/skills/setup-caliber/SKILL.md and follow its instructions to install Caliber.