feat: add SLAP, Occam's Razor, Code Smells anchors (#440, #439, #435)#444
Conversation
…ding#440) Proposed by @eirikbell in LLM-Coding#440. Clean-code function-design rule: all statements in a function operate at one abstraction level. Formalises Kent Beck's Composed Method pattern; codified as a function-design rule in Robert C. Martin's Clean Code. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Proposed by @danielschmeiss in LLM-Coding#439. Epistemic parsimony principle: among competing hypotheses, prefer the one with fewest assumptions. Distinct from KISS — Occam applies to explanations (debugging, diagnosis, architecture rationale), KISS to solutions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Proposed by @ma7tz in LLM-Coding#435. Surface indications in code that point to deeper design problems; Fowler's *Refactoring* (1999) catalogue as primary source, Kent Beck coined the term, Robert C. Martin's *Clean Code* Appendix A extends the enumeration. Scope broadened from the original "Code Smells according to Martin" framing to give Beck/Fowler canonical attribution. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ells Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
WalkthroughDrei neue semantische Anker werden hinzugefügt: Code Smells, Occam's Razor und Single Level of Abstraction Principle (SLAP). Für jeden Anker werden AsciiDoc-Dokumentationen in Englisch und Deutsch erstellt. Die unterstützenden JSON-Datendateien, das Changelog und der Katalog werden entsprechend aktualisiert. Änderungen
Geschätzter Code-Review-Aufwand🎯 1 (Trivial) | ⏱️ ~3 Minuten Möglicherweise verwandte PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds three new semantic anchors based on community proposals:
All three passed the four anchor quality criteria (Precise, Rich, Consistent, Attributable).
Closes #440, closes #439, closes #435.
Test plan
npm run extract-metadatalists all three anchors inanchors.json(total 134)npm run buildsucceeds and pre-renders all 9 static routesskill/semantic-anchor-translator/references/catalog.md) updated with all three entries🤖 Generated with Claude Code
Summary by CodeRabbit
Dokumentation