DOC-6740 Claude Code post-tool hook to check shortcodes#3477
Merged
andy-stark-redis merged 4 commits intoJun 10, 2026
Merged
Conversation
Contributor
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
dwdougherty
approved these changes
Jun 10, 2026
dwdougherty
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to me. Is there some place where you can summarize how to run these Claude commands?
Contributor
Author
Yeah, wiki might be a good place or the repo README? BTW, this isn't the main task for this PR, it's just a bonus feature :-) |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7788ea9. Configure here.
EliShteinman
added a commit
to EliShteinman/docs
that referenced
this pull request
Jun 11, 2026
Adds Claude Code dev tooling: a /bugbot command and a PostToolUse hook that checks Hugo shortcode paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Low Risk
Changes only affect local Claude Code tooling and docs authoring workflows, not site builds or production runtime.
Overview
Adds Claude Code automation for the Hugo docs repo: a PostToolUse hook runs after
Edit/Write/MultiEditon markdown and validates that hard shortcode targets (image,embed-md,embed-code, etc.) point at real files understatic/,content/embeds/, and related paths. Broken hard refs exit with code 2 so the agent sees the error; optional--scanmode bulk-checks content.relrefchecks stay off by default (CHECK_SHORTCODE_RELREF=1for soft warnings only)..claude/settings.jsonwires the hook and allowsghfor PR/issue comment APIs (withghoutside the sandbox). A newdocs/bugbotcommand documents how to fetch Cursor Bugbot comments on the current branch’s PR, triage them, and fix valid doc issues before committing.Reviewed by Cursor Bugbot for commit 7788ea9. Bugbot is set up for automated code reviews on this repo. Configure here.