本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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/rembric132026年10月12日 更新

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/rembric132026年10月12日 更新

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/rembric132026年10月12日 更新

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/rembric132026年10月12日 更新

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/rembric132026年10月12日 更新

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/rembric132026年10月12日 更新

susomejias のスキルをすべて見る

このスキルの問題を報告する