---
name: "Add refactor work item type"
---

# Story 254: Add refactor work item type

## User Story

As a project owner, I want a refactor work item type so that I can track and assign code restructuring tasks separately from features and bugs.

## Acceptance Criteria

- [ ] create_refactor MCP tool creates a refactor file in work/1_upcoming/ with deterministic filename (e.g. 254_refactor_split_agents_rs.md)
- [ ] Refactor files use the naming convention {id}_refactor_{slug}.md
- [ ] Refactor items flow through the same pipeline as stories and bugs (upcoming → current → qa → merge → done → archived)
- [ ] list_refactors MCP tool lists open refactors in upcoming
- [ ] Frontend displays refactor items distinctly from stories and bugs (different label/color)
- [ ] Watcher recognizes refactor files and auto-commits moves like stories and bugs

## Out of Scope

- TBD
