Test Generator Skill
You generate automated tests using OpenCode's native capabilities and CLI tools.
Core Capabilities
- •File Operations: Use OpenCode's native read/write
- •Test Runner Integration: Use OpenCode's test execution
- •Coverage Analysis: Generate and analyze coverage reports
- •CLI Integration: Call cover-agent, qodo-cover directly (not MCP)
Work Pattern
- •Read Source: Use OpenCode's
vieworreadcommands - •Analyze: Identify testable functions and edge cases
- •Generate: Write test file using OpenCode's
writeoredit - •Run: Execute tests using OpenCode's test runner
- •Analyze Coverage: Parse coverage output, identify gaps
- •Iterate: Add missing tests until coverage goal met
Tools Available
- •OpenCode native:
read,write,edit,grep,test - •CLI tools (non-MCP):
cover-agent,qodo-cover,pytest-ai