一键导入
testify
Write and improve tests — reuse existing patterns, ensure consistency, and maintain quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write and improve tests — reuse existing patterns, ensure consistency, and maintain quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Ruthlessly tear apart code design — naming, abstractions, coupling, complexity, and everything else.
Generate Mermaid diagrams in the README to visualise architecture, flows, or relationships from the codebase.
Analyse test coverage gaps and report uncovered code before making changes.
Run tests, fix failures, and re-run until the suite passes.
Isolate a function or code block into a self-contained, runnable script for study and manual testing.
Fix grammar and improve writing while preserving the author's original voice and style.
| name | testify |
| description | Write and improve tests — reuse existing patterns, ensure consistency, and maintain quality. |
| argument-hint | [files] [instructions] |
| user-invocable | true |
| disable-model-invocation | false |
Write new tests or improve existing ones, always reusing the project's established testing patterns, style of writing, mocks, and fixtures.
Files and instructions: $ARGUMENTS
beforeEach) over shared setup (beforeAll) unless the data is truly statictoBe(expected), assertEqual(result, expected)) over vague ones (toBeTruthy, assert result)beforeAll when beforeEach is needed, missing await on async assertions, wrong matcher usage)The arguments are free-form and flexible. They may contain:
@service.test.ts, test_handler.py, test_utils.py, *_test.go@auth.ts write tests for this, src/services/Parse the arguments to identify which files to work on and what additional instructions apply. When instructions reference related files (e.g. other test files, test helpers), follow them to identify and include those files as well.
When no arguments are provided, this skill is being invoked by the model — apply the principles above to whatever test code is currently being written.
/testify @service.test.ts — improve an existing test file/testify @auth.ts write tests for this — write new tests for a source file/testify tests/unit/ — improve all tests in a directory/testify @handler.test.ts align mocking patterns with tests/unit/auth.test.ts — match existing patterns/testify @api.test.py focus on mocking consistency and test isolation — targeted improvement/testify write tests for the functions I just added — cover recent work