AGENT SKILL

trove-component-spec

Generate component specifications from design requirements. Produces structured specs with props, states, interactions, and accessibility requirements.

License 许可
MIT
所属仓库
bravew/trove
最近更新
2026-11-12
Stars
★ 10
Forks
1

01 前言 Front Matter

name
trove-component-spec
metadata
{ "trove-category": "design", "trove-category-label": "Design" }
description
Generate component specifications from design requirements. Produces structured specs with props, states, interactions, and accessibility requirements.
when_to_use
component spec; design spec; component requirements

03 SKILL.md 正文

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run build:skills -->

Session Init

This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.

Component Specification Generator

Spec Template

When creating a component spec, include:

# Component: [Name]

## Purpose
What this component does and when to use it.

## Props / API
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| variant | 'primary' \| 'secondary' | 'primary' | Visual variant |

## States
- Default
- Hover
- Focus
- Active
- Disabled
- Loading
- Error

## Responsive Behavior
- Mobile: [description]
- Tablet: [description]
- Desktop: [description]

## Accessibility
- Role: [ARIA role]
- Keyboard: [interactions]
- Screen reader: [announcements]

## Design Tokens
- Colors: [token names]
- Spacing: [token names]
- Typography: [token names]

04 同仓库更多 Skills