Review code against the noop architectural patterns and conventions
Reviews code against the noop architectural framework, checking for anti-patterns like silent fallbacks, any types, missing organization scoping, and business logic in handlers. Use this when you need to enforce consistency and catch critical violations before merging code.
/plugin marketplace add HDeibler/noop/plugin install hdeibler-noop@HDeibler/noopfile-or-directoryReview code for compliance with the noop architectural framework. Identifies anti-patterns, suggests improvements, and ensures consistency.
@docs/universal-framework/PHILOSOPHY.md
@docs/universal-framework/CONVENTIONS.md
@docs/universal-framework/CHECKLIST.md
any, proper narrowing)$ARGUMENTS - Optional file or directory to review. Defaults to src/.
If $ARGUMENTS specifies a path, review that. Otherwise:
.ts files in src/FLAG THESE IMMEDIATELY:
// VIOLATION
catch { return defaultValue }
// MUST BE
catch { throw new Error(...) }
// OR
catch (error) { throw createError.xxx(...) }
// VIOLATION
function process(data: any) { }
// MUST BE
function process(data: ProcessInput) { }
// VIOLATION - no organizationId
async getById(id: string) { }
// MUST BE
async getById(id: string, organizationId: string) { }
// VIOLATION - logic in handler
const enriched = data.map(x => transform(x))
// MUST BE - delegate to service
const result = await service.process(data, dbStore)
// VIOLATION
id = response.id || response.data.id || response.modelId
// MUST BE - expect consistent API
id = response.id
// VIOLATION
import { x } from './utils'
// MUST BE
import { x } from './utils.js'
For each handler file:
asyncHandlercreateError factoriessendSuccess / sendPaginatedResponsegetDbStore()For each Ops class:
organizationIdorganizationId missingmapRowToX private methodFor each service:
# Architecture Review Report
## Summary
- Files reviewed: X
- Violations found: Y
- Severity: [PASS | WARNINGS | CRITICAL]
## Critical Issues (MUST FIX)
[List severe violations]
## Warnings (SHOULD FIX)
[List moderate issues]
## Suggestions
[List minor improvements]
## Files Reviewed
- src/handlers/... ✓
- src/db/pg/... ⚠ (2 warnings)
- src/services/... ✗ (1 critical)
For each violation, offer to fix it using the Edit tool.