nw-ab-critique-dimensi…
Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation
Comprehensive architecture patterns, methodologies, quality frameworks, and evaluation methods for solution architects. Load when designing system architecture or selecting patterns.
$ npx -y skills add nWave-ai/nWave --skill nw-architecture-patterns --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/nw-architecture-patternsContext preview
The summary Claude sees to decide when to auto-load this skill.
Comprehensive architecture patterns, methodologies, quality frameworks, and evaluation methods for solution architects. Load when designing system architecture or selecting patterns.
name: nw-architecture-patterns description: Comprehensive architecture patterns, methodologies, quality frameworks, and evaluation methods for solution architects. Load when designing system architecture or selecting patterns. user-invocable: false disable-model-invocation: true
Four levels for different audiences: 1. **System Context**: system + users + external systems (stakeholder view) 2. **Containers**: applications, data stores, deployment units (technical overview) 3. **Components**: internal modules within containers (developer view) 4. **Code**: class/module level (optional, often auto-generated)
Notation/tooling independent. Reduces communication overhead, shared visual language across stakeholders.
Isolate business logic from infrastructure through ports (interfaces) and adapters (implementations).
Benefits: testability (isolated core) | flexibility (swap infrastructure) | technology independence | maintainability
Testing: unit tests through driving ports, mock driven ports | integration tests with real infrastructure | acceptance tests end-to-end through primary ports
Horizontal layers with defined dependencies. Use for: traditional enterprise apps, clear separation. Trade-off: familiar but potential overhead, layer coupling.
Independent deployable services per capability. Use for: large teams, component scaling, tech diversity. Trade-off: scalability vs operational complexity. 2025 consensus: "start monolith, evolve when needed." Modular monolith = valid middle ground.
Components communicate via events through broker. Use for: real-time, complex processes, loose coupling. Trade-off: scalability/decoupling vs event ordering, debugging.
Separate read/write models; store events not state. Use for: financial, audit, temporal queries. Trade-off: complete history + independent scaling vs eventual consistency + complexity. NOT for: simple CRUD, strong consistency, inexperienced teams.
Language differences between departments | representation differences | consistency requirements define aggregate boundaries. Bounded contexts often map to microservice boundaries and team ownership.
Eight characteristics: 1. **Functional Suitability**: completeness, correctness, appropriateness 2. **Performance Efficiency**: time behavior, resource utilization, capacity 3. **Compatibility**: coexistence, interoperability 4. **Usability**: learnability, operability, accessibility 5. **Reliability**: maturity, availability, fault tolerance, recoverability 6. **Security**: confidentiality, integrity, non-repudiation, accountability, authenticity 7. **Maintainability**: modularity, reusability, analyzability, modifiability, testability 8. **Portability**: adaptability, installability, replaceability
Trade-offs: Security vs Performance | Scalability vs Consistency (CAP) | Flexibility vs Performance | Usability vs Security
Application: identify priority attributes, define measurable requirements, analyze trade-offs, validate with ATAM.
Systematic evaluation from SEI/CMU.
**Phase 1 - Presentation**: business drivers, architecture approaches, design decisions **Phase 2 - Investigation**: quality attribute scenarios, evaluate approaches, identify sensitivity/trade-off points **Phase 3 - Testing**: prioritize scenarios, analyze top in depth, document risks/non-risks
Key concepts: **Sensitivity Point** (impacts one attribute) | **Trade-off Point** (affects multiple attributes) | **Architectural Risk** (may prevent attribute achievement)
CBAM extends ATAM with economic analysis (ROI-driven). Perform early when cost of change is minimal. Lightweight: Mini-ATAM (half-day workshop).
Monitor failures; after threshold fail fast ("open"); periodically test recovery. States: Closed, Open, Half-Open. Prevents cascading failures.
1s, 2s, 4s, 8s + jitter. Only transient errors, not business logic. Operations must be idempotent.
Isolate elements into pools; one failure doesn't affect others. Separate connection/thread pools per feature/tenant.
Rate limiting, concurrency limiting, resource quotas per user/tenant/service.
Distributed transactions as local transaction sequence with compensating rollbacks. Choreography (decentralized) vs Orchestration (centralized).
**REST**: resource-based URLs, HTTP verbs, stateless, standard caching. Best for: public APIs, simple CRUD, caching-critical. **GraphQL**: single endpoint, client-specified queries, typed schema. Best for: mobile (bandwidth), nested data, rapid frontend iteration. **Hybrid**: GraphQL gateway aggregating REST/RPC backends. Security for GraphQL: query depth limiting, complexity analysis, timeout, field-level auth.
**Nygard** (most
AI agents that guide you from idea to working code, with human judgment at every gate. nWave runs inside Claude Code. It breaks feature delivery into seven waves (discover, diverge, discuss, design, devops, distill, deliver).
Repo: nWave-ai/nWave
Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation
Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation
Review dimensions for acceptance test quality - happy path bias, GWT compliance, business language purity, coverage completeness, walking skeleton…
Detailed 5-phase workflow for creating agents - from requirements analysis through validation and iterative refinement
5-layer testing approach for agent validation including adversarial testing, security validation, and prompt injection resistance
Architectural style selection decision matrices, trade-off analysis, structural enforcement rules, and combination patterns. Load when choosing or evaluating…