Skip to main content

unit-test-strategy

Use when working on unit test design, missing test analysis, mocks, fixtures, and behavior coverage. Focus on meaningful assertions, boundary cases, maintainability, and regression prevention.

Aller à l'installation

Informations de source

Dépôt
Mr-Q526/TeamCC-Platform
Dernière activité de la source
15 avril 2026 à 03:16
Langue détectée de SKILL.md
anglais
Étoiles
7
Forks
1

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
4 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
schemaVersion
2026-04-11T00:00:00.000Z
skillId
review/unit-test-strategy
name
unit-test-strategy
displayName
Unit Test Strategy
description
Use when working on unit test design, missing test analysis, mocks, fixtures, and behavior coverage. Focus on meaningful assertions, boundary cases, maintainability, and regression prevention.
aliases
["unit-test-strategy","Unit Test Strategy","unitteststrategy","单元测试","unit test","验证","unit","strategy","代码审查","code review","评审","服务端","server side"]
version
0.1.0
sourceHash
sha256:9482ffdc2596f6ed6eefc2299b9e4b034c6e18343f6e2e868b63865ee9fc587c
domain
review
departmentTags
["backend-platform"]
sceneTags
["test","review"]
# Unit Test Strategy Use this skill when the task involves unit test design, missing test analysis, mocks, fixtures, and behavior coverage. Goal: produce reliable engineering guidance and implementation steps focused on meaningful assertions, boundary cases, maintainability, and regression prevention. ## Working model 1. Identify the affected system, data, users, and failure modes. 2. Define invariants, inputs, outputs, ownership, and rollback needs. 3. Prefer small, auditable changes with explicit validation. 4. Call out security, performance, concurrency, and data-loss risks when relevant. 5. Finish with concrete verification steps and residual risks. ## Rules - Ground recommendations in the current codebase or runtime evidence. - Prefer explicit contracts, typed boundaries, and defensive validation. - Do not hide operational concerns behind generic best practices. - Include negative cases, edge cases, and failure behavior. - For review tasks, list findings first with file and line references when possible. - For test or performance tasks, define the workload, success criteria, and measurement method. ## Checklist - Are assumptions and ownership boundaries explicit? - Are risky changes reversible or safely deployable? - Are observability and diagnostics sufficient for production issues? - Are tests or validation steps targeted to the actual risk? - Are security and data-integrity concerns addressed?
Voir sur GitHub