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".
中文简介正在准备中。当前显示原文说明。
Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
This skill ensures all code development follows TDD principles with comprehensive test coverage. It is stack-agnostic — after reading the methodology below, read the language reference matching your surface's Languages column.
After reading the methodology below, read the reference matching your surface's Languages column in the surface stack map (.claude/instructions/tech-stack.md):
| Language | Reference |
|---|---|
| TypeScript / JavaScript | references/typescript.md |
| Python | references/python.md |
| Go | references/go.md |
| Rust | references/rust.md |
ALWAYS write tests first, then implement code to make tests pass.
| Type | Scope | What to Test | Speed |
|---|---|---|---|
| Unit | Individual functions, pure logic, utilities | Input/output, edge cases, error paths | < 50ms each |
| Integration | API endpoints, DB operations, service interactions | Request/response, validation, error handling | < 500ms each |
| E2E | Full user flows, browser automation | Critical paths, complete workflows, UI interactions | < 30s each |
As a [role], I want to [action], so that [benefit]
Example:
As a user, I want to search for markets semantically,
so that I can find relevant markets even without exact keywords.
For each user journey, identify test cases covering:
Write these as test stubs that describe the behavior but don't implement yet. See language references for syntax.
Run the test suite. All new tests should fail — this is the Red phase. If any pass before you've written implementation, your test isn't testing what you think it is.
Write minimal code to make tests pass. Don't over-engineer. Don't add features the tests don't require.
"Minimal" means correct, not shallow. The implementation must be production-grade — proper error handling, type safety, input validation. "Minimal" means don't add features beyond what the tests verify, not "write the least amount of code possible regardless of quality."
Run the test suite. All tests should now pass — this is the Green phase.
Improve code quality while keeping tests green:
Run tests after every refactor to ensure nothing breaks.
Run coverage report. Verify 80%+ coverage achieved. Identify untested paths and add tests as needed.
Tests live next to their 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)
expect(result).toBeDefined() — proves nothing about correctnessexpect(result).toBeTruthy() — empty arrays are truthyexpect(response.status).toBe(200) alone — doesn't verify response bodyEvery test must assert:
❌ Don't test internal state, private methods, or how code achieves the result. ✅ Test what the user/caller observes — return values, rendered output, API responses.
❌ CSS class selectors, nth-child, layout-dependent selectors. ✅ Semantic selectors: roles, labels, test IDs, visible text.
❌ Tests that depend on execution order or shared state from previous tests. ✅ Each test creates its own data and cleans up after itself.
❌ Testing that React renders a component, or that Express routes requests. ✅ Testing YOUR logic — the behavior your code adds on top of the framework.
BOUNDARY: trackingRemember: Tests are not optional. They are the safety net that enables confident refactoring, rapid development, and production reliability.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
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).
中文简介正在准备中。当前显示原文说明。