darrenhinde/openagentscontrol/test-generation
Claude Code and agent skill by darrenhinde/openagentscontrol
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks for tests, mentions TDD, or when new code has been written and needs test coverage.
Install
npx vskill@latest install darrenhinde/openagentscontrol/test-generationSKILL.md
Test Generation
Overview
Generate comprehensive tests following TDD principles and project testing standards. Runs in isolated test-engineer context with pre-loaded testing conventions.
Announce at start: "I'm using the test-generation skill to create tests for [feature/component]."
The Process
Step 1: Specify Test Requirements
Provide clear requirements to test-engineer:
Step 2: Review Test Plan
Test-engineer proposes a test plan:
IMPORTANT: Review and approve before implementation proceeds.
Step 3: Implement Tests
Test-engineer implements following AAA pattern (Arrange-Act-Assert):
Step 4: Run Self-Review
Test-engineer verifies:
- ✅ Positive AND negative tests for each behavior
- ✅ AAA pattern followed
- ✅ All external dependencies mocked
- ✅ Tests are deterministic (no flakiness)
- ✅ Standards compliance
Step 5: Run Tests
Execute test suite and verify all pass:
Step 6: Return Results
TDD Workflow
For test-driven development, invoke BEFORE implementation:
Tests will fail initially—use them as spec to guide implementation.
Error Handling
Tests don't match project conventions:
- Main agent must pre-load
.opencode/context/core/standards/tests.md
Missing edge cases:
- Specify explicitly in requirements
Flaky tests:
- Ensure all external dependencies mocked
Red Flags
If you think any of these, STOP and re-read this skill:
- "The implementation is simple enough that tests aren't needed"
- "I'll just write the happy path tests for now"
- "Mocking is too complex for this dependency"
- "I'll add tests after the feature is stable"
Common Rationalizations
| Excuse | Reality | |
|---|---|---|
| "It's too simple to break" | Simple code breaks in simple ways. Tests document the contract, not just catch bugs. | |
| "Negative tests are obvious failures, not worth writing" | Negative tests are where bugs hide. "Obviously fails" is not the same as "correctly fails". | |
| "Mocking this dependency is too hard" | Hard-to-mock dependencies are a design smell. Mock them anyway and note the smell. | |
| "Tests slow down delivery" | Tests without negative cases give false confidence. False confidence slows delivery more. |
Remember
- Pre-load testing standards BEFORE invoking skill
- Specify clear behaviors and acceptance criteria
- Review test plan before implementation
- Both positive AND negative tests required
- All external dependencies MUST be mocked (no real network/DB calls)
- AAA pattern (Arrange-Act-Assert) mandatory
- Tests must be deterministic (no randomness or time dependencies)
Related
- code-execution
- code-review
- context-discovery
Security
- Security scanPassed, 95 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 repositoryCheckingplugins/claude-code/skills/test-generation/SKILL.md
Popularity
- Repository stars
- 2,939
- Repository forks
- 254
- Repository npm downloads, 7 days
- 1
- 7-day trend score
- 46
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 8 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/darrenhinde/openagentscontrol/test-generation)