單元測試
5220 skills in 測試與安全 > 單元測試
requirements-writing
Write clear, testable requirements using User Stories and Gherkin scenarios. Capture functional and non-functional requirements with proper acceptance criteria. Use when defining new features or documenting system behavior.
refactoring
Systematic refactoring with small-step discipline. Use when user says 'refactor', 'clean up', 'restructure', 'extract', 'rename', 'simplify', or mentions code smells. Enforces one change → test → commit cycle. For structural improvements, NOT style/formatting (use /lint). NOT for adding features or fixing bugs.
testing-server-actions
Teaches testing Server Actions in isolation in React 19. Use when testing Server Actions, form handling, or server-side logic.
openrouter
Use this skill when the user wants to call different LLM models through OpenRouter's unified API, compare model responses, track costs and response times, or find the best model for a task. Triggers include requests to test models, benchmark performance, use specific providers (OpenAI, Anthropic, Google, etc.), or optimize for speed/cost.
test-generator
WHEN: Test code generation, unit/integration/E2E test writing, component/hook/utility testsWHAT: Framework detection + Jest/Vitest/RTL/Playwright templates + Happy Path/Edge/Error case testsWHEN NOT: Coverage analysis → coverage-analyzer, Test quality review → code-reviewer
curriculum-review-accessibility
Validate WCAG 2.1 compliance, screen reader compatibility, and Universal Design for Learning (UDL) principles implementation throughout curriculum materials. Use when checking accessibility, validating UDL, or ensuring compliance. Activates on "accessibility check", "WCAG validation", "UDL review", or "screen reader test".
probitas-run
Running and validating Probitas scenarios. Use when executing tests, running scenarios, or debugging test failures.
component-testing-mobile
Jest and React Native Testing Library patterns. Use when writing component tests.
test-infrastructure
Core test infrastructure patterns for monorepo Vitest setup including global configuration, browser API polyfills, mocking patterns, test cleanup, directory structure, and coverage philosophy. Use when setting up Vitest test infrastructure, configuring test environments, implementing test utilities, or establishing test standards. Triggers on: vitest setup, test configuration, test infrastructure setup, test mocking patterns, test cleanup, test standards, monorepo testing.
hft-quant-expert
Quantitative trading expertise for DeFi and crypto derivatives. Use when building trading strategies, signals, risk management. Triggers on signal, backtest, alpha, sharpe, volatility, correlation, position size, risk.
persona-journey
Comprehensive persona journey testing and UX verification across all personas
gemini-cli
Use Gemini CLI for web search powered by Google. Triggers on search requests where Google's search quality matters. Use for "google this", "search for...", "find information about...", "what's the latest on...".
load-testing
Create and manage K6 load tests for REST and GraphQL APIs. Use when creating load tests, writing K6 scripts, testing API performance, debugging load test failures, or setting up performance monitoring. Covers REST endpoints, GraphQL operations, data generation, IRI handling, configuration patterns, and performance troubleshooting.
aldoa-e2e-tests
Comprehensive guide for writing Playwright E2E tests in the Aldoa codebase. Use when creating new test files, debugging failing tests, or refactoring existing tests. Covers authentication patterns, helper functions, Semantic UI/React Select interactions, data generation strategies, and common testing scenarios.
trust-principles
TRUST quality principles (Test-first, Readable, Unified, Secured, Trackable) ensuring production-ready code. Use when implementing, reviewing, testing, or evaluating code quality across all development phases.
seclists-passwords-curated
Top password lists for authorized security testing: common passwords, darkweb leaks, worst passwords. Curated essentials (<10MB).
testing-next-stack
Scaffolds comprehensive testing setup for Next.js applications including Vitest unit tests, React Testing Library component tests, and Playwright E2E flows with accessibility testing via axe-core. This skill should be used when setting up test infrastructure, generating test files, creating test utilities, adding accessibility checks, or configuring testing frameworks for Next.js projects. Trigger terms include setup testing, scaffold tests, vitest, RTL, playwright, e2e tests, component tests, unit tests, accessibility testing, a11y tests, axe-core, test configuration.
debug-issues
Debug bugs and errors using intel-first approach with systematic root cause analysis. Use proactively when errors occur, tests fail, or unexpected behavior appears. MUST trace from symptom to root cause with CoD^Σ reasoning.
testing-strategies
Comprehensive testing approaches for reliable software
typo-injector
Introduces spelling errors into text at a specified rate. Use when you need to corrupt text with typos for testing or analysis.