frontend-test-workflow
Full-cycle frontend testing workflow combining planning and implementation.
Install
mkdir -p .claude/skills/frontend-test-workflow && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14848" && unzip -o skill.zip -d .claude/skills/frontend-test-workflow && rm skill.zipInstalls to .claude/skills/frontend-test-workflow
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Orchestrates a complete frontend testing workflow by combining qa-test-planner (strategy) and frontend-testing (implementation). Use this when you need to rigorously test a component or feature from scratch.Key capabilities
- →Add tests to a specific feature or component
- →Ensure tests cover edge cases and safety requirements
- →Generate Vitest/RTL tests for a component
- →Run generated tests using npm
- →Analyze target components for testing
- →Review test plans for coverage
How it works
This skill orchestrates a frontend testing workflow by first planning the test strategy using `qa-test-planner` and then implementing the tests using `frontend-testing`.
Inputs & outputs
When to use frontend-test-workflow
- →Test new frontend components
- →Add edge-case coverage
- →Implement comprehensive testing
About this skill
Frontend Test Workflow Skill
This skill orchestrates the end-to-end process of adding high-quality tests to the Bloom Mindful Companion frontend. It chains the strategic planning of qa-test-planner with the tactical implementation of frontend-testing.
When to Use
Use this skill when:
- You need to add tests to a specific feature or component.
- You want to ensure tests cover edge cases and safety requirements (essential for mental health apps).
- You want a reliable, standardized process for testing.
Workflow Steps
Follow these steps sequentially. Do not skip the planning phase.
Phase 1: Strategy & Planning (qa-test-planner)
- Analyze the Target: Identify the component, hook, or flow to be tested.
- Trigger
qa-test-planner: Explicitly ask the planner to "Create a test plan for [Target]".- Prompt: "Using
qa-test-planner, create a test plan for the[Component/Feature]."
- Prompt: "Using
- Review the Plan: Ensure the plan covers:
- Happy Path: Standard usage.
- Edge Cases: Empty states, errors, loading.
- Safety/Privacy: PII handling, verified outcomes.
- Database State: If applicable (Supabase integration).
Phase 2: Implementation (frontend-testing)
- Refactor for Testability (If needed):
- Extract complex logic into pure utility functions (e.g.,
src/utils/). - Ensure components are isolated or mockable.
- Extract complex logic into pure utility functions (e.g.,
- Trigger
frontend-testing: Explicitly ask the testing skill to generate the code.- Prompt: "Using
frontend-testing, generate Vitest/RTL tests for[Component]following the test plan."
- Prompt: "Using
- Incremental Creation:
- Create
[Component].spec.tsx. - DO NOT generate all tests at once if complex. Start with rendering, then interaction.
- Create
Phase 3: Verification & Execution
- Run Tests:
- Command:
npm test src/path/to/test.spec.tsx
- Command:
- Fix & Iterate:
- If tests fail, analyze the failure.
- Adjust code or test expectations.
- Final Polish:
- Ensure no lint errors in test files.
- Verify 100% pass rate for the target.
Example Usage
"Run the frontend-test-workflow for the
EmergencySOScomponent."
Agent Action:
- Call
qa-test-plannerto list scenarios (Trigger: "Pressing SOS button", "Network failure during SOS"). - Call
frontend-testingto writeEmergencySOS.spec.tsx. - Run
npm testto verify.
Limitations
- →The workflow requires sequential execution of planning and implementation phases.
- →Complex tests should be created incrementally, starting with rendering.
How it compares
This workflow combines strategic planning and tactical implementation, providing a structured approach to testing compared to ad-hoc test creation.
Compared to similar skills
frontend-test-workflow side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| frontend-test-workflow (this skill) | 0 | 5mo | No flags | Intermediate |
| playwright-pro | 8 | 3mo | Review | Intermediate |
| webapp-testing | 353 | 3mo | Review | Intermediate |
| ui-ux-expert-skill | 91 | 9mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
playwright-pro
alirezarezvani
Production-grade Playwright testing toolkit. Use when the user mentions Playwright tests, end-to-end testing, browser automation, fixing flaky tests, test migration, CI/CD testing, or test suites. Generate tests, fix flaky failures, migrate from Cypress/Selenium, sync with TestRail, run on BrowserStack. 55 templates, 3 agents, smart reporting.
webapp-testing
anthropics
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
ui-ux-expert-skill
fercracix33
Technical workflow for implementing accessible React user interfaces with shadcn/ui, Tailwind CSS, and TanStack Query. Includes 6-phase process with mandatory Style Guide compliance, Context7 best practices consultation, Chrome DevTools validation, and WCAG 2.1 AA accessibility standards. Use after Test Agent, Implementer, and Supabase agents complete their work.
accessibility
tech-leads-club
Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
playwright-browser-automation
lackeyjb
Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.
svelte-expert
Raudbjorn
Expert Svelte/SvelteKit development assistant for building components, utilities, and applications. Use when creating Svelte components, SvelteKit applications, implementing reactive patterns, handling state management, working with stores, transitions, animations, or any Svelte/SvelteKit development task. Includes comprehensive documentation access, code validation with svelte-autofixer, and playground link generation.