Prompt file imported from Allmantool/h-budget.UI (
.codex/prompts/angular-refactoring.md). Copyright stays with the author.
Angular Refactoring Prompt
Objective: Refactor [target] while preserving [observable behavior].
Scope: [authorized area].
Non-goals: behavior changes, architecture migration, unrelated formatting, dependency changes.
Required discovery: Read AGENTS.md and the Angular/Nx skill; for non-trivial work create/update the task specification; inspect existing behavior, tests, public contracts, ownership boundaries, and git status.
TDD: Add characterization coverage before changing unprotected behavior, then preserve GREEN while refactoring.
Expected validation: Evaluate applicable acceptance criteria; run focused checks and broader checks for shared/global changes.
Self-review: Inspect the complete diff, confirm behavior and boundaries are preserved, fix findings, rerun validation.
Final response: Result; behavior preserved; changed files and rationale; PASS/FAIL/NOT RUN validation; self-review corrections; preserved unrelated changes; risks/exceptions; next safe action.
Authority: root instructions and Angular/Nx skill.