Agent skill

Test With Gt

by secmon-lab in secmon-lab/warren

Write Go test code using the gt library. An agent skill from secmon-lab/warren.

Apache-2.0Auto-check passed

Install Test With Gt

skills CLI
$ npx skills add secmon-lab/warren --skill test-with-gt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install secmon-lab/warren test-with-gt --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/secmon-lab/warren.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/test-with-gt .claude/skills/test-with-gt && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-with-gt
GitHub stars
134
Token cost
~509 tokens
SKILL.md length
150 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Write Go test code using the gt library. An agent skill from secmon-lab/warren.

  • Works in 3 steps: Locate gt documentation → Choose the right test type → Apply common patterns
  • Creating test files
  • SKILL.md covers Step 1: Locate gt documentation, Step 2: Choose the right test…, Step 3: Apply common patterns and Quick Reference
  • Calls go

What it does

Test With Gt is an agent skill from secmon-lab/warren. Write Go test code using the gt library. Use when writing tests, creating test files, or when the user asks to add tests for Go code.

Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AI-powered security alert management that reduces noise and accelerates response time. The licence is Apache-2.0.

When your agent uses it

  • Creating test files
  • The user asks to add tests for Go code

Example prompts

  • “/test-with-gt”

Requirements

  • Pre-approved tools (allowed-tools): Read, Bash(go:*)

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Locate gt documentation
  2. Choose the right test type
  3. Apply common patterns

What it can do on your machine

Read from SKILL.md and the folder at commit e9c3607. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash(go:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test With Gt loads about 509 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 150 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~509

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from secmon-lab/warren at commit e9c3607, republished under its Apache-2.0 licence (© secmon-lab). 150 words, ~509 tokens.

Download SKILL.mdSave it as .claude/skills/test-with-gt/SKILL.md (or your agent's skills folder).
name
test-with-gt
description
Write Go test code using the gt library. Use when writing tests, creating test files, or when the user asks to add tests for Go code.
allowed-tools
Read, Bash(go:*)

Writing Tests with gt

When writing Go test code, use the gt library for type-safe assertions.

Step 1: Locate gt documentation

First, find where gt is installed and read its documentation:

bash
GT_DIR=$(go list -m -f '{{.Dir}}' github.com/m-mizutani/gt 2>/dev/null)

If gt is available, read the relevant documentation from $GT_DIR/docs/:

  • docs/README.md - Overview and quick reference
  • docs/types/*.md - Detailed documentation for each test type
  • docs/patterns/*.md - Common patterns (method chaining, Required, Describe)

Step 2: Choose the right test type

Data TypeUseNOT
[]T (slice)gt.Array(t, arr).Length(3)gt.Value(t, len(arr)).Equal(3)
stringgt.String(t, s).Contains("x")gt.Bool(t, strings.Contains(s, "x")).True()
errorgt.NoError(t, err)gt.Value(t, err).Nil()
int, float, etc.gt.Number(t, n).Greater(5)gt.Bool(t, n > 5).True()
map[K]Vgt.Map(t, m).HasKey("k")manual check with gt.Bool
boolgt.Bool(t, b).True()gt.Value(t, b).Equal(true)

Step 3: Apply common patterns

Use Required() for fail-fast
go
gt.NoError(t, err).Required()  // Stop immediately if error
gt.Value(t, result).NotNil().Required()  // Stop if nil
Use Describef() for context
go
gt.Array(t, users).
    Describef("Users for tenant %s", tenantID).
    Length(5)
Handle function returns with R1/R2/R3
go
result := gt.R1(parseJSON(input)).NoError(t)
gt.String(t, result.Name).Equal("Alice")

Quick Reference

Constructors: gt.Value, gt.Array, gt.Map, gt.Number, gt.String, gt.Bool, gt.Error, gt.NoError, gt.File, gt.Cast, gt.R1/R2/R3

Short aliases: gt.V, gt.A, gt.M, gt.N, gt.S, gt.B, gt.F, gt.C

© secmon-lab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/test-with-gt of secmon-lab/warren.

Open the folder on GitHubat commit e9c3607

More from secmon-lab/warren

  • Goerr Error Handling

    secmon-lab/warren

    Write Go error handling code using the goerr library. An agent skill from secmon-lab/warren.

    134 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Test With Gt

What does Test With Gt do?

Write Go test code using the gt library. An agent skill from secmon-lab/warren. Test With Gt is an agent skill from secmon-lab/warren. Write Go test code using the gt library.

When should I use Test With Gt?

Test With Gt fits situations like: creating test files; the user asks to add tests for Go code.

How do I install Test With Gt in Claude Code?

Run `npx skills add secmon-lab/warren --skill test-with-gt -a claude-code`. Or copy the skill folder (.claude/skills/test-with-gt in secmon-lab/warren) into .claude/skills/test-with-gt in your project. Claude Code loads it when a task matches its description.

How do I install Test With Gt in Codex?

Run `npx skills add secmon-lab/warren --skill test-with-gt -a codex`. Or copy the skill folder (.claude/skills/test-with-gt in secmon-lab/warren) into .agents/skills/test-with-gt in your project. Codex loads it when a task matches its description.

Can I use Test With Gt in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add secmon-lab/warren --skill test-with-gt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-with-gt, .gemini/skills/test-with-gt, .github/skills/test-with-gt and .opencode/skills/test-with-gt in your project.

What does Test With Gt need to run?

Going by SKILL.md and its folder, Test With Gt needs the command-line tools its instructions call (go). Its frontmatter pre-approves these tools: Read, Bash(go:*).

Does Test With Gt access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Test With Gt safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test With Gt use?

Test With Gt is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Test With Gt use?

About 509 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

Who maintains Test With Gt?

secmon-lab (a GitHub organization) maintains it in secmon-lab/warren, which has 134 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on July 20, 2026.

Source: secmon-lab/warren on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.