setup

setup is a skill for Claude Code from onsi/ginkgo. It costs 118 tokens per session (1,603 once invoked), scanned A, original, MIT.

A setup guide for Ginkgo, a Go testing framework, together with Gomega, its library for matching expected results. It shows how to install them and generate the starter test-suite file.

In plain words
What is it for?
Use it when starting Ginkgo tests in a Go package, choosing import styles, generating test files, or connecting Ginkgo suites with Go's standard testing package.
Why use it?
It removes the repetitive setup work and helps keep the command-line tool and Go dependency versions aligned.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ginkgo plugin — 13 skills shipped together

Good fit Use it when starting Ginkgo tests in a Go package, choosing import styles, generating test files, or connecting Ginkgo suites with Go's standard testing package.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onsi/ginkgo/setup
About the project

Ginkgo is a Go testing framework for writing organized, expressive specifications, including unit, integration, and performance tests. Go developers use it with the Gomega matcher library to describe behavior and run test suites.

onsi/ginkgo · 9,085 stars · on GitHub · onsi.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add onsi/ginkgo --skill setup
Clone the repo
git clone --depth 1 https://github.com/onsi/ginkgo

Made for: Claude Code.

Or install ginkgo, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/onsi/ginkgo/setup/github.svg)](https://agentmods.dev/skills/onsi/ginkgo/setup)
Your own site
<a href="https://agentmods.dev/skills/onsi/ginkgo/setup"><img src="https://agentmods.dev/badge/skills/onsi/ginkgo/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/onsi/ginkgo/setup"><img src="https://agentmods.dev/badge/skills/onsi/ginkgo/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,603 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.01603
Opus 5.5 $0.00047 $0.00641
Sonnet 5.5 $0.00024 $0.00321
Haiku 4.5 $0.00012 $0.00160

Measured 29d ago against content hash 13b0765b822a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ginkgo/skills/setup/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wiring Ginkgo into a suite

The one-time setup. For the mental model see ginkgo:overview; to start authoring see ginkgo:writing-specs. Docs: https://onsi.github.io/ginkgo/#getting-started.

1. Install the CLI and the libraries

go install github.com/onsi/ginkgo/v2/ginkgo   # the `ginkgo` CLI binary → $GOBIN (put it on $PATH)
go get github.com/onsi/gomega/...             # the Gomega matcher library

ginkgo version confirms the install. The CLI version must match the github.com/onsi/ginkgo/v2 version in your go.mod — re-run go install ... from the package to sync them. The current major version is v2; everything here assumes it. In CI, sidestep version drift by invoking the CLI via go run github.com/onsi/ginkgo/v2/ginkgo (→ ginkgo:ci).

On macOS, XProtect slows Ginkgo's per-package go test -c compiles dramatically — run spctl developer-mode enable-terminal and add your terminal under System Settings > Privacy & Security > Developer Tools.

2. Bootstrap the suite

From inside the package you want to test:

cd path/to/books
ginkgo bootstrap        # generates books_suite_test.go
package books_test

import (
	"testing"

	. "github.com/onsi/ginkgo/v2"
	. "github.com/onsi/gomega"
)

func TestBooks(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "Books Suite")
}

What each line buys you:

  • func TestBooks(t *testing.T) is the single go test entry point. Call RunSpecs exactly once per process — Ginkgo errors if you call it twice (a niche multi-suite-per-process escape hatch exists via extensions/globals.Reset(), see ginkgo:running).
  • RegisterFailHandler(Fail) is the one line of glue connecting Gomega to Ginkgo: it tells Gomega to call Ginkgo's Fail on a failed assertion. Without dot-imports this reads gomega.RegisterFailHandler(ginkgo.Fail).
  • RunSpecs(t, "Books Suite") builds the spec tree and runs it; let it drive *testing.T for you.

3. The _test package convention — and what it forces

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed · +2 lines 13b0765b822a
  2. 3mo ago First seen · 108 lines · 118 tokens per session scan A 5ea6bf32a46d

Subscribe to this mod's changes

setup is a skill published in the GitHub repository onsi/ginkgo (9,085 stars, last pushed today), licensed MIT. It adds 118 tokens to every session and 1,603 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

setup compared with skills from other repositories

setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setuponsi/ginkgoSkill9.1ktodayMITA118Claude Code
golang-testingaffaan-m/ECCSkill315ktodayMITA37Claude Code, Kiro
golang-testingsamber/cc-skills-golangSkill4.0ktodayMITA115Claude Code
golang-stretchr-testifysamber/cc-skills-golangSkill4.0ktodayMITA97Claude Code
eng-test-conventionscompozy/compozySkill2.9ktodayMITA58Claude Code, Codex
nw-pbt-gonWave-ai/nWaveSkill63713d agoMITA15Claude Code
aferospf13/go-skillsSkill72617d agoMITA131Claude Code