用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Marshall-Hallenbeck/dot_files --skill run-unit-tests命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | run-unit-tests |
| description | Run unit-test suites. Auto-detects runner (pytest, Jest, Vitest, cargo, go test). |
| argument-hint | [scope] |
| disable-model-invocation | true |
Runs unit-level suites only. Auto-detects the test runner from project files.
/run-unit-tests [scope]
/run-unit-tests backend
/run-unit-tests frontend
/run-unit-tests all
| Scope | Behavior |
|---|---|
backend | Run backend unit tests only |
frontend | Run frontend unit tests only |
all (default) | Run all detected test suites |
Check for these files to determine which runner(s) to use:
| Indicator | Runner | Command |
|---|---|---|
pyproject.toml, pytest.ini, conftest.py, tests/ | pytest | pytest tests/ -v |
jest.config.*, package.json with jest | Jest | npx jest --verbose --no-coverage |
vitest.config.* | Vitest | npx vitest run |
Cargo.toml | cargo | cargo test |
go.mod | go | go test ./... |
If the project uses uv (check for uv.lock), use uv run pytest instead of bare pytest.
For each selected workspace, run the first matching runner.
# Run all unit tests
pytest tests/ -v 2>&1
# Run specific file
pytest tests/test_module.py -v 2>&1
# Exclude integration tests (if markers are used)
pytest tests/ -v -m "not integration" 2>&1
Check pyproject.toml for [tool.pytest.ini_options] -- the project may define custom markers, test paths, or default args.
npm run jest:unit --if-present
npm run test:unit --if-present
npm run jest --if-present
npx jest --verbose --no-coverage 2>&1