Component Spec — Testing skill for Claude Code
Define component API, states, variants, and ARIA requirements before writing any implementation code.
How to install Component Spec
Installs to ~/.claude/commands/andrem-sec-psc-comet-component-spec.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/andrem-sec/psc-comet/HEAD/.claude/commands/component-spec.md -o ~/.claude/commands/andrem-sec-psc-comet-component-spec.md Restart Claude Code, or start a new session, for it to be picked up.
What Component Spec does
name: component-spec description: Define component API, states, variants, and ARIA requirements before writing any implementation code
Invoke the component-spec skill now. For the target component: identify its category (input, display, navigation, feedback, layout, overlay). Define all props with types and defaults. Enumerate every visual state (default, hover, focus, active, disabled, loading, error, empty). List named variants as prop values. Specify ARIA role, required attributes, a
Alternatives in Testing
- Claude Code Spec Workflow — Automated Kiro-style Spec workflow for Claude Code 3.6k ★
- Cc Sdd — Spec-driven development (SDD) for your team's workflow 3.1k ★
- Regen API — Regenerate the OpenAPI spec and web API client after server API changes 2.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Cfn Arch
SPARC Architecture phase. Define component boundaries, interface contracts, integration points, DRY reuse BEFO
Spec
Define what to build — explores codebase and recalls LTM before writing acceptance criteria.
Se Test UI
Design UI tests that verify RENDERED INTENT (the mockup), not DOM presence. Use before writing or reviewing an
Cfn Pseudo
SPARC Pseudocode phase. Trace logic, enumerate branches, find failure paths, verify branch coverage BEFORE wri
Review Spec Readiness
Grade a Kiro spec (requirements, design, tasks) against the spec quality standards before implementation begin
Meta Agent
Meta-Agent:小团队的 Agent 进化神器。AI 帮你定义理想态、生成测试用例、制定评分规则,然后自动迭代优化提示词——你定标准,AI 自己进化。Meta-Agent: The Agent evolution
Related Agents
Component Architect
Use this agent to design a new compound component before implementation. It analyzes requirements, selects the
Violets
Behavioral spec agent. Produces DESIGN.md — a detailed API contract, schema definition, or component hierarchy
Shep Storybook Story Creator
Creates ONE Storybook story file colocated with a web UI component under src/presentation/web/components/, cov