Agent skill

Test Generator

by gustavscirulis in gustavscirulis/snapgrid

Generate test templates for unit tests, integration tests, and UI tests using Swift Testing and XCTest.

Custom licenceAuto-check: notesTesting & QA

Install Test Generator

skills CLI
$ npx skills add gustavscirulis/snapgrid --skill test-generator -a claude-code

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

GitHub CLI
$ gh skill install gustavscirulis/snapgrid test-generator --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/gustavscirulis/snapgrid.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/skills/generators/test-generator .claude/skills/test-generator && 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-generator
GitHub stars
117
Used in
1 other repo
Token cost
~2.7k tokens
SKILL.md length
682 words
Files
3
Skills in repo
118
Repo updated
First seen
Licence
Custom licence

At a glance

Generate test templates for unit tests, integration tests, and UI tests using Swift Testing and XCTest.

  • Works in 9 steps: Project Context Detection → Conflict Detection → Architecture Detection → …
  • Adding tests to iOS/macOS apps
  • SKILL.md covers When This Skill Activates, Decision Tree, Pre-Generation Checks and Configuration Questions, plus 7 more sections
  • Calls xcodebuild

What it does

Test Generator is an agent skill from gustavscirulis/snapgrid. Generate test templates for unit tests, integration tests, and UI tests using Swift Testing and XCTest. Use when adding tests to iOS/macOS apps.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `templates.md` and `testing-patterns.md`).

It sits in Testing & QA, covering iOS development, Unit testing and Test generation. It works with iOS and macOS. The repository describes itself as: SnapGrid is an open-source Mac app for collecting, organizing, and analyzing UI screenshots. It uses AI to automatically detect UI components and patterns, making it a powerful…

When your agent uses it

  • Adding tests to iOS/macOS apps
  • Tasks that involve iOS development
  • Tasks that involve Unit testing

Example prompts

  • “/test-generator”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion

Workflow steps

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

  1. Project Context Detection
  2. Conflict Detection
  3. Architecture Detection
  4. Testing Framework
  5. Test Types to Generate
  6. Architecture Pattern
  7. Add Test Target
  8. Configure Test Scheme
  9. Run Tests

What it can do on your machine

Read from SKILL.md and the folder at commit eb7eaf4. 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
    • Write
    • Edit
    • Glob
    • Grep
    • Bash
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • xcodebuild

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

  • Network

    Links to these hosts (documentation or services it may open):

    • developer.apple.com

    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 Generator loads about 2.7k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 682 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 682 words (~2,699 tokens).

“Generate test templates for unit tests, integration tests, and UI tests in iOS/macOS apps.”

— opening of SKILL.md by gustavscirulis, Custom licence
name
test-generator
allowed-tools
Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files in .claude/skills/skills/generators/test-generator of gustavscirulis/snapgrid.

  • SKILL.md
  • templates.md
  • testing-patterns.md

Open the folder on GitHubat commit eb7eaf4

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in gustavscirulis/snapgrid, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Test Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Generator this skillgustavscirulis/snapgrid1171 repos~2.7kAutomated safety check: NotesCustom licence
Testing iOS Codebitwarden/ios696—~1.8kAutomated safety check: PassGPL-3.0
OpenROAD Module Test AdderThe-OpenROAD-Project/OpenROAD3.2k—~1.8kAutomated safety check: PassBSD-3-Clause
Kane CLI Browser TestingLambdaTest/kane-cli248—~8.4kAutomated safety check: PassApache-2.0
Write Testsgrafana/synthetic-monitoring-app171—~1.2kAutomated safety check: PassAGPL-3.0
Write Test389ds/389-ds-base294—~1.8kAutomated safety check: PassCustom licence

Similar skills

  • Testing iOS Code

    bitwarden/ios

    Official

    Write tests, add test coverage, unit test, or add missing tests for Bitwarden iOS.

    696 GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • OpenROAD Module Test Adder

    The-OpenROAD-Project/OpenROAD

    Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.

    3.2k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Kane CLI Browser Testing

    LambdaTest/kane-cli

    Drives a real browser through the kane-cli tool and designs requirement-linked test suites from a PRD or a plain description, with mobile and cloud-grid runs.

    248 GitHub stars~8.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Write Tests

    grafana/synthetic-monitoring-app

    Official

    Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.

    171 GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Write Test

    389ds/389-ds-base

    Add or extend a pytest integration test for 389 Directory Server under dirsrvtests/.

    294 GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Swift Testing

    nimblehq/ios-templates

    Write, review, or migrate unit tests using Swift Testing (@Test, @Suite, expect, require).

    110 GitHub stars~1.3k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed

More from gustavscirulis/snapgrid

All 118 skills in this repo
  • Interaction Design

    gustavscirulis/snapgrid

    Design and implement microinteractions, motion design, transitions, and user feedback patterns.

    117 GitHub starsUsed in 3 repos~2k tokens
    Auto-check passed
  • Account Deletion

    gustavscirulis/snapgrid

    Generates an Apple-compliant account deletion flow with multi-step confirmation UI, optional data export, configurable grace period, Keychain cleanup, and server-side deletion request.

    117 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check: notes
  • Alarmkit

    gustavscirulis/snapgrid

    AlarmKit integration for scheduling alarms and timers with custom UI, Live Activities, and snooze support.

    117 GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • Analytics Interpretation

    gustavscirulis/snapgrid

    Interpret app metrics and make data-driven decisions. An agent skill from gustavscirulis/snapgrid.

    117 GitHub starsUsed in 1 repo~4.1k tokens
    Auto-check passed
  • Analytics Setup

    gustavscirulis/snapgrid

    Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel).

    117 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check: notes
  • Announcement Banner

    gustavscirulis/snapgrid

    Generates an in-app announcement banner system with remote configuration, scheduling, deep link actions, and dismiss tracking.

    117 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check: notes

Works with

Categories

Questions about Test Generator

What does Test Generator do?

Generate test templates for unit tests, integration tests, and UI tests using Swift Testing and XCTest. Test Generator is an agent skill from gustavscirulis/snapgrid. Generate test templates for unit tests, integration tests, and UI tests using Swift Testing and XCTest.

When should I use Test Generator?

Test Generator fits situations like: adding tests to iOS/macOS apps; tasks that involve iOS development; tasks that involve Unit testing.

How do I install Test Generator in Claude Code?

Run `npx skills add gustavscirulis/snapgrid --skill test-generator -a claude-code`. Or copy the skill folder (.claude/skills/skills/generators/test-generator in gustavscirulis/snapgrid) into .claude/skills/test-generator in your project. Claude Code loads it when a task matches its description.

How do I install Test Generator in Codex?

Run `npx skills add gustavscirulis/snapgrid --skill test-generator -a codex`. Or copy the skill folder (.claude/skills/skills/generators/test-generator in gustavscirulis/snapgrid) into .agents/skills/test-generator in your project. Codex loads it when a task matches its description.

Can I use Test Generator 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 gustavscirulis/snapgrid --skill test-generator -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-generator, .gemini/skills/test-generator, .github/skills/test-generator and .opencode/skills/test-generator in your project.

What does Test Generator need to run?

Going by SKILL.md and its folder, Test Generator needs the command-line tools its instructions call (xcodebuild). Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion.

Does Test Generator access the network?

SKILL.md names 1 domain. As links in the text: developer.apple.com. This is read from the text; nothing was executed.

Is Test Generator safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Test Generator use?

Test Generator has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Test Generator use?

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

What are the alternatives to Test Generator?

Skills that share tags, products or a category with Test Generator: Testing iOS Code (bitwarden/ios, 696 stars), OpenROAD Module Test Adder (The-OpenROAD-Project/OpenROAD, 3.2k stars), Kane CLI Browser Testing (LambdaTest/kane-cli, 248 stars) and Write Tests (grafana/synthetic-monitoring-app, 171 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Generator?

gustavscirulis (a GitHub user) maintains it in gustavscirulis/snapgrid, which has 117 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on April 30, 2026.

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