testing
This testing skill provides unified guidance and templates for implementing tests across both frontend and backend environments within a project. It includes patterns for React component testing using Vitest and React Testing Library, plus Python backend testing with Pytest, offering quick commands and structured workflows for writing new tests, fixing bugs, and ensuring code quality during refactoring.
git clone --depth 1 https://github.com/nth5693/gemini-kit /tmp/testing && cp -r /tmp/testing/skills/testing ~/.claude/skills/testingSKILL.md
# Testing Skill
## Overview
Guidance and templates for testing in {PROJECT_NAME}. Covers React Component testing (Vitest/RTL) and Backend testing (Python/Pytest).
## When To Use
- **Writing new code**: Every new feature needs tests.
- **Fixing bugs**: Create a reproduction test first.
- **Refactoring**: Ensure green tests before and after.
## Instrumentation
```bash
# Log usage when using this skill
./scripts/log-skill.sh "testing" "manual" "$$"
```
## What do you want to do?
1. **Test React Components** → `workflows/run-frontend-tests.md`
2. **Test Backend/API** → `workflows/run-backend-tests.md`
3. **Write a New Test** → `templates/component-test.template.tsx`
4. **Fix Test Failures** → `references/vitest-patterns.md`
## Quick Commands
```bash
# Frontend (Unit/Integration)
npm test
npm test -- -t "ComponentName" # Run specific test
# Backend (API)
pytest
pytest -k "test_name"
```Diagnose and fix broken skills. Use when a skill isn't working correctly.
Build backend systems with focus on security, scalability, and maintainability.
Generate creative ideas and solutions.
Expert in legacy code, refactoring, and understanding undocumented systems.
Write clean, efficient code following project conventions.
Create marketing content with CRO optimization.
Manage database schema, queries, and migrations.
Analyze errors and bugs, identify root causes, and provide systematic fix recommendations.