fec-testing-strategy

fec-testing-strategy is a skill for Claude Code from bovinphang/frontend-craft. It costs 106 tokens per session (942 once invoked), scanned A, original, MIT.

A frontend testing strategy maps different risks to different checks, such as type checking, unit tests, component tests, integration tests, end-to-end tests, accessibility, security, and performance checks. It explains end-to-end testing as testing a complete user journey in a real browser.

In plain words
What is it for?
Use it to plan or review a test matrix, choose test levels for each change, define test data and mocks, manage flaky tests, and set useful CI checks.
Why use it?
It prevents teams from putting every check into slow, fragile browser tests or testing the wrong level of the system. It makes test coverage specific to business risk and easier to maintain.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the frontend-craft plugin — 53 skills, 11 commands, 14 agents, 5 hooks shipped together

Good fit Use it to plan or review a test matrix, choose test levels for each change, define test data and mocks, manage flaky tests, and set useful CI checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bovinphang/frontend-craft/fec-testing-strategy
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 bovinphang/frontend-craft --skill fec-testing-strategy
Clone the repo
git clone --depth 1 https://github.com/bovinphang/frontend-craft

Made for: Claude Code.

Or install frontend-craft, the plugin that ships this one along with the rest of its 53 skills, 11 commands, 14 agents, 5 hooks.

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 fec-testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-testing-strategy/github.svg)](https://agentmods.dev/skills/bovinphang/frontend-craft/fec-testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/bovinphang/frontend-craft/fec-testing-strategy"><img src="https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-testing-strategy/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 fec-testing-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/bovinphang/frontend-craft/fec-testing-strategy"><img src="https://agentmods.dev/badge/skills/bovinphang/frontend-craft/fec-testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 942 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.00106 $0.00942
Opus 5.5 $0.00042 $0.00377
Sonnet 5.5 $0.00021 $0.00188
Haiku 4.5 $0.00011 $0.00094

Measured 21d ago against content hash 1b30429f8c21, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fec-testing-strategy 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 21d 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.

localized/zh-CN/skills/fec-testing-strategy/SKILL.md · 50 lines

What it actually says

前端测试策略

用途

按“离代码多近 / 覆盖风险层级”选择测试方法,避免把所有风险都塞进组件测试或 E2E。

流程

  1. 识别改动类型:纯逻辑、UI 组件、跨模块流程、浏览器能力、视觉稳定性、专项质量风险或发布门禁。
  2. 建立测试层级矩阵,至少区分:
    • 静态检查:TypeScript、ESLint、格式、依赖安全、构建。
    • 单元测试:utils、hooks/composables、状态逻辑、schema、纯函数。
    • 组件测试:props/emits、用户交互、loading/error/empty、mock 边界。
    • 轻量集成测试:表单 + API mock + 路由/Store/Provider 上下文。
    • E2E:真实浏览器、跨页面关键旅程、鉴权、支付、权限、CI artifacts。
    • 视觉/交互文档:Storybook interaction、Chromatic、视觉回归基线。
    • 专项质量:a11y、安全、性能、兼容性。
  3. 按风险分配覆盖:高频核心路径优先 E2E,复杂组件状态优先组件测试,纯逻辑优先单元测试,跨 provider 协作用轻量集成测试。
  4. 用测试金字塔控制维护成本:
    • 越靠近纯逻辑,测试越多、越快、越稳定。
    • E2E 只覆盖用户关键旅程和真实浏览器风险,不覆盖每个分支。
    • 视觉、a11y、安全和性能属于专项质量层,不塞进普通组件测试。
  5. 检查是否已有命令、测试框架、目录约定和 CI 门禁;沿用项目现状,不为策略文档引入不必要工具。
  6. 规划失败证据:每个高风险项要说明失败时如何定位,例如断言、截图、trace、coverage、日志或报告。
  7. 设计测试数据与 mock 策略:共享 fixture 表达业务场景,测试数据 builder 只封装噪声字段,避免每个测试手写随机对象。
  8. 管理 flaky 风险:把时间、网络、动画、随机数、并发和外部服务标为不稳定来源,并指定隔离、重试和证据产物。
  9. 输出可执行的最小测试计划:每层覆盖什么、不覆盖什么、优先级、建议命令和责任 skill。

约束

  • 不把测试策略写成泛泛的“多写测试”;每个建议必须对应具体风险。
  • 不要求所有项目都补齐完整测试金字塔;按业务风险和团队维护能力裁剪。
  • 不把 E2E 当作单元/组件测试的替代品;不把组件测试当作真实浏览器兼容保证。
  • 不为小改动强制引入新框架;优先复用仓库已有工具和脚本。
  • 不追求没有风险说明的覆盖率数字;覆盖率只能辅助判断,不能替代场景覆盖。
  • 不把随机 fixture、共享全局状态或依赖执行顺序的测试纳入主干门禁。

预期输出

输出测试分层建议、风险到测试层的映射、优先级、建议命令、需新增或调整的测试文件范围,以及明确分流到哪些专项 skill 或 agent。

工程实践

按当前任务读取本入口工程细则,再按链接选择公共原则。规则级别与例外以实际项目契约为准;不因产品前后端标签限制语言或职责。

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. 21d ago Changed · +4 lines 1b30429f8c21
  2. 2mo ago First seen · 46 lines · 106 tokens per session scan A fcf41b9715ca

Subscribe to this mod's changes

fec-testing-strategy is a skill published in the GitHub repository bovinphang/frontend-craft (24 stars, last pushed 14d ago), licensed MIT. It adds 106 tokens to every session and 942 once invoked, about $0.0004 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-09-03.

Related

fec-testing-strategy compared with skills from other repositories

fec-testing-strategy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fec-testing-strategybovinphang/frontend-craftSkill2414d agoMITA106Claude Code
test-native-extensionmicrosoft/power-platform-skillsSkill1.2ktodayMITA211Claude Code
test-sitemicrosoft/power-platform-skillsSkill1.2ktodayMITA46Claude Code
e2e-reviewervoidmatcha/e2e-skillsSkill306d agoApache-2.0A86Claude Code, Codex
e2e-debuggervoidmatcha/e2e-skillsSkill306d agoApache-2.0A96Claude Code, Codex
journey-simulationRockyHong/super-bootstrapSkill3yesterdayMITA79Claude Code
play-testphotostructure/coding-skillsSkill514d agoMITA38Claude Code, Codex