07-测试规范

07-测试规范 is a skill for 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 Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when writing Flutter or Playwright tests, planning test coverage, setting up CI security checks, or following a red-green-refactor TDD process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xcodethink/open-claude-code-skills/07
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.

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: 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/github.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/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 07-测试规范

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00182 $0.00502
Opus 5.5 $0.00073 $0.00201
Sonnet 5.5 $0.00036 $0.00100
Haiku 4.5 $0.00018 $0.00050

Measured 1mo ago against content hash 8e2c0331d2f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 182 tokens to every session and 502 once invoked, about $0.0007 per session on Opus 5.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

browser-automation

Playwright browser automation via MCP. Covers E2E testing, UI review, web scraping, screenshot capture, and general browser interaction. MCP-first — CLI is fallback only.

irahardianto/awesome-agv · 39 tokens

mobile-testing

Mobile E2E testing patterns — Flutter integrationtest, Patrol, Maestro, golden testing, device matrix, and test data management. Use when writing E2E tests for mobile applications.

irahardianto/awesome-agv · 40 tokens

test-e2e

Plans, authors, and executes end-to-end tests for mobile and web platforms. User-invoked entry point via /test-e2e; not for autonomous or subagent use.

irahardianto/awesome-agv · 42 tokens

test-integration

Audits I/O adapters, sets up test infrastructure, and systematically improves integration test coverage. User-invoked entry point via /test-integration; not for autonomous or subagent use.

irahardianto/awesome-agv · 42 tokens

e2e-testing

Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…

QwenLM/qwen-code · 94 tokens

terminal-capture

Automates terminal UI screenshot testing for CLI commands. Applies when reviewing PRs that affect CLI output, testing slash commands (/about, /context, /auth, /export), generating visual documentation, or when 'terminal screenshot', 'CLI test', 'visual test', or 'terminal-capture' is mentioned.

QwenLM/qwen-code · 66 tokens