# vue-story
> Create and maintain Histoire stories for Vue 3 components. Use when working with .story.vue files, creating visual contracts, or when user mentions Histoire stories or visual testing.
- Author: Lanzhijiang
- Repository: xiaoland/agents
- Version: 20260127162308
- Stars: 0
- Forks: 0
- Last Updated: 2026-02-06
- Source: https://github.com/xiaoland/agents
- Web: https://mule.run/skillshub/@@xiaoland/agents~vue-story:20260127162308
---
---
name: vue-story
description: Create and maintain Histoire stories for Vue 3 components. Use when working with .story.vue files, creating visual contracts, or when user mentions Histoire stories or visual testing.
metadata:
prerequisites: "Histoire, Vue 3, TypeScript"
related: "vue-component-development"
---
# Vue Story Development
Create and maintain Histoire stories for Vue 3 components, focusing on visual and behavioral contracts rather than parameter demonstrations.
## Prerequisites
- Histoire for visual stories
- Vue 3 with `
```
## Best Practices
**Story Creation:**
- Focus on semantic states, not prop variations
- Use clear, descriptive titles
- Group related stories with the `group` attribute
- Keep stories simple and self-explanatory
**Layout:**
- Use appropriate Histoire layout options
- Consider container constraints for edge cases
- Test dark mode/theme variations when relevant
**Quality:**
- Stories represent meaningful states
- No exhaustive prop combinations
- All critical states are covered
- Stories are stable over time
## Minimal Checklist
Before committing a `*.story.vue`:
- [ ] At least one **canonical** variant exists
- [ ] At least one **state** or **edge** variant exists
- [ ] No exhaustive prop combinations are present
- [ ] All Story titles communicate semantic intent
- [ ] Stories are readable without needing explanation
## Success Criteria
A well-implemented story file has:
- ✅ Clear category grouping (canonical, state, edge)
- ✅ Semantic, descriptive titles
- ✅ Coverage of critical states and boundaries
- ✅ No exhaustive prop matrices
- ✅ Stories that are self-explanatory
- ✅ Focused on long-term semantic contracts
- ❌ No redundant similar stories
- ❌ No stories that just demonstrate parameters
- ❌ No stories requiring extensive explanation
## Related Skills
- [vue-component-development](../vue-component-development/SKILL.md) - Main Vue component development skill
## References
- [Story Guide](references/comp-story.md) - Comprehensive guide to creating stories
- [Histoire Documentation](https://histoire.dev/)