07-测试规范

07-测试规范 is a skill for Claude Code, Codex from xcodethink/open-claude-code-skills. It costs 182 tokens per session (502 once invoked), scanned A, original, MIT.

A Chinese-language testing guide covering unit, widget, integration, and end-to-end tests, plus continuous-integration checks. TDD, or test-driven development, means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Use it when writing Flutter or Playwright tests, planning test coverage, setting up CI security checks, or following a red-green-refactor TDD process.
Why use it?
It provides testing rules, coverage guidance, performance targets, and a six-stage CI gate so changes are checked before they are merged.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/xcodethink/open-claude-code-skills/07
Any agent
npx skills add xcodethink/open-claude-code-skills --skill 07
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills

Made for: Claude Code, Codex.

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 07-测试规范

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/07.svg)](https://agentmods.dev/skills/xcodethink/open-claude-code-skills/07)
Your own site
<a href="https://agentmods.dev/skills/xcodethink/open-claude-code-skills/07"><img src="https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/07.svg" alt="Measured on agentmods" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00182 $0.00502
Opus 5 $0.00091 $0.00251
Sonnet 5 $0.00036 $0.00100
Haiku 4.5 $0.00018 $0.00050

Measured 4d ago against content hash 8e2c0331d2f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

07-测试规范 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 4d 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.

skills/07-测试规范/SKILL.md · 27 lines

What it actually says

测试规范

按场景读取对应文档:

场景 读取文档
Web E2E 测试(Playwright) E2E测试规范.md
Flutter 测试(单元/Widget/集成) Flutter测试规范.md
CI/CD 流水线配置 CI测试和安全流水线.md
测试策略和性能目标 测试和性能规范.md

通用测试原则

  1. 关键模块必测 — 支付、认证、数据处理等核心路径必须有自动化测试
  2. 测试金字塔 — 单元测试 60-70% > 集成测试 20-30% > E2E < 10%
  3. 性能基线 — FCP < 1.5s、API 响应 < 200ms、60 FPS
  4. CI 门禁 — 所有检查通过才能合并,不允许跳过

借鉴子文档(mattpocock/skills,MIT)

  • TDD红绿重构纪律.md — 红→绿→重构执行纪律、seam 约定、好/坏测试、mocking 边界(test-first / 写集成测试时读;SKILL.md 是策略层,本文档是执行层)
Files

What ships with it

7 files 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. 4d ago First seen · 27 lines · 182 tokens per session scan A 8e2c0331d2f3

Subscribe to this mod's changes

07-测试规范 is a skill published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 29d ago), licensed MIT. It adds 182 tokens to every session and 502 once invoked, about $0.0009 per session on Opus 5. 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

mailagent

Temporary inboxes for agent signup QA — create disposable addresses, wait for verification email, extract OTP or magic links. Use when automating signup, login, or email verification without parsing HTML manually.

hashgraph-online/awesome-codex-plugins · 43 tokens

write-test-plan

Generate a QA/UAT test plan from product specifications and task definitions, covering acceptance testing, integration flows, and exploratory testing. Unit tests are out of scope (handled by write-unit-tests skill).

andresharpe/dotbot · 43 tokens

e2e-check

Run E2E tests or interactive browser verification. Triggers on: 'run e2e', 'e2e test', 'browser test', 'check in browser', 'verify UI', 'interactive test'.

faizkhairi/claude-code-blueprint · 48 tokens

browser-testing

Tests a real web user flow with a browser by asserting semantic behavior, network and loading states, keyboard access, responsive layouts, and stable visual evidence. Use for browser bugs, end-to-end UI behavior, responsive or accessibility checks, and screenshot baselines. Not for static source review without a…

thiientv/godmode · 68 tokens

qa

Use to verify that code works correctly — browser-based testing with Playwright, native app testing with computer use, CLI testing, API testing, or root-cause debugging. Supports --quick, --standard, --thorough modes. Triggers on /qa.

garagon/nanostack · 54 tokens

pdlc-quality

Skill "pdlc-quality" from kanfu-panda/pdlc-skills, covering 质量闸门与报告, 这个命令的立身之本, 前置:两份真源, --init:首次建立目标声明 and 段一:跑真实 check.

kanfu-panda/pdlc-skills · 30 tokens