Skip to content

Commit ff4b853

Browse files
dguidoclaude
andauthored
Refactor CLAUDE.md: add quality gates, reduce redundancy (#14901)
* Refactor CLAUDE.md: add quality gates, reduce redundancy Analyzed the last 25 PRs to identify patterns where better guidance could have prevented iteration. Key findings: - PRs had lint failures caught after submission - with_items→loop conversions broke list flattening - Missing input validation and explicit file modes - Duplicate DNS documentation in 3 places Changes: - Add Quality Gates section with mandatory pre-submission checks - Add Design Requirements checklist (validate inputs, explicit modes) - Add Ansible Pitfalls section (with_items vs loop, path variables) - Add Self-Review Checklist - Consolidate DNS architecture from 3 sections into 1 - Remove redundant sections (Final Notes, User Profiles, duplicate philosophy) - Condense linting rules into table format Result: 496 → 307 lines (-38%) while adding actionable new guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add Jinja2 native mode guidance (Ansible 12 compatibility) Analysis of PRs 26-50 revealed that 28% (7 PRs) were fixing Ansible 12 compatibility issues caused by jinja2_native mode being always enabled. Added guidance for: - Boolean conditionals requiring actual booleans - No nested templates in lookup() - JSON files needing explicit | from_json parsing - default() not triggering on empty strings (need true param) - Complex Jinja loops breaking in set_fact Also added "Undocumented workarounds" to What to Avoid section based on Scaleway/Vultr upstream module bug patterns. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix Ansible version and add OpenSSL explanation - Update Ansible version from "v9.x" to "v12+" for consistency with Jinja2 native mode guidance - Add one-line explanation to OpenSSL snippet for clarity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Soften language and add troubleshooting cross-reference - Remove "CRITICAL" and "Critical Gotcha" labels - Change "90% of routing issues are DNS" to "Many routing issues" - Add link to docs/troubleshooting.md for comprehensive diagnostics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Clarify 'verify before encoding' philosophy statement Change ambiguous "Verify before encoding" (encoding could mean data encoding) to clearer "Test assumptions - run the code before committing" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 10de344 commit ff4b853

File tree

1 file changed

+280
-400
lines changed

1 file changed

+280
-400
lines changed

0 commit comments

Comments
 (0)