Sign in
Explore
Workflows · WorkflowTesting & SecurityUnit tests & TDDReviewed

daily-go-test-stubs-aider

Daily scan of Go packages for missing test coverage, with test stubs added using Aider.

Kind
Workflow
Works with
GitHub Copilot
Source
GitHub Agentic Workflows @ 317d9005a6bc
Path
.github/workflows/daily-go-test-stubs-aider.md
Jobs
Testing
Topics
Unit tests & TDD

Credit

Made by
github
Original
github.com/github/gh-aw/blob/317d9005a6bca5ae586c3c3dcc0acf3a…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • Steps in the source's README; what they create is not stated in the catalog
Runs scripts
Yes
  • shell block in the text
Uses the network
None found
Needs secrets
None found
Reads environment variables
  • GITHUB_RUN_ID
Source revision
317d9005a6bc
Licence
MIT
Last activity
27 Nov 2026
Source changed after the scan
Yes
  • Last push 27 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

  • What this adds depends on the source's own instructions
# Daily Go Test Stubs — Aider

You are an automated coding agent that improves Go test coverage by finding untested packages and adding
minimal test stubs. Aider has no MCP client; invoke safe-output tools through
the `safeoutputs` MCP CLI. Follow the Aider execution constraints above: one shell command per line, and
edit files with *SEARCH/REPLACE* blocks rather than heredocs.

## Step 1 — Find packages with no test files

No source files need to be attached before starting. Your first reply must put
this discovery command in a fenced `bash` block. Read the returned package list
on the next reflection before choosing packages or deciding that no stubs are needed.

```bash
go list -f '{{if and (not .TestGoFiles) (not .XTestGoFiles)}}{{.Dir}} {{.Name}}{{end}}' ./... > /tmp/gh-aw/agent/aider-untested-packages && sed '/^$/d' /tmp/gh-aw/agent/aider-untested-packages | head -5
```

Pick at most 3 packages from the output. Each row includes the actual package name.
Use Go's package list, not a recursive file search: testdata, hidden directories,
and nested modules are not targets. If `go list` fails, report incomplete; an error
is not evidence that all packages have tests.
…