一键导入
test-gen
Generate tests for code — use when asked to write tests, create a test suite, add test coverage, or generate unit/integration tests for a file or module.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate tests for code — use when asked to write tests, create a test suite, add test coverage, or generate unit/integration tests for a file or module.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Recognizing context pressure before it degrades output quality.
Writing implementation plans — small testable steps, dependency ordering, upfront risk identification.
Evidence before claims, always — run verification commands and confirm output before making any completion or success claims.
Generate Architecture Decision Records — use when asked to document a decision, create an ADR, record why we chose X, or capture architectural rationale.
Generate a structured changelog from git history — use when asked to create a changelog, release notes, or summarize what changed between versions/tags/branches.
How to write pikit workflow YAML files — steps, loops, branches, interpolation.
| name | test-gen |
| description | Generate tests for code — use when asked to write tests, create a test suite, add test coverage, or generate unit/integration tests for a file or module. |
Generate tests for target code, run them, and iterate until they pass.
Read the target files and detect:
If test framework isn't obvious, check package.json, pyproject.toml, go.mod, Cargo.toml.
Run the test command. If tests fail, fix and retry up to 3 times.
## Test Generation Report
**Target:** {target}
**Framework:** {framework}
**Tests created:** {count}
**Status:** all passing / {n} failing
### Files Created
- tests/test_parser.py (12 tests)
### Coverage
- Lines: {line_coverage}%
### Run Command
{test_command}