一键导入
write-tests
Write unit tests, integration tests, or E2E tests for code. Use after implementing a feature or when test coverage is needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write unit tests, integration tests, or E2E tests for code. Use after implementing a feature or when test coverage is needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bump or upgrade declared dependency versions in this pnpm workspace (root and packages/* package.json), with supply-chain checks before and after install. Use when the user asks to upgrade, bump, or refresh npm dependencies in manifests—not only the lockfile.
Check license compatibility, data privacy compliance, and AI ethics. Use when adding dependencies, handling user data, or reviewing regulatory requirements.
Deploy the application or manage infrastructure. Handles Docker builds, CI/CD, and deployment workflows.
Design a UI component with specifications for layout, states, interactions, and accessibility. Use when creating new Vue.js components or redesigning existing ones.
Implement a feature or fix a bug following the project's TypeScript patterns and conventions. Use when code changes are needed.
Produce a structured delegation plan for parallel agent execution. Takes a task description or plan output, analyzes dependencies, assigns agents, and groups tasks for parallel execution. Use after /plan-task or when you need to plan how to delegate work across agents.
| name | write-tests |
| description | Write unit tests, integration tests, or E2E tests for code. Use after implementing a feature or when test coverage is needed. |
| argument-hint | [file paths or feature to test] |
Write tests for the following:
$ARGUMENTS
*.test.ts alongside sourcepackages/frontend/src/tests/eval/langsmith/ directoriesimport { describe, it, expect, jest, beforeEach } from "@jest/globals";
describe("FunctionName", () => {
it("should handle normal input", () => {
// Arrange → Act → Assert
});
it("should handle edge cases", () => {
// Empty, null, boundary values
});
it("should handle errors", () => {
// Error paths and exceptions
});
});
pnpm test:agents — Agent testspnpm test:backend — Backend testspnpm test:common — Common package testspnpm test:frontend — E2E tests