單元測試
5220 skills in 測試與安全 > 單元測試
tdd-workflow
Use TDD workflow (Red-Green-Refactor-Validate) when creating or modifying any business logic, use cases, or domain code. MANDATORY for all implementations. Apply when user requests new features, bug fixes, or refactoring that involves testable code.
logic-testing
Pure logic and math testing with Vitest. Use for single-point assertions on functions, state transitions, and physics calculations. Auto-apply when editing *.test.ts files (except *Progressions.test.ts).
fix-bug
Intelligently debug and fix bugs with a repro-first approach. Use when the user reports a bug, unexpected behavior, or asks to fix an issue. Establishes reproducible test cases before fixing.
unit-testing
Use when working with unit tests in any capacity - reading, writing, updating, planning, evaluating, or reviewing tests - applies TDD principles with focused test coverage, filtering out redundant tests while ensuring critical paths, edge cases, and state changes are verified
supabase-test-harness
Supabase test harness patterns including local Supabase setup, test user creation via Auth Admin API, RLS testing, migration testing (db_reset), seed sequences, rate limiting, and environment detection. Use when setting up Supabase testing infrastructure, creating test users, troubleshooting Supabase test failures, or implementing RLS validation. Triggers on: supabase test setup, test user creation, supabase local testing, RLS testing, migration testing, supabase test harness, auth test helpers.
testing-strategy-builder
Use this skill when creating comprehensive testing strategies for applications. Provides test planning templates, coverage targets, test case structures, and guidance for unit, integration, E2E, and performance testing. Ensures robust quality assurance across the development lifecycle.
Python Development Standards
This skill should be used when the user asks about "Python code style", "type hints", "structlog logging", "how to log", "code organization", "testing patterns", "error handling", or needs guidance on Python development best practices, project conventions, or coding standards for this project.
moai-playwright-webapp-testing
AI-powered enterprise web application testing orchestrator with Context7 integration, intelligent test generation, visual regression testing, cross-browser coordination, and automated QA workflows for modern web applications
component-testing
Write comprehensive unit tests for Visual Layout Builder using Vitest. Use when creating tests for lib/ functions, schema validation, canvas utilities, or any business logic. Follows AAA pattern and project testing conventions.
testing
Generates test files and testing utilities for Vue 3 applications. Ensures mandatory .spec.ts files are created alongside components, views, stores, directives, and utilities.
automation-testing-expert
自动化测试专家,精通单元测试、集成测试、E2E测试和性能测试。能够设计和实施全面的测试策略,确保软件质量和可靠性。
test-skill
A minimal test skill to verify Skills loading works
registry-cleanup
Automates cleanup of old container images from DigitalOcean registries based on retention policies. Keeps last 10 tags for staging, 30 for production, always preserves :latest.
bun-usage
This skill should be used when working with Bun, a fast JavaScript runtime and toolkit. Use this skill for tasks involving Bun runtime execution, package management, bundling, testing, or when users ask about Bun-specific features, APIs, or best practices. Trigger when users mention "bun" commands, Bun's APIs, or request help with Bun installation, configuration, or usage.
playbook-automator
Use this skill when the user needs help designing, implementing, testing, or troubleshooting automated response playbooks using LimaCharlie's Playbook extension.
project-status-manager
Generates a comprehensive project health report by aggregating task status and QA test results. Provides unified monitoring of process health (tasks) and product health (tests) with risk indicators and trend analysis.
ux-exploration
Transform into UX Explorer role for direct Playwright browser testing. Tests GAO-Dev web interface in greenfield (Docker) or brownfield (local dev) mode. Use when testing UI, finding bugs, or verifying fixes.
frontend-developer
Expert en développement front-end moderne - HTML, CSS, JavaScript, TypeScript, frameworks, testing, performance et tooling
canvas-filmstrip-testing
Visual regression for canvas-rendered matrix progressions. Tests filmstrip strips that show how 2D data evolves visually over time. Auto-apply when editing *Progressions.ts strip definitions or stories with filmstrip components.
testing-test-writing
Write minimal, strategic tests focused on core user flows and critical paths rather than comprehensive coverage. When creating or modifying test files for unit tests, integration tests, or end-to-end tests. When working on test files (*.test.ts, *.spec.ts, __tests__/*). When writing tests for critical user workflows and primary functionality. When testing behavior rather than implementation details. When mocking external dependencies or ensuring fast test execution. When deciding which parts of the codebase require testing coverage.