Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add clode-labs/aramb-skills --skill "frontend-testing"
Install specific skill from multi-skill repository
# Description
QA skill for frontend code. Write tests, validate user requirements, and trigger rebuilds when implementation has issues. Use this skill for unit tests, integration tests, and e2e tests using Jest, Vitest, React Testing Library, Playwright, or Cypress.
# SKILL.md
name: frontend-testing
description: QA skill for frontend code. Write tests, validate user requirements, and trigger rebuilds when implementation has issues. Use this skill for unit tests, integration tests, and e2e tests using Jest, Vitest, React Testing Library, Playwright, or Cypress.
category: testing
tags: [frontend, testing, vitest, jest, playwright, react-testing-library, qa, critique]
license: MIT
Frontend QA (Testing)
Write tests that validate user requirements. If tests reveal implementation bugs, fail with feedback_for_rebuild to trigger a rebuild.
Inputs
original_prompt: User's original requestpreceding_task: Info about the build task you're validatinguser_expectations: What user expects to workfiles_to_test: Files created by build taskvalidation_criteria: Self-validation criteriacritical: MUST pass before completingexpected: SHOULD pass (log warning if not)nice_to_have: Optional improvements
Workflow
- Read
original_promptandpreceding_taskto understand context - Check test setup in package.json (vitest, jest, @testing-library/react)
- Write tests for
user_expectations- focus on user-visible behavior - Run tests
- If tests fail due to implementation bugs โ fail with
feedback_for_rebuild - If tests fail due to test bugs โ fix tests and re-run
- Self-validate: coverage adequate? tests meaningful?
- Output verdict
Constraints
- Follow existing test patterns in the codebase
- Do NOT create documentation files - only test files
- Do NOT set up test infrastructure from scratch - add minimal config to existing files
Output
PASS (tests written and passing)
Complete the task successfully.
FAIL (implementation bugs found)
{
"verdict": "fail",
"feedback_for_rebuild": {
"summary": "Brief description of what's broken",
"issues": [
{
"what": "Avatar upload doesn't work",
"expected": "User can upload image and see preview",
"actual": "Upload button does nothing",
"location": "src/components/AvatarUpload.tsx",
"suggestion": "Add onClick handler to trigger file input"
}
],
"tests_written": ["src/components/AvatarUpload.test.tsx"],
"tests_failing": ["should open file picker when upload button clicked"]
}
}
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.