Skill
Component Testing
Add comprehensive testing to components: interaction tests, visual regression, accessibility audits, and unit tests.
// ui-design;Behaviour
What it does
- Adds Storybook interaction tests for user behaviour
- Configures visual regression testing for appearance
- Runs accessibility audits and WCAG compliance checks
- Creates unit tests for component logic
- Tests backward compatibility for extended components
- Verifies component works in isolation
- Sets up CI integration for component tests
When to use
Good fits
After component-development creates or extends a component
Before integrating components into the application
When verifying backward compatibility
As part of the component development workflow
Development harness
Element verification
Part of the design-to-ship pipeline: brainstorming → technical-documentation → conformance-check → reconciling-changes → planning → project-setup → executing-plans → shipping. Install the full set for structured feature work.
Used inside executing-plans as the inner red-green-refactor loop for each task.
Install
Get this skill
Uses Agent Kit via npx; no global install required.
Quick install
npx @levi-putna/agent-kit@latest add levi-putna/skills --skill component-testingGlobal (Cursor)
npx @levi-putna/agent-kit@latest add levi-putna/skills --skill component-testing --global --agent cursorGlobal (Claude)
npx @levi-putna/agent-kit@latest add levi-putna/skills --skill component-testing --global --agent claudeProject install
npx @levi-putna/agent-kit@latest add levi-putna/skills --skill component-testing --projectInteractive install
npx @levi-putna/agent-kit@latest add levi-putna/skillsUninstall
npx @levi-putna/agent-kit@latest remove component-testingExample
Example prompt
Add comprehensive tests to the UserCard component.
Flow
How the skill works
- Add interaction tests for user scenarios
- Configure visual regression if needed
- Run accessibility audit
- Create unit tests for logic
- Test backward compatibility if extending
- Verify tests pass in CI
- Hand off to calling skill for integration