用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/babarot/oksskolten --skill test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | test |
| description | Run the optimal set of vitest tests and typecheck based on changed files or arguments |
| user_invocable | true |
Run the most relevant tests for this project. Automatically determine scope from context.
$ARGUMENTS can be:
git diff and run only affected testsci → run all CI checks: typecheck + lint + all testsall → run all tests (both server and client)server → run server tests onlyclient → run client tests onlytypecheck → run typecheck onlylint → run lint only$ARGUMENTS is ci, run npx tsc --noEmit, npx eslint src/ server/ shared/, and npx vitest run (all three in parallel)$ARGUMENTS is all, run npx vitest run$ARGUMENTS is server, run npx vitest run --project server$ARGUMENTS is client, run npx vitest run --project client$ARGUMENTS is typecheck, run npx tsc --noEmit$ARGUMENTS is lint, run npx eslint src/ server/ shared/$ARGUMENTS is a specific path or pattern, run npx vitest run $ARGUMENTS$ARGUMENTS is empty, detect which files have changed:
git diff --name-only HEAD and git diff --name-only --staged to find changed filesserver/ → run --project serversrc/ → run --project clientserver/**/*.test.ts (environment: node, DATABASE_URL=:memory:)src/**/*.test.{ts,tsx} (environment: jsdom)npx tsc --noEmit (full project)Run via npx vitest run (not npm test, to avoid mise wrapper issues in some environments).
When running ci, typecheck / lint / vitest are independent — run them in parallel.
After completion, summarize: how many tests passed/failed/skipped, and whether typecheck/lint succeeded.