"Generates idiomatic table-driven Go tests for a selected file, function, or package and verifies them. Use when test coverage is missing; do not use to diagnose an existing test failure."
Resources
1Install
npx skillscat add gopherguides/gopher-ai/test-gen Install via the SkillsCat registry.
About this skill
This skill generates idiomatic table-driven Go tests for a specified file, function, or package and automatically verifies them. It addresses missing test coverage by creating tests that follow Go conventions. Developers should use it when adding new code that lacks tests, but not when troubleshooting existing test failures.
SKILL.md
Test Gen
Plugin Resource Resolution
<PLUGIN_ROOT> is notation. Replace it with a concrete absolute plugin root
before every resource read or command:
- Codex: Start from the directory containing the absolute selected
SKILL.mdpath, then ascend two directories (skills/<name>to plugin root). - Claude Code: Bind it to the injected
${CLAUDE_PLUGIN_ROOT}value.
Read both files completely, then apply the adapter while following the command
body:
<PLUGIN_ROOT>/lib/codex-command-adapter.md<PLUGIN_ROOT>/commands/test-gen.md