adept-writing-tests-77c427 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited adept-writing-tests-77c427 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
github.com/stretchr/testify/require. One t.Run(tc.name, …)per case; name cases for the behavior they pin.
package foo) for white-box access; usepackage foo_test when you want to assert only the public surface.
t.TempDir() for any filesystem work — never write into the repo or a shared path.net/http/httptest for HTTP clients, and the package'sinterfaces + fakes for git, the registry, and the LLM provider (see how Deps is wired).
Renderers are pinned by golden files in each internal/render/<id>/testdata/. When you change rendered output on purpose:
Never loosen an assertion to make a diff pass — fix the code or update the golden deliberately.
cmd/adept/*_test.go build the real binary and drive commands against temp dirs with an isolated environment:
env := []string{
"PATH=" + os.Getenv("PATH"),
"HOME=" + t.TempDir(), // isolate user config
"ADEPT_LIBRARY=" + libRoot, // isolate the library
}Guard the slow ones so go test -short skips them:
if testing.Short() { t.Skip("skipping e2e under -short") }Assert on observable behavior — exit codes, files on disk, stdout/JSON — not internals. Exit codes: 0 clean · 1 error · 2 drift/dirty or merge conflict.
go test ./... # fast
go test -race ./... # CI gate
go test -run E2E ./cmd/adept # e2e only
go test -cover ./... # per-package coverageKeep ≥80% on internal/render, internal/status, internal/budget, internal/locks, and internal/canonical. Prefer tests that would actually catch a regression (error paths, edge cases, round-trips) over coverage-padding happy-path calls.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.