單元測試
5220 skills in 測試與安全 > 單元測試
testing
Run tests before and after changes. Only add tests for complex logic, not boilerplate. Database tests matter most.
unit-test
Guide for writing unit tests with Vitest. Use when writing tests for service functions, pure logic, or webhook handlers. Covers TDD Red-Green-Refactor cycle, Arrange-Act-Assert pattern, anti-patterns, pure function testing, and mocking at boundaries.
test-orchestrator
Set up testing infrastructure and strategy for a project. This skill should be used when a project is ready for testing setup, including test framework configuration, initial test scaffolding, and documentation of testing approach. Primarily a setup skill with guidance for ongoing testing.
adversarial-examples
Generate adversarial inputs, edge cases, and boundary test payloads for stress-testing LLM robustness
ca-django-tests
ALWAYS use this skill proactively for Consumer Affairs Django repositories (located in ../ca/ directory) when ANY of these occur - (1) User mentions coverage, codecov, test coverage, partial coverage, branch coverage, or uncovered lines/code (2) User asks to write tests, add tests, run tests, or fix test failures (3) User asks to implement features, fix bugs, or modify code in CA repos and tests are needed (4) User provides a file path containing 'test' or 'tests' in CA repos (5) After writing new code in CA repos that needs test coverage. This skill handles Django test execution using the 'ca magictest' command and ensures 100% code coverage for CI requirements.
ios-restart-app
Restart the iOS app on connected iPhone without rebuilding. Terminates and relaunches the app remotely. Use when testing changes that don't require rebuild, or refreshing app state.
skill-documentarian
Documentation expert for Claude Skills showcase website. Maintains skill-to-website sync, manages tag taxonomy and badges, creates blog-style artifacts, and preserves multi-skill collaborations for posterity. Activate on 'document', 'sync skills', 'create artifact', 'validate skills', 'add tags', 'tag management', 'badge', 'metadata'. NOT for code implementation (use domain skills), design creation (use web-design-expert), testing (use test-automator), or project planning (use orchestrator).
python-conventions
Work on Python experiments in packages/python_viterbo. Use for layout conventions, stage entrypoints, lint/test commands, and asset/plot handling.
java-best-practices
Comprehensive Java development best practices covering SOLID principles, DRY, Clean Code, Java-specific patterns (Optional, immutability, streams, lambdas), exception handling, collections, concurrency, testing with JUnit 5 and Mockito, code organization, performance optimization, and common anti-patterns. Essential reference for uncle-duke-java agent during code reviews and architecture guidance.
ui-creator
This skill should be used when users want to create new UIs, improve existing UIs, compare UI variations (A/B testing), or build component libraries. Combines visual design principles with code implementation (React/Vue) and Playwright-based evaluation to objectively assess UI quality through accessibility audits, performance metrics, and visual regression testing. Use when tasks involve UI design, component creation, accessibility testing, or design system development.
probitas-write
Writing Probitas scenarios. MUST BE USED when writing/editing E2E tests, creating scenarios, or working with *.probitas.ts files.
change-contract-implementer
This skill should be used when the user asks to "implement a contract", "implement contract X", "fulfill this change contract", "execute contract at path", "implement the definition of done", or wants to autonomously implement requirements from a Change Contract file. Produces working implementations with proof of compliance through tests and verification reports.
testing-xunit
Use when writing unit tests, integration tests, or setting up test projects in C#. Covers xUnit patterns, Moq mocking, Bogus test data generation, and Alba integration testing.
webapp-testing
Toolkit for testing local web applications using Playwright. Use when verifying frontend functionality, debugging UI behavior, capturing browser screenshots, or viewing browser logs.
direct-response-copy-therapy
Write CRPO-compliant therapy copy that connects and converts without pressure tactics. Use when writing service pages, CTAs, hero sections, or any persuasive therapy content. Takes core direct-response principles and applies them to therapy context with 40% tone reduction. NO outcome guarantees, NO urgency tactics, NO testimonials. Maintains empathetic, professional tone while driving action through trust-building and value demonstration. References core direct-response-copy skill but filters all output through CRPO compliance lens.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tdd-workflow
Automatically invoked when user wants to develop new features using Test-Driven Development.Trigger keywords: "new feature", "add API", "implement", "create endpoint", "TDD","test-driven", "新功能", "新增 API", "實作"This skill enforces strict TDD workflow: RED → GREEN → REFACTORUses subagents to maintain clean context and ensure quality.
gitprcreate
Create comprehensive pull requests with auto-generated summaries, test plans, and proper Carbon ACX formatting.
xcode-file-manager
Add Swift files to the AIQ Xcode project. Use when creating new Swift files (views, view models, services, models, tests) that need to be added to the Xcode project and build targets.
debugging
Four-phase debugging framework that ensures root cause identification before fixes. Use when encountering bugs, test failures, unexpected behavior, or when previous fix attempts failed. Enforces investigate-first discipline ('debug this', 'fix this error', 'test is failing', 'not working').