Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
中文简介正在准备中。当前显示原文说明。
Design and implement comprehensive testing strategies. Use when setting up tests, choosing test types, implementing TDD, or improving code quality. Covers unit tests, integration tests, E2E tests, test-driven development, and testing best practices.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Test the right things at the right level — write tests that give you confidence to ship.
After reading the methodology below, read the reference matching your surface's Languages column in the surface stack map (.agents/instructions/tech-stack.md):
| Language | Reference |
|---|---|
| TypeScript / JavaScript | references/typescript.md |
| Python | references/python.md |
| Go | references/go.md |
| Rust | references/rust.md |
The Testing Pyramid: 70% unit tests, 20% integration tests, 10% E2E tests.
Tests should be:
/\
/ \ E2E Tests (10%)
/----\ - Slow, brittle, expensive
/ \ - Test critical user journeys
/--------\ - Example: "User can complete checkout"
/ \
/------------\ Integration Tests (20%)
/ \ - Medium speed, test components together
/----------------\ - Example: "API endpoint returns correct data"
/ \
/--------------------\ Unit Tests (70%)
/______________________\ - Fast, isolated, test functions/components
- Example: "calculateTotal returns sum"
Test individual functions, components, or classes in isolation.
Good candidates:
Skip:
✅ Do:
❌ Don't:
Test multiple units working together — typically API routes, database operations, or service integrations.
Good candidates:
✅ Do:
❌ Don't:
Test complete user journeys through the actual UI.
Good candidates:
Skip:
✅ Do:
❌ Don't:
Good for:
Skip for:
✅ Do:
❌ Don't:
Assertions that prove nothing about correctness:
Every test must assert:
High priority (90%+ coverage):
Medium priority (70%+):
Low priority (okay to skip):
Write tests that properly wait for async operations to complete before asserting. Use your framework's async test utilities.
Mock dependencies to throw errors, then assert your code handles them correctly — shows the right error message, returns the right status code, logs appropriately.
Fill form fields programmatically, submit, and assert both the submission data and any validation errors.
Tests co-locate with source files:
source-file.ext → source-file.test.ext (unit tests)
route-handler.ext → route-handler.test.ext (integration tests)
e2e/ → feature-name.e2e.ext (E2E tests)
*.test.* or *.spec.**.e2e.* or *.spec.* (in tests/e2e/)Good tests give you confidence to ship. ✅
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
中文简介正在准备中。当前显示原文说明。
Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.
中文简介正在准备中。当前显示原文说明。
Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.
中文简介正在准备中。当前显示原文说明。
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
中文简介正在准备中。当前显示原文说明。
Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.
中文简介正在准备中。当前显示原文说明。
Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).
中文简介正在准备中。当前显示原文说明。