Comprehensive toolkit for validating software architecture, SOLID principles, design patterns, and clean code practices
All 8 tools have descriptions (194-char baseline met) and basic input schemas with filePaths arrays. However, critical gaps undermine quality: (1) All tools accept only filePaths with no parameter descriptions, violates pattern:tool-description requiring every param to have a description. (2) No output schemas documented, LLMs cannot plan downstream calls or extract structured data. (3) Tool names lack verb clarity: 'validate_solid', 'review_architecture', 'analyze_*' are acceptable, but 'get_refactoring_guide' and 'comprehensive_analysis' are vague about what they return. (4) No error handling guidance, tools fail silently with no recovery hints. (5) No pagination, limits, or result-shaping despite analyzing potentially large codebases. (6) Descriptions are generic and lack WHEN/WHY context for LLM selection. Average per-tool score: 42/100.
Analyzes code for Clean Code principles. Checks naming conventions (N1-N7), function quality (F1-F4), comment quality (C1-C5), and code smells (G1-G36, E1-E7). Detects issues like magic numbers, long methods, code duplication, and error handling problems.
Analyzes package structure for cohesion and coupling. Validates cohesion principles (REP - Reuse/Release Equivalence, CCP - Common Closure, CRP - Common Reuse) and coupling principles (ADP - Acyclic Dependencies, SDP - Stable Dependencies, SAP - Stable Abstractions). Calculates stability metrics and identifies packages in Zone of Pain or Zone of Uselessness.
Analyzes test quality and best practices. Detects T1-T9 test smells (insufficient tests, ignored tests, long tests, slow tests, fragile tests). Validates F.I.R.S.T principles (Fast, Independent, Repeatable, Self-validating, Timely). Checks test independence and shared state issues.
Runs all 7 agents for complete code analysis. Includes SOLID validation, architecture review, clean code analysis, pattern recommendations, testing strategy, package design, and refactoring guidance. Provides overall compliance score and prioritized recommendations across all dimensions.
Provides step-by-step refactoring plans. Identifies opportunities for Extract Method, Extract Class, Introduce Parameter Object, Replace Magic Numbers. Guides pattern transformations (Strategy, Factory Method, Null Object). Provides detailed steps, code examples (before/after), benefits/risks, and effort estimates.
No output schemas documented. LLMs cannot infer what fields to expect (e.g., violations array, complianceScore, summary). Prevents downstream tool chaining and forces LLMs to parse unstructured responses.
Parameter 'filePaths' lacks description. LLMs cannot determine if it accepts absolute paths, relative paths, glob patterns, or directories. Violates pattern:tool-description requiring every parameter to have a description.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 43 | 2026-07-28+ | v2 |
Reviews code for Clean Architecture compliance. Validates dependency rule (dependencies point inward), layer separation, and boundary analysis. Detects framework coupling, data leaks across boundaries, and architectural violations.
Recommends appropriate Gang of Four design patterns. Analyzes code for opportunities to apply Creational (Factory Method, Builder, Singleton), Structural (Decorator, Adapter, Facade), and Behavioral (Strategy, Observer, Command, Template Method) patterns. Provides reasoning, confidence scores, and code examples.
Validates code against all five SOLID principles (SRP, OCP, LSP, ISP, DIP). Detects violations like god classes, mixed concerns, switch statements on types, contract violations, fat interfaces, and dependency inversions.
No error handling guidance. Handlers return raw analysis objects with no recovery hints. If analysis fails (file not found, parse error, timeout), LLMs receive no actionable next steps.
Tool names 'get_refactoring_guide' and 'comprehensive_analysis' are vague. 'get_refactoring_guide' suggests retrieval, not generation. 'comprehensive_analysis' does not clarify what it analyzes or returns. Violates pattern:tool naming requiring action verbs that reflect intent.
No pagination, limits, or result-shaping. Analyzing large codebases could return thousands of violations/recommendations, exhausting context window. Violates pattern:paginated-result and mxe:enforce-result-limits.