Install any skill in seconds. Free to start, no credit card required.
Get Started Free →hashgraph-online/go-cli-testing
Design, implement, stabilize, and review Go CLI tests across fresh command trees, pure logic, table-driven cases, streams, typed configuration, files, environment, function-backed HTTP fakes, repositories, subprocesses, capability profiles, race checks, and artifact behavior.
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Our Go CLI test suite is currently flaky and sometimes leaves leftover temporary files or fails when run concurrently. Can you review our approach and outline best practices for isolating mutable state, managing environment variables, handling asynchronous or timed operations, and asserting output across stdout and stderr during command execution?
| Checked | Without skill | With skill |
|---|---|---|
| Recommends replacing time.Sleep polling with synchronization primitives, deadlines, or fake clocks. | Missed | Passed |
| Recommends constructing a fresh command tree and typed configuration for each test run. | Passed | Passed |
| Recommends asserting both execution errors and captured stream output. | Passed | Passed |
The instructions your model reads when the skill loads.
Test observable behavior at the narrowest boundary that proves it. Isolate every mutable resource and reserve executable tests for process-level semantics.
| Task | Load |
|---|---|
| Build or overhaul a CLI test suite | guidelines.md, workflows/test-cli-command.md |
| Stabilize a flaky asynchronous test | workflows/stabilize-flaky-test.md |
| Write focused command tests | references/cli-testing/rules.md, references/cli-testing/examples.md |
| Add subprocess, HTTP, repository, or integration tests | references/cli-testing/patterns.md |
| Review coverage, isolation, or flakiness | references/cli-testing/checklist.md |
| Choose the right test boundary | references/cli-testing/knowledge.md |
| Benchmark or profile performance | Use go-performance-testing |
testing/synctest only when the minimum Go version supports it and the
behavior fits an isolated bubble.Execute errors and stream output.test cases passed, vs 20 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.