| name | component-work |
| description | Create or update Dialtone Vue components and keep package/docs artifacts synchronized. Use when the user asks for component creation, component API changes, stories, docs, or related tests. |
Dialtone Component Work
Goal
Modify Vue components while keeping tests, stories, docs, exports, and downstream data intentionally in sync.
Trigger
- Creating or updating files under
packages/dialtone-vue/components/**.
- Component prop, event, slot, style, story, or docs changes.
Required Context
- Existing component source, constants, tests, stories, MDX, VuePress docs, and exports.
common/components_list.js for component registration.
.agents/resources/rule-map.md
.agents/resources/validation.md
.agents/resources/doc-sync.md
Constraints
- New components use Composition API with
<script setup lang="ts">.
- Existing Options API components stay Options API unless the user explicitly asks to convert them.
- Prop value arrays come from constants.
- Use
validator, never validate.
- Prefer
data-qa selectors in tests.
- Use Dialtone tokens and utility classes; do not hardcode raw color, spacing, or typography values.
- Keep changes scoped to the requested component or API.
Workflow
- Read the existing component surface before editing.
- Check for overlap or naming collisions before new components.
- Load matched rules from
rule-map.md.
- Update the smallest necessary set of artifacts: source, constants, tests, stories/MDX, VuePress docs, exports, docs JSON, MCP/query docs.
- Run focused tests first, then broader builds when API or downstream data changed.
- Include manual accessibility/keyboard QA notes for interactive components.
Done When
- Changed component behavior has tests or an explicit test-gap reason.
- Documentation and downstream data impact is checked.
- Relevant validation commands are run or explicitly skipped.
- New or changed public API is reflected in stories/docs where needed.
Verification
- Focused component tests.
- Commands from
.agents/resources/validation.md.
doc-sync-check when source changes affect AI docs.
References
.agents/resources/rule-map.md
.agents/resources/validation.md
.agents/resources/doc-sync.md
.agents/resources/package-map.md