Repository navigation
chore(git-hooks): run the guardrails git hooks from the claude-code-plugins lefthook remote - #148
Conversation
… jobs Commit the guardrails plugin's three git-hook entries (commit-msg-convention, pre-commit-content, reference-verify) as shared lefthook jobs so every clone gets them from `lefthook install`, and record the subject_pattern they enforce in .claude/source-control.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed No code-review findings on PR #148 (
|
|
claude-security-review reviewed Security review skipped under skip-gate item 1: PR #148 is already MERGED, so it is not open. I posted nothing. The skip gate says to stop early here, so I did not do a deep review. The diff is small, and I read it:
No plugin manifests or instruction-surface files changed. No critical-findings: 0 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 19986dfd02
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…lugins lefthook remote Replace the vendored hook copies under .githooks/guardrails/ with one lefthook remotes: entry that fetches plugins/guardrails/git-hooks/lefthook-remote.yml from melodic-software/claude-code-plugins (ref main, refetched every 24h). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No related issue: rolls out the guardrails lefthook remote (claude-code-plugins#9504)
Summary
Runs the guardrails plugin's three git hooks in this repository from one lefthook
remotes:entry, so every clone gets the same hooks fromlefthook installand they update fromclaude-code-pluginsmain every 24 hours, with no vendored copies:commit-msg-convention(commit-msg): the subject against the synced commit convention (docs/conventions/source-control/commit-convention.yml).pre-commit-content(pre-commit): secrets and machine-specific paths on added lines.reference-verify(pre-push): CLI flags,/plugin:skillreferences and deleted paths on pushed lines.No plugin component changes, so the plugin documentation preflight in
AGENTS.mddoes not apply; this is repository tooling only.Fix
lefthook.yml(new; the repository had none): oneremotes:entry,git_url: https://github.com/melodic-software/claude-code-plugins,ref: main,refetch_frequency: 24h,configs: [plugins/guardrails/git-hooks/lefthook-remote.yml], frominstall.mjs plan --scope remote.main: the earlier vendored.githooks/guardrails/copies, their lefthook jobs, the README layout lines and the.claude/source-control.mdsubject_patternare gone (the synced commit convention supplies the pattern).no-ci-rerundecision: no CI workflow here runsjq/reference-verify, so a commit pushed without the hook is not re-checked in CI.Verification
install.mjs verify --repo <worktree>afterlefthook install(rc 0):A second
plan --scope remotereturns nolefthook-configormigratedecision. This PR's commit ran the remotecommit-msgandpre-commithooks and the push ranguardrails-remote-reference-verify.Observation runs against this repository's history in report-only mode, before blocking (the remote serves the same hook scripts, so this evidence holds):
reference-verifyorigin/main~137..origin/main(whole history, 138 commits), 35 changed.md/.sh/.ps1files, 3 spre-commit-contentvalidate-marketplace.test.mjs:773feedsC:\Users\alice\pluginto the validator as test input it must reject. Current content is clean; a future edit of that line would block. Repo-side exemption list tracked as item 5 of claude-code-plugins#9426commit-msg-conventionInitial commitRelated
🤖 Generated with Claude Code