sumulige-claude: Skill for Claude Code

.claude/skills/_archived/test-master/SKILL.md

test-master is a skill for Claude Code from sumulige/sumulige-claude. It costs 0 tokens per session (1,092 once invoked), scanned A, original, MIT.

A testing workflow that combines unit tests, end-to-end tests, and code-coverage checks. It explains TDD, which means writing tests before the implementation, and uses tools such as Jest, Vitest, and Playwright.

In plain words
What is it for?
Use it to create tests first, run browser-based user-flow tests, inspect coverage, and produce test screenshots or videos.
Why use it?
It gives development and bug-fixing work a repeatable way to check both individual functions and complete user flows.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is sumulige/sumulige-claude's own configuration. It tells Claude Code how to work on sumulige-claude itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sumulige-claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sumulige/sumulige-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sumulige/sumulige-claude/main/.claude/skills/_archived/test-master/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sumulige/sumulige-claude

Made for: Claude Code.

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 test-master

README.md
[![agentmods](https://agentmods.dev/badge/skills/sumulige/sumulige-claude/test-master.svg)](https://agentmods.dev/skills/sumulige/sumulige-claude/test-master)
Your own site
<a href="https://agentmods.dev/skills/sumulige/sumulige-claude/test-master"><img src="https://agentmods.dev/badge/skills/sumulige/sumulige-claude/test-master.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,092 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.
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.00000 $0.01092
Opus 5 $0.00000 $0.00546
Sonnet 5 $0.00000 $0.00218
Haiku 4.5 $0.00000 $0.00109

Measured 6d ago against content hash c35e5f5cf021, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

test-master 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 6d 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.

.claude/skills/_archived/test-master/SKILL.md · 187 lines

How it starts

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

Test Master

测试大师 - 合并: tdd-workflow + e2e-runner

核心职责

统一处理所有测试相关工作:

  1. 单元测试 - TDD 流程、Jest/Vitest
  2. E2E 测试 - Playwright、用户流程
  3. 覆盖率 - 分析和提升覆盖率

工作模式

模式 1:TDD 开发

触发:实现新功能或修复 bug
流程:RED → GREEN → REFACTOR
目标:测试先行,覆盖率 > 80%

模式 2:E2E 测试

触发:--e2e 或用户流程测试
框架:Playwright + Page Object Model
输出:测试文件 + 截图/视频

模式 3:覆盖率分析

触发:--coverage
输出:覆盖率报告 + 未覆盖代码建议

TDD 工作流

RED(写失败的测试)

// 1. 先写测试,明确期望行为
describe('calculateTotal', () => {
  it('should sum all items with tax', () => {
    const items = [{ price: 100 }, { price: 200 }]
    expect(calculateTotal(items, 0.1)).toBe(330)
  })
})

GREEN(最小实现)

// 2. 写最少代码让测试通过
function calculateTotal(items, taxRate) {
  const subtotal = items.reduce((sum, item) => sum + item.price, 0)
  return subtotal * (1 + taxRate)
}

REFACTOR(优化)

// 3. 重构,保持测试通过
function calculateTotal(items: Item[], taxRate: number): number {
  const subtotal = items.reduce((sum, { price }) => sum + price, 0)
  return Math.round(subtotal * (1 + taxRate) * 100) / 100
}

E2E 测试结构

tests/
├── e2e/
│   ├── pages/              # Page Objects
│   │   ├── LoginPage.ts
│   │   ├── DashboardPage.ts
│   │   └── BasePage.ts
│   ├── fixtures/           # 测试数据
│   │   └── users.json
│   ├── specs/              # 测试用例
│   │   ├── auth.spec.ts
│   │   └── dashboard.spec.ts
│   └── playwright.config.ts

Page Object 示例

// pages/LoginPage.ts
import { Page } from '@playwright/test'

export class LoginPage {
  constructor(private page: Page) {}

  async goto() {
    await this.page.goto('/login')
  }

  async login(email: string, password: string) {
    await this.page.fill('[data-testid="email"]', email)
    await this.page.fill('[data-testid="password"]', password)
    await this.page.click('[data-testid="submit"]')
  }

  async expectError(message: string) {
    await expect(this.page.locator('.error')).toContainText(message)
  }
}

Read the full file on GitHub · 187 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 187 lines · 0 tokens per session scan A c35e5f5cf021

Subscribe to this mod's changes

test-master is a skill published in the GitHub repository sumulige/sumulige-claude (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,092 tokens. 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-31.

Related

Other skills, from other repositories

test-writer

Write thorough tests following TDD and BDD principles.

athola/skrills · 14 tokens

drive-automation-session

Drive an already-reserved Kobiton device from a natural-language intent. Opens an automation Appium session directly against the Kobiton WebDriver hub, runs an observe-decide-act loop with one action per iteration, pauses to ask the user when stuck (same-action repetition, screen unchanged, or model self-declared…

kobiton/automate · 150 tokens

monitor-test-run

Watch a running Kobiton test run and narrate it to the user: read the org's live-remediation flag up front, poll the run until every execution is terminal, surface the live-remediation URL the moment an execution is blocked, and give a correct post-mortem so a COMPLETED-with-BLOCKERENCOUNTERED execution is never…

kobiton/automate · 215 tokens

run-automation-suite

Run local Appium test scripts against Kobiton devices. Guides through app upload, device selection, capability parsing, and local execution. Use when the user asks to run mobile tests, validate an APK or IPA on Kobiton devices, or kick off an Appium suite from a local script directory. Trigger with "run kobiton tests"…

kobiton/automate · 81 tokens

run-interactive-session

Perform interactive testing on Kobiton devices using natural language. Translates user intents into CLI commands - WebDriver actions (find elements, type, click, swipe), device operations (adb shell, screen capture, port forwarding), file management (push/pull), app management, and test execution. Use when the user…

kobiton/automate · 133 tokens

e2e

Selects and runs the appropriate AgentsMesh end-to-end suite for Web, Desktop, MCP, or iOS, including worktree-specific environment setup and browser-level verification. Use when a change needs E2E coverage, a user asks to execute or diagnose an E2E test, or a cross-service workflow must be verified against the real…

AgentsMesh/AgentsMesh · 75 tokens