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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-master

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00000 $0.00437
Sonnet 5.5 $0.00000 $0.00218
Haiku 4.5 $0.00000 $0.00109

Measured 3mo ago against content hash c35e5f5cf021, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (1 stars, last pushed 9mo 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

test-master compared with skills from other repositories

test-master next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-mastersumulige/sumulige-claudeSkill19mo agoMITA0Claude Code
ast-peaAAaqwq/AGI-Super-TeamSkill1254d agoMITA112Claude Code
test-writerathola/skrillsSkill70todayMITA14Claude Code, Codex
drive-automation-sessionkobiton/automateSkill14yesterdayMITA150Claude Code, Codex
monitor-test-runkobiton/automateSkill14yesterdayMITA215Claude Code, Codex
run-automation-suitekobiton/automateSkill14yesterdayMITA81Claude Code, Codex
doctorkobiton/automateSkill14yesterdayMITA24Claude Code, Codex