Markdown

Overview

Implementation plan for refactor: <title>

Specification: [SPEC.md](./SPEC.md)

Affected Components

  • <component>

Implementation Phases

Phase 1: Preparation

**Agent:** `backend-dev` or `frontend-dev` (based on component) **Standards:** <!-- backend: `typescript-standards`, `backend-standards`, `unit-testing` | frontend: `typescript-standards`, `frontend-standards`, `unit-testing` -->

Tasks:

  • [ ] Ensure comprehensive test coverage exists per unit-testing standards
  • [ ] Document current behavior and architecture (CMDO layers or MVVM layers)
  • [ ] Identify all affected areas within the component

Deliverables:

  • Test coverage report
  • Affected area documentation

Phase 2: Implementation

**Agent:** `backend-dev` or `frontend-dev` (based on component) **Standards:** <!-- backend: `typescript-standards`, `backend-standards`, `database-standards`, `unit-testing` | frontend: `typescript-standards`, `frontend-standards`, `unit-testing` -->

Tasks:

  • [ ] Implement refactoring changes following component architecture standards
  • [ ] Update any affected API contracts per contract-standards (if needed)
  • [ ] Maintain backward compatibility (if required)
  • [ ] Verify all existing tests still pass after each change

Deliverables:

  • Refactored code following component standards
  • All existing tests passing

Phase 3: Integration Testing

**Agent:** `tester` **Standards:** `testing-standards`, `integration-testing`, `e2e-testing`

Tasks:

  • [ ] Run existing test suite
  • [ ] Verify no behavior changes
  • [ ] Performance testing (if applicable)

Deliverables:

  • All tests passing
  • No behavior changes verified

Phase 4: Review

**Agent:** `reviewer` **Standards:** `typescript-standards`, `backend-standards`, `frontend-standards`, `unit-testing`

Tasks:

  • [ ] Code review focusing on refactoring goals and standards compliance
  • [ ] Verify no regressions
  • [ ] Standards compliance verification

Implementation State

Current Phase

  • **Phase:** [Not started | 1 | 2 | 3 | 4 | Complete]
  • **Status:** [pending | in_progress | blocked | complete]
  • **Last Updated:** YYYY-MM-DD HH:MM

Resource Usage

| Phase | Tokens (Input) | Tokens (Output) | Turns | Duration | |-------|----------------|-----------------|-------|----------| | 1 | - | - | - | | | 2 | - | - | - | | | 3 | - | - | - | | | 4 | - | - | - | | | **Total** | **-** | **-** | **-** | **-** |

Notes

  • All tests must pass before and after refactoring
  • No functional changes should be introduced