agentleFS
hishamkaramhishamkaram/delegation-layer/skills/go-test-writer/SKILL.md

go-test-writer

Skill2 starsChanged 2 months agoMITView on GitHub

Add behavior and fault tests with independent oracles and explicit process and storage ownership.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when tests or fault scenarios are the primary assignment.

    line 8
  2. Distinctive:

    Use pure fakes for isolated decisions/order.

    line 25
  3. Distinctive:

    Use native temporary paths and canonical identity controls.

    line 31
  4. Distinctive:

    Run focused tests after dependencies stabilize.

    line 34
  5. Distinctive:

    Do not introduce a test framework or contributor proof format.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Go test writer

Use when tests or fault scenarios are the primary assignment. Read the lifecycle-test guidance for durable/process work and quality floor for project tooling. Load only the relevant provider or native section.

Inputs

Requested behavior, owned test files, real callers, current failure, canonical state owner and success/failure cases. Confirm only the tools the task needs.

Work

  1. Choose an observable invariant, not a private signature, method body, test ID inventory or mirror of implementation branches. Preserve genuine persisted format and public-consumer compatibility.
  2. For a bug, obtain the intended failing assertion before the fix. Record missing tools or unrelated failures honestly; do not weaken the test.
  3. Use pure fakes for isolated decisions/order. Durable writes, rollback, create-once ambiguity and recovery need production stores and real consumers. See the four create-once results.
  4. Gate concurrency at the actual owner boundary. Separate watchdogs from latency requirements. Register cleanup immediately; retain and join owned subprocesses/goroutines on error and assertion failure.
  5. Use native temporary paths and canonical identity controls. Keep relevant Git/non-Git and permission-mode cases. Do not erase a provider precondition by initializing every fixture as a repository.
  6. Run focused tests after dependencies stabilize. Keep each case in ordinary discovery once, without fixed historical counts/maps. Root owns the stable integrated checks; do not add another full run of unchanged subsets.

Result

Return meaningful tests, exact commands/results and any unavailable scenario. Do not introduce a test framework or contributor proof format. A mocked test does not prove a real provider/account or native host. Tests and fixtures follow the same engineering guidance and quality checks.

Report affected guidance and diagram changes under the project documentation completion rule.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.