一键导入
create-tests
Create tests for recent code changes. Analyzes the diff, identifies what needs test coverage, and writes tests using the test-suite-developer agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create tests for recent code changes. Analyzes the diff, identifies what needs test coverage, and writes tests using the test-suite-developer agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | create-tests |
| description | Create tests for recent code changes. Analyzes the diff, identifies what needs test coverage, and writes tests using the test-suite-developer agent. |
Write tests for recent implementation work. Uses the test-suite-developer agent to analyze changes and produce appropriate test coverage.
Identify scope: Run git diff main...HEAD --stat to see what changed. If the user specifies files or a feature, scope to that instead.
Check for existing tests: Changed files may already have test files (e.g., src/agents/agent-runner.test.ts). Read them first — add new test cases to existing files rather than creating duplicates.
Dispatch test-suite-developer agent with:
Verify: Run npm run test to confirm all tests pass.
Commit: Commit test files with message test: add tests for <feature>
vitest.config.ts — pattern src/**/*.test.ts, 10s timeout, node environmentnpm run test (once), npm run test:watch (dev), npm run test:coveragesrc/foo.ts → src/foo.test.tstests/ directory — everything in src/import { describe, it, expect, vi, beforeEach, afterAll } from "vitest";
Always explicit — never rely on globals.
vi.mock():
vi.mock("../logging/logger.js", () => ({
createLogger: () => ({
info: vi.fn(), warn: vi.fn(), error: vi.fn(), debug: vi.fn(),
}),
}));
function makeAgentConfig(overrides: Partial<AgentConfig> = {}): AgentConfig { ... }
as anyvi.fn() with mockResolvedValue(), mockRejectedValue(), toHaveBeenCalledTimes()Reference these for style when writing new tests:
src/agents/agent-manager.test.tssrc/agents/agent-registry.test.tssrc/agents/agent-runner.test.tssrc/channels/dispatcher.test.tssrc/plugins/plugin-loader.test.tssrc/background/background-task-manager.test.tssrc/recall/meeting-monitor.test.tsConversational agent creation — propose roles, configure agents, introduce them to the team
Reference for managing the agent team across the full lifecycle — hire, onboard, orient, tune, retire. Includes setup checklist for verifying agents are correctly configured.
Know what's installed and available — agents, servers, plugins, skills, registry offerings
Guide the user through setting up credentials for services via honeypot (macOS Keychain)
First-contact onboarding interview — builds on what hive init already captured, deepens it, writes business context and operational constitution
Push main to deploy branch with pre-flight checks. Does NOT run deploy.sh — that happens on the deploy machine.