Agent skill

Swig Test

by swig in swig/swig

Run SWIG test suite for specific languages. An agent skill from swig/swig.

Custom licenceAuto-check passedTesting & QA

Install Swig Test

skills CLI
$ npx skills add swig/swig --skill swig-test -a claude-code

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

GitHub CLI
$ gh skill install swig/swig swig-test --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/swig/swig.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/swig-test .claude/skills/swig-test && 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
swig-test
GitHub stars
6.3k
Token cost
~2.3k tokens
SKILL.md length
1,238 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Custom licence

At a glance

Run SWIG test suite for specific languages. An agent skill from swig/swig.

  • Works in 4 steps: Ensure SWIG is built: Run make in the… → Run all tests for a language: Execute… → For parallel execution: Use make -j[n]… → …
  • Testing SWIG changes
  • SKILL.md covers When to Use, Procedure for All Tests in a…, Procedure for Single Test and Procedure for One Test Across…, plus 2 more sections
  • Runs Shell scripts from its folder; calls make and npm

What it does

Swig Test is an agent skill from swig/swig. Run SWIG test suite for specific languages. Use when testing SWIG changes, verifying language support, debugging test failures, or running regression tests.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `test-configured-languages.sh`).

It sits in Testing & QA, covering Test generation and Failing and flaky tests. The repository describes itself as: SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

When your agent uses it

  • Testing SWIG changes
  • Verifying language support
  • Debugging test failures
  • Running regression tests

Example prompts

  • “/swig-test”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Ensure SWIG is built: Run make in the root directory.
  2. Run all tests for a language: Execute make check-[language]-test-suite (e.g., make check-python-test-suite).
  3. For parallel execution: Use make -j[n] check-[language]-test-suite to speed up on multi core systems that have n cores.
  4. Review output for pass/fail status and any warnings.

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • make
    • npm

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

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    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

Swig Test loads about 2.3k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 1,238 words of instructions outside code blocks.

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

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

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

“Whenever you add a new testcase or modify an existing one, the final confidence step is to run it across every configured language, not just the one or two you developed against. This applies equally to a brand new test…”

— opening of SKILL.md by swig, Custom licence
name
swig-test
argument-hint
Specify language (e.g., python, java) and optionally a single test name

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/swig-test of swig/swig.

  • SKILL.md
  • test-configured-languages.sh

Open the folder on GitHubat commit 068bf9b

Compare with similar skills

Swig Test 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.

Swig Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swig Test this skillswig/swig6.3k—~2.3kAutomated safety check: PassCustom licence
Wioworkersio/skills190—~5.8kAutomated safety check: PassMIT
Offloadimbue-ai/offload125—~3.1kAutomated safety check: PassMIT
Test Fixingdavila7/claude-code-templates32k8 repos~739Automated safety check: PassMIT
Write Testsdzhng/skills1k—~2.4kAutomated safety check: PassMIT
Frappe Testing UnitImpertio-Studio/Frappe_Claude_Skill_Package187—~3kAutomated safety check: PassMIT

Similar skills

  • Wio

    workersio/skills

    Testing workflow skill for finding high-value test candidates, writing focused tests, generating realistic workloads, reviewing test value, and diagnosing test-suite health.

    190 GitHub stars~5.8k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Offload

    imbue-ai/offload

    Activate when you see offload.toml in a repo, offload referenced in build targets (justfile, Makefile, scripts), or when you need to run a large test suite in parallel.

    125 GitHub stars~3.1k tokensUpdated 13 days ago
    Testing & QAAuto-check passed
  • Test Fixing

    davila7/claude-code-templates

    Run tests and systematically fix all failing tests using smart error grouping.

    32k GitHub starsUsed in 8 repos~739 tokens
    Testing & QAAuto-check passed
  • Write Tests

    dzhng/skills

    Write tests that pin real behavior instead of implementation details, config values, or lucky samples.

    1k GitHub stars~2.4k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Frappe Testing Unit

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when writing unit tests, integration tests, creating test fixtures, or running tests with bench run-tests.

    187 GitHub stars~3k tokensUpdated 21 days ago
    Testing & QAAuto-check passed
  • Test Deep

    sd0xdev/sd0x-harness

    Context-aware test orchestration. An agent skill from sd0xdev/sd0x-harness.

    192 GitHub stars~2.3k tokensUpdated today
    Testing & QAAuto-check: notes

More from swig/swig

  • Swig CI Repro

    swig/swig

    Reproduce a GitHub Actions Linux CI failure locally when it does not happen on your machine: a podman/docker image that mirrors the ubuntu-22.04 runner by reusing the real Tools/CI-linux-.sh install…

    6.3k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • SWIG source and contribution conventions: clang-format / code formatting, C/C++ comment style (quotes, widths, function header blocks), parser.y new-code rules, alphabetical ordering of makefile…

    6.3k GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Swig Doc

    swig/swig

    Author and edit chapters of the SWIG Users Manual under Doc/Manual: chapter conventions, manual heading anchors, the four content <div styles (code / targetlang / shell / diagram), how to show a…

    6.3k GitHub stars~3.5k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Swig Test

What does Swig Test do?

Run SWIG test suite for specific languages. An agent skill from swig/swig. Swig Test is an agent skill from swig/swig. Run SWIG test suite for specific languages.

When should I use Swig Test?

Swig Test fits situations like: testing SWIG changes; verifying language support; debugging test failures; running regression tests.

How do I install Swig Test in Claude Code?

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

How do I install Swig Test in Codex?

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

Can I use Swig Test 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 swig/swig --skill swig-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swig-test, .gemini/skills/swig-test, .github/skills/swig-test and .opencode/skills/swig-test in your project.

What does Swig Test need to run?

Going by SKILL.md and its folder, Swig Test needs a shell for the scripts in its folder and the command-line tools its instructions call (make and npm). Our summary lists: Python 3; A Bash shell.

Does Swig Test access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Swig Test 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 Swig Test use?

Swig Test 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 Swig Test use?

About 2.3k tokens (SKILL.md is roughly 9.3k 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 Swig Test?

Skills that share tags, products or a category with Swig Test: Wio (workersio/skills, 190 stars), Offload (imbue-ai/offload, 125 stars), Test Fixing (davila7/claude-code-templates, 32k stars) and Write Tests (dzhng/skills, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swig Test?

swig (a GitHub organization) maintains it in swig/swig, which has 6,327 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 7, 2026.

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