Add Go guardrail validation for hex architecture projects#8
Open
dpeterka wants to merge 2 commits intopiercelamb:mainfrom
Open
Add Go guardrail validation for hex architecture projects#8dpeterka wants to merge 2 commits intopiercelamb:mainfrom
dpeterka wants to merge 2 commits intopiercelamb:mainfrom
Conversation
Ports file size, function length, hex layer import, and prohibited pattern checks from devx-design-crew. Wired into SKILL.md as Step 4.5 (post-implementation, pre-staging) with prompt-level guidance doc. - validate_go_guardrails.py: 7 validation checks, CLI --override escape hatch - 34 unit tests (all passing) - go-guardrails.md: prompt reference for Claude during implementation - code-reviewer: hex architecture awareness (Rule 6)
…ewer enhancements Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
validate_go_guardrails.py— validates Go files against hex architecture constraints (file sizes by layer, function lengths, import direction, prohibited patterns)go-guardrails.mdprompt reference so Claude generates compliant code upfrontTest plan
uv run pytest tests/checks/test_validate_go_guardrails.py -v— 34/34 pass/deep-implementon a Go section and verify guardrail step executes