Browser & automation
review-fix-violations
Use when architecture violations were found and need automated fixing by priority.
herbert-julio-azion · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add HerbertJulio/specialist-agent --skill review-fix-violationsAbout this skill
name: review-fix-violations description: "Use when architecture violations were found and need automated fixing by priority." user-invocable: true argument-hint: "[module]" allowed-tools: Read, Write, Edit, Bash, Glob, Grep
Identify and fix docs/ARCHITECTURE.md violations in the specified module.
Module: $ARGUMENTS
Steps
-
Run
/review-check-architectureto find violations. -
For each violation found, fix in priority order:
Critical (fix first):
- try/catch in services -> remove, move error handling to component/interceptor
- Transformation in services -> move to adapter
- innerHTML without sanitization -> remove or use DomSanitizer
- Hardcoded secrets -> move to environment files
Important:
- NgModule -> migrate to standalone (
/migration-migrate-component) - @Input/@Output decorators -> input()/output() signals
- Constructor DI -> inject()
- BehaviorSubject in stores -> signals
- any types -> type correctly
- Missing OnPush -> add ChangeDetectionStrategy.OnPush
Improvements:
- Components > 200 lines -> decompose
- Console.log -> remove
- TODO/FIXME -> resolve or create issue
-
Validate after each fix:
npx tsc --noEmit && ng build && ng test --watch=false
- Report what was fixed and what remains.