一键导入
run-tests
Run integration or unit tests scoped to a domain, file, or category. Faster feedback than `just test`. Reports failures and points to /debug-failing-test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run integration or unit tests scoped to a domain, file, or category. Faster feedback than `just test`. Reports failures and points to /debug-failing-test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a complete REST endpoint from command to controller route. Use when building new API endpoints.
Summarize the API interface changes made during THIS session for the frontend, then optionally spawn an agent to implement them in the frontend repo. Use after changing endpoints, request/response DTOs, or auth.
One-shot guided session — prunes unused code, scaffolds new entities/endpoints, updates project identity config, and replaces the init migration for a specific project.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"
Implement a change with a pipeline scaled to its complexity. Single entry point for all code changes — auto-detects effort or accepts small|mid|tuff override.
Run a Linear task end-to-end — creates an isolated tmux session + worktree, starts a Claude agent to implement it, opens a PR, and watches for review feedback automatically.
| name | run-tests |
| description | Run integration or unit tests scoped to a domain, file, or category. Faster feedback than `just test`. Reports failures and points to /debug-failing-test. |
| argument-hint | <domain | path | category> [test-name-pattern] |
Run a focused subset of the test suite. Use after editing handlers, controllers, or events to get feedback in seconds instead of running the full suite.
$0 — domain name, relative path, or category. See resolution table below.$1 (optional) — test-name pattern passed to pytest -k. Example: signup_returns_user_data.| Argument | Resolves to |
|---|---|
users | tests/integration/api/v1/users/ |
auth | tests/integration/api/v1/auth/ |
auth/login | tests/integration/api/v1/auth/test_login.py |
roles | tests/integration/api/v1/roles/ |
events/auth | tests/integration/events/v1/auth/ |
events/auth/user_verification_requested | tests/integration/events/v1/auth/test_user_verification_requested.py |
unit | tests/unit/ |
adapters | tests/integration/adapters/ |
all | tests/integration/ |
If the argument starts with tests/, treat it as an explicit path and pass through unchanged.
If the resolved path doesn't exist, list available domains and stop:
!ls tests/integration/api/v1/ 2>/dev/null && echo "--- events ---" && ls tests/integration/events/v1/ 2>/dev/null
Integration tests need Docker (testcontainers spawn postgres + redis):
!docker info >/dev/null 2>&1 && echo "docker: ok" || echo "docker: NOT RUNNING — start Docker Desktop before integration tests"
If Docker is down and the target is integration, stop and tell the user. Unit and adapter tests can sometimes run without Docker; defer to pytest's own error.
uv run pytest <resolved-path> -xvs --tb=short [-k <pattern>]
Flags:
-x stop on first failure (fail fast for tighter feedback)-v verbose test names-s don't capture stdout (so prints during debugging are visible)--tb=short compact tracebacksWhy bypass nox: nox re-runs uv sync --group=dev --frozen every invocation. For iterative debugging that's slow. The dev group is normally already in sync — if pytest is missing, suggest uv sync --group=dev.
Report a one-liner:
✓ N tests passed in {scope} ({duration})
run /debug-failing-test {failing-test-path} for guided diagnosis./debug-failing-test.just test (whole integration suite, all Python versions per nox).postgres_url session fixture; the full suite covers them./run-tests users # all user endpoints
/run-tests auth/login # one file
/run-tests auth login_wrong_password # one test pattern in auth/
/run-tests events/auth # all auth event handlers
/run-tests unit # pure logic tests, no Docker