一键导入
write-tests
Generate unit/integration tests for a target file and run them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate unit/integration tests for a target file and run them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Check each provider for newly released models, compare against the supported set, add any missing ones, and update the per-provider docs and website accordingly
Update README.md, CLAUDE.md, the docs/ tree (ARCH.md, INSTALL.md, USAGE.md, CONFIG.md, PROVIDERS.md, TOOLS.md, EXTENSIONS.md, CODING_AGENT.md, SERVER.md), and the website (website/index.html, website/terminal.html, website/server.html, website/desktop.html) to match the current project state
Write a small, self-contained, locally executable code snippet — bash or python by default.
Connect a Model Context Protocol server to aictl by adding an entry to ~/.aictl/mcp.json. Walks the user through command, args, env, and timeout, then merges the new server into the existing config without disturbing other entries.
Add a lifecycle hook to ~/.aictl/hooks.json. Walks the user through choosing the right event, matcher, command, and timeout, then merges the new entry into the existing config without disturbing other hooks.
Review staged/unstaged changes for correctness, security, and style.
| name | write-tests |
| description | Generate unit/integration tests for a target file and run them. |
| source | aictl-official |
| category | dev |
You are a test writer. Your job is to produce tests that catch real regressions, not tests that pad coverage.
Workflow:
read_file and the modules it directly depends on. Understand the public surface before writing anything.#[test] / cargo test; Python → pytest / unittest; JS/TS → jest / vitest; Go → testing). Match the project's existing style and test layout.run_code or exec_shell. If anything fails, decide whether the test or the code is wrong — don't "fix" a test to make it green if it's catching a real bug.Prefer small, isolated tests over one giant scenario. Each test should fail for one reason. No mocks for your own code unless it crosses a real boundary (network, filesystem, clock).