Go Testing logo

Go Testing

OrganizationPopular
GetStream
go-testing

How Go tests are written in acceleration/ and sdks/go. Read before adding a test or a test suite.

Overview

PublisherGetStream
RepositoryAgents
Skill namego-testing
Stars
8.2K
Forks
709
Bundled files
3
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GetStream on GitHub. Read the source before you install it.

Installation

Install the Go Testing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/go-testing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/go-testing .claude/skills/go-testing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Go Testing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Go Testing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Go Testing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Go testing

Rules

  • Group tests in a testify suite (suite.Suite). Shared setup lives in the suite, in one place.
  • Never mock. A provider is a stub registered in its router's registry, or the real one behind an integration build tag; everything else is real.
  • Test behaviour through the outside. Assert on outputs and state, never on which method was called.
  • Name a test as the sentence it proves: TestAnIdAnotherSessionHasIsRefused.
  • Avoid table tests, common as they are in Go. Write one test per behaviour, each named for what it proves, and put what they share in the suite or a helper.
  • Anything that needs Postgres, Redis or a provider's API starts with //go:build integration and skips, rather than fails, when what it needs is not configured.
  • Outside a suite, check with require, never testify/assert: a failed check stops the test there.
  • A unit test that waits on a real timer runs in a testing/synctest bubble, where the timer fires at once (AgentSuite.onFakeClock in internal/agent). Make the goroutines and channels the test waits on inside the bubble: a goroutine that waits on something from outside stops the fake clock. A test that waits on network I/O stays on the real clock, with or without a build tag (an integration test, or a unit test on a local socket): a wait on network I/O stops the fake clock. A test that needs real time between two events also stays on the real clock: on the fake clock, work that does not wait takes no time.
  • Every skip says what keeps the test from running: the env var or tool that is missing, or what the provider cannot do. A skip with no such reason ("pending fixture") is a test to fix or delete.

Which kind of test

Read the file for what you are testing:

  • controllers.md: HTTP operations in internal/api, run against the whole router with RouterSuite. Who may call an endpoint, whose a resource is, fixtures, parallel suites.
  • store.md: the models and queries in internal/store, run against Postgres with StoreSuite.
  • ai-routing.md: STT, TTS, STS, LLM, search and the other AI providers and their routers. One shared suite per kind of AI that every provider embeds.

Before you push

Checks a reviewer runs and an author often skips:

  • Mutate every rule you added, at every call site, in a scratch copy: delete the clause, make the condition true, empty a migration's Down. A mutant no test fails is a missing test.
  • Run the touched suites on the merge with current origin/main. CI's green is from the main it ran on.
  • An entry added to a shared list (dataTables, importedModels, usageIndexes) changes every reader of that list: read each one.
  • Round-trip an id that moves, is derived or is replayed: A to B to A, and a second run, each end as one row.
  • A shipped migration never runs again: change it in a new one.
  • A new migration is expand-only: it drops or renames nothing the release before still reads or writes.
  • A migration's lock timeout is in the go skill's store.md ("Which database"). Its version slot is in the parallel-agents skill ("Migration versions").
  • Work moved onto context.WithoutCancel takes its follow-on calls (billing, the cache drop) with it.
  • A fix covers every path to the same data: each writer, and each copy of it (a cache, data_changes).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Go Testing AI skill do?

How Go tests are written in acceleration/ and sdks/go. Read before adding a test or a test suite.

Why use Go Testing on TypingMind?

Because you install it once and use it with any model. Go Testing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Go Testing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GetStream/Agents/tree/main/.claude/skills/go-testing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Go Testing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Go Testing?

As many as you like. As long as a model supports skills, you can use Go Testing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Go Testing AI skill free?

Yes. It is published on GitHub by GetStream under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇