一键导入
run-tests
Run project tests and report results with failure diagnostics and fix suggestions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run project tests and report results with failure diagnostics and fix suggestions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill to generate well-branded interfaces and assets for AGENT-33, either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.
Scan code for security vulnerabilities and unsafe patterns with remediation guidance.
Review a code diff for correctness, logic errors, and style issues.
Propose targeted refactoring and readability improvements for reviewed code.
Diagnose and explain error messages with root cause analysis and actionable fix steps.
Assist with common git operations including branching, committing, and pull requests.
| name | run-tests |
| version | 1.0.0 |
| description | Run project tests and report results with failure diagnostics and fix suggestions. |
| allowed_tools | ["shell","file_ops"] |
| tags | ["testing","developer","ci"] |
Execute the project's test suite, interpret results, and provide diagnostics for any failures. Support common test frameworks: pytest (Python), Jest (JS/TS), Go test, and cargo test (Rust).
Detect the test framework by checking for:
pyproject.toml or pytest.ini → pytestpackage.json with "jest" key → Jestgo.mod → go testCargo.toml → cargo test
If multiple frameworks are detected, ask the user which to run or run all.Show the exact command before running: shell: <command>
Run the test command. Standard commands:
python -m pytest <args> -qnpm test -- --cigo test ./... -vcargo testCapture both stdout and stderr.
Parse the output:
For each failing test, provide:
Report a final summary: overall pass/fail status, counts, and total duration.
## Test Run: <project/scope>
Command: `<exact command run>`
### Results
Status: PASSED | FAILED
Passed: N Failed: N Skipped: N Duration: Xs
### Failures
#### Test: test_module::test_function_name
Type: AssertionError
Message: assert 42 == 43
Likely cause: The function returns the cached value from a previous test state.
Fix: Ensure test isolation by resetting the cache in setUp/teardown.
### Summary
<Overall assessment: all green, or N failures requiring attention>