Token导航 LogoToken导航

Agent Skill · 研究检索

gwt-tester(GWT 测试仪)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

gwt-tester 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 68,015。

总安装 238周安装 10GitHub Stars 公开资料未说明下载 83核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gwt-tester(GWT 测试仪)
来源仓库:https://github.com/hexsis-llc/skills
仓库路径:skills/gwt-tester
安装命令:
npx skills add https://github.com/hexsis-llc/skills --skill gwt-tester
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hexsis-llc/skills --skill gwt-tester

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

gwt-tester 用于辅助测试设计、用例整理和回归验证,帮助编写单元测试或端到端测试。适用于根据失败日志定位问题或制定测试计划的场景。使用时需确认项目测试框架和运行命令,避免为通过测试而改坏逻辑。涉及浏览器或外部服务时应区分本地模拟与生产环境,防止误操作。

gwt-tester 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/gwt-tester

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/hexsis-llc/skills --skill gwt-tester;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

gwt-tester 怎么安装?

在终端执行 npx skills add https://github.com/hexsis-llc/skills --skill gwt-tester。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gwt-tester 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gwt-tester 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

gwt-tester 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gwt-tester 用的人多吗?

公开数据是累计安装 238 次,近一周安装 10 次,下载 83 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gwt-tester 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gwt-tester

GWT 测试仪 · 本页

238—只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

GWT Tester

Use these instructions to write clean, readable tests with Given/When/Then semantics.

Terminology Map

Use the agnostic terms below throughout this skill.

Agnostic termJS/TS exampleDart example
Suite blockdescribegroup
Case blockit / testtest
Setup once (for a suite)beforesetUpAll
Setup each (per case)beforeEachsetUp
Teardown once (for a suite)aftertearDownAll
Teardown each (per case)afterEachtearDown

When this skill says:

  • "suite block", read describe (JS/TS) or group (Dart)
  • "case block", read it/test (JS/TS) or test (Dart)
  • "setup hook", read before/beforeEach (JS/TS) or setUpAll/setUp (Dart)
  • "teardown hook", read after/afterEach (JS/TS) or tearDownAll/tearDown (Dart)

Rules

  1. Keep maximum nesting depth to 3 levels: suite -> suite -> case. Exception: allow suite -> suite -> suite -> case for When variant coverage when validating the same behavior across interfaces or variants (for example via RPC and via REST). In this exception, variants are at level 3 and Then case blocks are at level 4.
  2. Never nest Given blocks inside another Given block.
  3. Keep Given setup hooks focused on shared context and test data, not primary behavior under test.
  4. Prefer assertion-only case blocks.
  5. Move executable behavior into a dedicated When block whenever possible. Use setup hooks inside that When block to run the action once per case. If there is no executable action to perform for a scenario, skip the When block and place Then cases directly under the Given block. If that When contains variants, place action setup hooks inside each variant block, not in the parent When block.
  6. Ensure block titles describe behavior that actually happens in that block's scope. Do not title a case When <action>... if <action> already ran in another block's setup hook.
  7. If a When has only one Then, use a single case title (When... then...); in this collapsed form, putting the When action inside the case body is acceptable.
  8. Remove wrapper suite blocks that do not add scenario context.
  9. Write explicit scenario titles: Given <subject> with <condition>, optional When <action>, and Then <outcome>.
  10. Place test utilities based on scope:

- If a utility is specific to one test file, place it at the bottom of that file so test blocks remain the first code in the file. - If a utility is reused across test files, move it to shared test utilities following existing codebase conventions. - If no shared utility convention exists, create an appropriate utils directory and place shared utilities there.

  1. Extract a value into a named variable only when that value is used more than once, and place it in the nearest shared scope (for example Given or When) to make test data updates predictable and centralized.

Writing Workflow

  1. Define scenarios as top-level Given... suite blocks.
  2. Add Given setup hooks for shared context only.
  3. Add nested When... suite blocks for each action path. If there is no action to perform, skip When and place Then cases directly under Given.
  4. Run the action in setup hooks inside the When block when multiple Then cases share it. If variants exist under that When, run setup hooks inside each variant block.
  5. Add assertion-only Then... case blocks.
  6. If a When has only one Then, optionally collapse to a single case title: When... then....
  7. Move logic from Given hooks into When hooks when that logic is action-specific.
  8. If a When needs interface/variant coverage, nest variant blocks under that When only (for example via RPC, via REST).
  9. Keep nesting shallow and remove redundant wrappers.
  10. Run tests and formatter.

When Variant Coverage

Use one extra nesting level only for variant coverage under the same When action. Keep action setup hooks inside each variant block, not in the parent When block.

Example 1 (setup inside variants):

suite("Given an endpoint that returns a user", () => {
  suite("When requesting user 42", () => {
    suite("via RPC", () => {
      setup_each(() => {
        response = requestUserViaRpc(42)
      })

      case("Then status is successful", () => {
        assert(response.status == 200)
      })
    })

    suite("via REST", () => {
      setup_each(() => {
        response = requestUserViaRest(42)
      })

      case("Then status is successful", () => {
        assert(response.status == 200)
      })
    })
  })
})

Example 2 (multiple Then outcomes per variant):

suite("Given a user endpoint", () => {
  suite("When requesting user 42", () => {
    suite("via RPC", () => {
      setup_each(() => {
        response = requestUserViaRpc(42)
      })

      case("Then status is successful", () => {
        assert(response.status == 200)
      })

      case("Then user payload is present", () => {
        assert(response.body.user != null)
      })
    })

    suite("via REST", () => {
      setup_each(() => {
        response = requestUserViaRest(42)
      })

      case("Then status is successful", () => {
        assert(response.status == 200)
      })

      case("Then user payload is present", () => {
        assert(response.body.user != null)
      })
    })
  })
})

Pseudocode Pattern

suite("Given <subject> with <state>", () => {
  setup_each(() => {
    // arrange shared context
  })

  suite("When <action>", () => {
    setup_each(() => {
      // act
    })

    case("Then <outcome A>", () => {
      // assert only
    })

    case("Then <outcome B>", () => {
      // assert only
    })
  })
})

No-action scenario (skip When):

suite("Given <subject> with <state>", () => {
  setup_each(() => {
    // arrange shared context only
  })

  case("Then <outcome A>", () => {
    // assert only
  })
})

Title-to-Scope Alignment

Use titles that match where behavior occurs.

Bad example:

suite("Given a counter at zero", () => {
  setup_each(() => {
    // Bad: action belongs in a When block, not Given setup.
    counter.increment()
  })

  case("Then value is one", () => {
    assert(counter.value == 1)
  })
})

Good example:

suite("Given a counter at zero", () => {
  setup_each(() => {
    // arrange
  })

  suite("When incremented", () => {
    setup_each(() => {
      counter.increment()
    })

    case("Then value is one", () => {
      assert(counter.value == 1)
    })

    case("Then value is not zero", () => {
      assert(counter.value != 0)
    })
  })
})

Logic Movement for Clean Blocks

Move logic to the narrowest block that owns that behavior.

  • Keep data creation and shared fixtures in Given setup hooks.
  • Move action-specific calls from Given setup hooks into the relevant When block.
  • Keep Then case blocks assertion-only.
  • Only keep action execution in case bodies for a single When... then... collapsed case.

When/Then Collapse

Apply collapse when one action has only one outcome assertion.

Bad example (not collapsed):

suite("Given a counter at zero", () => {
  setup_each(() => {
    // arrange
  })

  suite("When incremented", () => {
    setup_each(() => {
      counter.increment()
    })

    case("Then value is one", () => {
      assert(counter.value == 1)
    })
  })
})

Good example (collapsed):

suite("Given a counter at zero", () => {
  setup_each(() => {
    // arrange
  })

  case("When incremented then value is one", () => {
    counter.increment()

    assert(counter.value == 1)
  })
})

Utility Placement

Choose utility location by reuse scope.

  • Keep file-specific utilities in the same test file, below all test blocks.
  • Move cross-file utilities to shared test utility locations used by the codebase.
  • If the repository has no established shared test utility location, create an appropriate utils directory for shared test helpers.

Reused Values

Extract repeated values into named variables near test setup only when the same value is used more than once.

Bad example (no variable extracted):

suite("Given a user lookup", () => {
  suite("When searching by user id", () => {
    case("Then it returns the matching user", () => {
      result = findUser("user-42")
      assert(result.id == "user-42")
    })

    case("Then it records an audit message for that user", () => {
      assert(formatAuditMessage("user-42") == "audit:user-42")
    })
  })
})

Bad example (scope too broad):

suite("Given a user lookup", () => {
  userId = "user-42" // Too broad: only shared inside the When block below.

  suite("When searching by user id", () => {
    case("Then it returns the matching user", () => {
      result = findUser(userId)
      assert(result.id == userId)
    })

    case("Then it records an audit message for that user", () => {
      assert(formatAuditMessage(userId) == "audit:" + userId)
    })
  })
})

Good example:

suite("Given a user lookup", () => {
  suite("When searching by user id", () => {
    userId = "user-42" // Nearest shared scope.

    case("Then it returns the matching user", () => {
      result = findUser(userId)
      assert(result.id == userId)
    })

    case("Then it records an audit message for that user", () => {
      assert(formatAuditMessage(userId) == "audit:" + userId)
    })
  })
})

Refactoring Guide

When asked to refactor or check existing tests, evaluate against all rules, not only the rule that triggered the edit.

Use this pass order:

  1. Map current structure as Given, When, and Then blocks.
  2. Move action-specific logic out of Given setup hooks into the correct When block. Keep scenarios with no action directly under Given without adding an empty When.
  3. After each logic move, immediately re-evaluate collapse opportunities:

- If a When block now has only one Then, collapse to When... then.... - If additional outcomes still exist, keep When + multiple Then cases.

  1. Re-check title-to-scope alignment after structural edits.
  2. Run the full review checklist before finishing.

Anti-Patterns

  • Nesting Given inside Given.
  • Keeping action execution in Given setup when it can be moved to a When block.
  • Calling the SUT inside a case block when it can be executed in When setup hooks.
  • Mixing setup/action/asserts in a single case block.
  • Adding wrapper suite blocks with no new context.
  • Adding an empty When block when there is no action to perform.
  • Collapsing to When... then... when When variants exist, even if there is only one Then outcome.
  • Depth greater than suite -> suite -> case, except suite -> suite -> suite -> case for When variants.
  • A title that claims an action runs in one block when it actually runs in another block.

Review Checklist

  • Are all rules reviewed, not just the rule that prompted the refactor?
  • Are there any nested Given blocks?
  • Does each case block contain assertions only?
  • Does Given setup contain only shared context?
  • Is action logic moved into the relevant When block?
  • If there is no action to perform, is When skipped and are Then cases placed directly under Given?
  • When variants exist, are action setup hooks placed inside each variant block instead of the parent When block?
  • After each logic move, was When/Then collapse re-evaluated?
  • Do suite and case titles match what actually happens in each block's scope?
  • Are single When + single Then cases collapsed into one case block?
  • Are file-specific utilities placed at the bottom of the test file (with tests first)?
  • Are shared utilities moved to shared locations that follow existing codebase patterns (or a new appropriate utils directory when no pattern exists)?
  • Are values extracted into named variables only when reused more than once, and placed in the nearest shared scope (for example Given or When)?
  • Is nesting depth <= 3, or suite -> suite -> suite -> case only for When variants (level 3) with Then case blocks at level 4 (for example via RPC/via REST)?

平台分布

Codex

37.07%
按下载量换算31

Claude

27.53%
按下载量换算23

Cursor

19.28%
按下载量换算16

Gemini CLI

8.44%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills