一键导入
ck-test
Run unit, integration, e2e, and UI tests. Use for test execution, coverage analysis, build verification, visual regression, and QA reports.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run unit, integration, e2e, and UI tests. Use for test execution, coverage analysis, build verification, visual regression, and QA reports.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automate browsers and apps with agent-browser. Use for testing, screenshots, forms, scraping, Browserbase/cloud browsers, and Electron when real Chrome cookies are not required.
Add authentication with Better Auth (TypeScript). Use for email/password, OAuth providers (Google, GitHub), 2FA/MFA, passkeys/WebAuthn, sessions, RBAC, rate limiting.
Target a real Google Chrome profile for browser automation through Chrome DevTools MCP or claude-in-chrome. Provides a chrome-profile CLI, profile discovery, bridge diagnostics, setup playbooks, and the URL-anchor workflow for selecting the correct profile tab.
Review code quality with evidence-based rigor. Supports input modes: pending changes, PR number, commit hash, and codebase scan. Focuses on bugs, regressions, maintainability, reliability, and verification gaps.
Debug systematically with root cause analysis before fixes. Use for bugs, test failures, unexpected behavior, performance issues, call stack tracing, multi-layer validation, log analysis, CI/CD failures, database diagnostics, system investigation.
Plan implementations, design architectures, create technical roadmaps with detailed phases. Use for feature planning, system design, solution architecture, implementation strategy, phase documentation.
| name | ck:test |
| description | Run unit, integration, e2e, and UI tests. Use for test execution, coverage analysis, build verification, visual regression, and QA reports. |
| user-invocable | true |
| when_to_use | Invoke for running or designing validation suites. |
| category | utilities |
| keywords | ["test","unit","integration","e2e","coverage"] |
| argument-hint | [context] OR ui [url] |
| metadata | {"author":"claudekit","version":"1.0.0"} |
Comprehensive testing framework covering code-level testing (unit, integration, e2e), UI/visual testing via browser automation, coverage analysis, and structured QA reporting.
If invoked with context (test scope), proceed with testing. If invoked WITHOUT arguments, use AskUserQuestion to present available test operations:
| Operation | Description |
|---|---|
(default) | Run unit/integration/e2e tests |
ui | Run UI tests on a website |
Present as options via AskUserQuestion with header "Test Operation", question "What would you like to do?".
NEVER IGNORE FAILING TESTS. Fix root causes, not symptoms. No mocks/cheats/tricks to pass builds.
references/test-execution-workflow.md)Execute test suites, analyze results, generate coverage. Supports JS/TS (Jest/Vitest/Mocha), Python (pytest), Go, Rust, Flutter. Includes working process, quality standards, and tool commands.
Load when: Running unit/integration/e2e tests, checking coverage, validating builds
references/ui-testing-workflow.md)Browser-based visual testing via ck:agent-browser, ck:web-testing, ck:chrome-profile, or project-native Playwright/Vitest/k6 commands. Covers screenshots, responsive checks, accessibility audits, form automation, and console error collection.
Load when: Visual regression testing, UI bugs, responsive layout checks, accessibility audits
references/report-format.md)Structured QA report template: test results overview, coverage metrics, failed tests, performance, build status, recommendations.
Load when: Generating test summary reports
Code tests → test-execution-workflow.md
npm test / pytest / go test / cargo test / flutter test
Coverage: npm run test:coverage / pytest --cov
UI tests → ui-testing-workflow.md
Screenshots, responsive, a11y, forms, console errors
Auth: chrome-profile for real user login/cookies, or project-native test setup
Reports → report-format.md
Structured QA summary with metrics & recommendations
ck:agent-browser, ck:web-testing, ck:chrome-profile, or project-native browser testsck:agent-browser for live browser testing without real user cookies; ck:chrome-profile for the user's actual Chrome login state; ck:web-testing or project-native Playwright/Vitest/k6 for repeatable UI testsck:ai-multimodal skill for screenshot analysisck:debug skill when tests reveal bugs requiring investigationck:sequential-thinking skill for complex test failure analysisIMPORTANT: Invoke "/ck:project-organization" skill to organize the outputs.
Use naming pattern from ## Naming section injected by hooks.
When operating as teammate:
TaskList, claim assigned/next unblocked task via TaskUpdateTaskGet before startingTaskUpdate(status: "completed") then SendMessage results to leadFallback: Task tools (TaskList/TaskUpdate/TaskGet) are CLI-only — unavailable in VSCode extension. If they error, use TodoWrite for progress tracking and coordinate via SendMessage only.
Typically follows: /ck:cook (test after implementation), /ck:fix (test after bug fix)
Typically precedes: /ck:code-review (review after tests pass)
Related: /ck:cook (implement then test), /ck:fix (fix then test)