alekspetrov/navigator/frontend-test
Claude Code and agent skill by alekspetrov/navigator
- community
Checking that the SKILL.md file is still in the repository.
Generate frontend component tests (React Testing Library, Vue Test Utils, snapshot) for existing components. Auto-invoke when user says "test this component", "write component test", or "add component test".
Install
npx vskill@latest install alekspetrov/navigator/frontend-testSKILL.md
Frontend Component Test Generator
Generate component tests for existing components — typically components written without tests, or where additional coverage is needed beyond what frontend-component already produced.
When to use this vs. `frontend-component`:frontend-componentgenerates tests as part of creating a new component. Usefrontend-testwhen the component already exists and you need to add or expand its tests.
When to Invoke
Auto-invoke when user says:
- "Test this component"
- "Write component test"
- "Add component test"
- "Test component [name]"
- "Component tests for [name]"
Execution Steps
Step 0: Check Existing Patterns (Phase 0)
Look for patterns about test utilities used (RTL vs Enzyme), snapshot policy, accessibility-test conventions.
Step 1: Locate Component Under Test
Ask if not specified:
Read the component in full so generated tests cover actual behavior (props handled, events emitted, conditional rendering, etc.).
Step 2: Detect Test Framework + Library
Check for setupTests.ts / vitest.setup.ts to understand global utilities and matchers.
Step 3: Generate Test File
File location: colocate with the component (UserProfile.test.tsx next to UserProfile.tsx) unless the project convention is otherwise.
Structure (RTL + Vitest/Jest):
Snapshot tests: only generate if the project's existing tests use them (check peer test files first). They're easy to over-rely on; prefer assertion-based tests for behavior, snapshots only for stable visual structure.
Step 4: Verify
If tests fail because they assume incorrect behavior, fix the tests. Only fix the component if it's actually buggy — surface that to the user.
Step 5: Emit Execution Summary (Graph Ingestion)
Ingest:
Success Criteria
- [ ] Test file colocated with component (or per project convention)
- [ ] Rendering, interactions, and at least one accessibility check covered
- [ ] Queries use
getByRole/getByLabelTextovergetByTestIdwhere possible - [ ] All generated tests pass on first run
- [ ] Execution summary emitted
When NOT to Use This Skill
- You're creating a new component from scratch — use
frontend-component(it generates tests as part of its workflow) - You want to test a backend endpoint or service — use
backend-test - You want visual regression testing — use
visual-regression
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/frontend-test/SKILL.md
Popularity
- Repository stars
- 159
- Repository forks
- 7
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alekspetrov/navigator/frontend-test)