alekspetrov/navigator/backend-test
Claude Code and agent skill by alekspetrov/navigator
- community
Checking that the SKILL.md file is still in the repository.
Generate backend tests (unit, integration, mocks) for existing code. Auto-invoke when user says "write test for", "add test", "test this", or "create test".
Install
npx vskill@latest install alekspetrov/navigator/backend-testSKILL.md
Backend Test Generator
Generate backend tests for existing code — typically code that was written without tests, or where additional coverage is needed beyond what a code-writing skill (backend-endpoint) already produced.
When to use this vs. `backend-endpoint`:backend-endpointgenerates tests as part of creating a new endpoint. Usebackend-testwhen the code already exists and you need to add or expand its tests.
When to Invoke
Auto-invoke when user says:
- "Write test for [file/function]"
- "Add test" / "Add tests"
- "Test this"
- "Create test for [thing]"
- "Test the [api/service/function]"
Execution Steps
Step 0: Check Existing Patterns (Phase 0)
Query the knowledge graph for what we know about testing in this project:
Surface patterns (preferred frameworks, mocking conventions) and pitfalls (flaky-test gotchas). If the graph returns nothing, proceed without it.
Step 1: Locate Code Under Test
If the user named a specific file, use it. Otherwise, ask:
Read the target file in full so the generated tests cover its actual behavior, not assumed behavior.
Step 2: Detect Test Framework
Detect existing test patterns by reading a peer test file under __tests__/, tests/, or *.test.ts alongside the target.
Step 3: Generate Test File
File location: place tests where existing tests live (mirror the project's convention — colocated *.test.ts next to source, or under a tests/ directory).
Structure (Jest/Vitest):
For API/integration tests (supertest pattern):
Step 4: Verify
Run the generated tests:
If any fail because tests assume incorrect behavior, fix the tests, not the source — unless the source has an actual bug. If the source is buggy, surface that to the user; don't silently change it.
Step 5: Emit Execution Summary (Graph Ingestion)
Ingest:
Success Criteria
- [ ] Test file located where the project keeps tests (mirrors convention)
- [ ] Happy path, error cases, and at least one edge case covered
- [ ] Mocks isolate the unit under test
- [ ] All generated tests pass on first run (or surface real bugs in the source)
- [ ] Execution summary emitted
When NOT to Use This Skill
- You're creating a new endpoint from scratch — use
backend-endpoint(it generates tests as part of its workflow) - You want to test a UI component — use
frontend-test
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/backend-test/SKILL.md
Popularity
- Repository stars
- 192
- Repository forks
- 9
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Apr 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/backend-test)