بنقرة واحدة
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).