跳到正文
cccskills
免费在 GitHub 公开

testing

Pragmatic testing guidance focused on confidence, behavior over implementation details, and integration-first coverage. Use when designing a test strategy, writing or reviewing tests, reducing brittle mocks, or deciding what is worth testing in an application or library.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(7)

  • SKILL.md3.2 KB
  • references/fundamentals.md1.5 KB
  • references/glossary.md1.1 KB
  • references/interaction-testing.md1.8 KB
  • references/mocking.md1.4 KB
  • references/quality-gates.md1.7 KB
  • references/strategy.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Testing

Design tests that increase confidence, survive refactors, and reflect real usage.

Reference Map

Defaults

  • Test behavior through public interfaces.
  • Follow a testing trophy bias: lean on static checks and integration tests, with fewer unit and end-to-end tests.
  • Prefer a few high-value integration tests over many shallow micro-tests.
  • Mock only real boundaries: network, time, randomness, payments, third-party APIs.
  • Choose assertions a user, caller, or downstream system would care about.
  • Keep tests deterministic, small, and readable.

Workflow

  1. Identify the highest-risk behavior or workflow.
  2. Pick the cheapest test level that can prove it: static, unit, integration, or end-to-end.
  3. Arrange realistic inputs, state, and environment.
  4. Act through the public API, visible surface, or command boundary.
  5. Assert observable outcomes, not internal steps.
  6. Keep failures specific and setup cleanup reliable.
  7. Remove setup, mocks, and assertions that do not increase confidence.

Test Level Guide

  • Unit: pure logic, parsing, formatting, branching, edge cases.
  • Integration: component or service workflows, validation, state changes, error handling.
  • End-to-end: a few critical user journeys or irreversible flows.

Default to integration tests when unsure.

Red Flags

  • Tests fail after a refactor even though behavior did not change.
  • Coverage is rising, but confidence is not.
  • Most value comes from mocking internals.
  • Assertions focus on function calls instead of outcomes.
  • Snapshots are large, blind, or treated as primary verification.
  • The suite is slow mainly because tests duplicate setup with low signal.

Guidance

  • Test the path users actually take, not the implementation you happen to have today.
  • Prefer one clear reason for a test to fail.
  • Cover happy path, one meaningful edge case, and one important failure mode before expanding.
  • If a test is hard to write, consider whether the production API or design is the real problem.
  • When unsure what to automate first, start with the prioritization checklist in references/strategy.md.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

diagnose

免费

Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.

中文简介正在准备中。当前显示原文说明。

susomejias/rembric142026年10月16日 更新

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

中文简介正在准备中。当前显示原文说明。

susomejias/rembric142026年10月16日 更新

Find deepening opportunities in a codebase, informed by the project's own domain language and prior design decisions. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.

中文简介正在准备中。当前显示原文说明。

susomejias/rembric142026年10月16日 更新

Resolve a verified cluster of Rembric issues from causal root to evidence-gated closure. Use after systemic triage identifies a shared root, or when the user asks to attack issues at the root, create a mechanism map, plan a deletion-first fix, or close a fixed/stale issue cluster. Use `diagnose` for a single defect whose reproduction is not yet established.

中文简介正在准备中。当前显示原文说明。

susomejias/rembric142026年10月16日 更新

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

中文简介正在准备中。当前显示原文说明。

susomejias/rembric142026年10月16日 更新

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

中文简介正在准备中。当前显示原文说明。

susomejias/rembric142026年10月16日 更新

查看 susomejias 的全部技能

报告此技能的问题