用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/coreindustries/core-ai-template --skill test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | test |
| description | Run tests with coverage reporting and quality gates. |
Run tests with coverage reporting and quality gates.
/test [target] [--coverage] [--watch] [--failed] [--verbose]
target: Specific test file, directory, or test name (optional)--coverage: Generate coverage report (default: true)--watch: Watch mode for continuous testing--failed: Re-run only failed tests--verbose: Verbose outputWhen this skill is invoked:
Autonomy:
Thoroughness:
prd/00_technology.md for project-specific commands:
{lint_command} # Linting
{type_check_command} # Type checking
{test_coverage_command} # Tests with coverage
Problem-Solving:
Presentation:
Read prd/00_technology.md to find the correct test commands
Run tests with coverage (example patterns):
# See prd/00_technology.md for your specific command
{test_runner} tests/ --coverage
Report results:
==================== Test Results ====================
✅ Passed: 42
❌ Failed: 0
⏭️ Skipped: 2
⏱️ Duration: 3.45s
==================== Coverage ====================
Name Stmts Miss Cover
-----------------------------------------------------
src/{project}/__init__ 2 0 100%
src/{project}/main 45 0 100%
...
-----------------------------------------------------
TOTAL 523 0 100%
✅ Coverage requirement met
# Test a specific file
/test tests/unit/test_config
# Test a specific class/describe
/test tests/unit/test_api::TestHealthCheck
# Test a specific function/it
/test tests/unit/test_api::test_health_check
# Test a directory
/test tests/integration/
If coverage < minimum:
⚠️ Coverage below requirement: 95% (required: {min_coverage}%)
Missing coverage in:
- src/{project}/services/user:45-52 (error handling)
- src/{project}/api/auth:78-85 (edge case)
Suggested tests to add:
1. Test error handling in UserService.create()
2. Test authentication timeout scenario
Generate detailed report if available in your stack
When running integration tests:
The test skill enforces these quality gates (see prd/00_technology.md for specific values):
| Gate | Requirement | Action on Failure |
|---|---|---|
| Coverage | Minimum % | Block merge |
| All tests pass | 0 failures | Block merge |
| No skipped (without reason) | Documented skips only | Warn |
| Performance | No test > configured limit | Warn |
$ /test
🧪 Running tests...
tests/unit/test_config::TestSettings::test_default_values PASSED
tests/unit/test_config::TestSettings::test_is_development PASSED
tests/unit/test_api::test_health_check PASSED
tests/unit/test_api::test_root_endpoint PASSED
==================== 4 passed in 0.45s ====================
📊 Coverage: 100% ✅