一键导入
test-writer
Generates comprehensive unit tests and integration tests for existing code. Covers happy path, edge cases, and error conditions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates comprehensive unit tests and integration tests for existing code. Covers happy path, edge cases, and error conditions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Enforces a strict 4-phase methodology (Plan, Generate, Review, DoD) for development tickets to ensure high-quality, secure, and production-ready code. Features a continuous YOLO mode loop for autonomous task completion.
Performs thorough code review on files or diffs. Checks for bugs, security issues, performance problems, and code quality.
Systematic debugging assistant. Analyzes errors, traces root causes, and suggests fixes with evidence.
Verifies that NDE-OS agent core code is production-ready with no mocks, no fakes, no TODOs, and matches all R&D comparison claims. Use after implementing any agent core module, before marking a task as complete, or when auditing code quality against the implementation plan.
Explains code in plain language. Breaks down complex logic, traces execution flow, and creates documentation.
Sets up new project scaffolding with proper structure, configuration, and tooling. Supports Rust, TypeScript, Python, and more.
| name | test-writer |
| description | Generates comprehensive unit tests and integration tests for existing code. Covers happy path, edge cases, and error conditions. |
| triggers | ["write tests for","add tests","test this code","generate tests","improve test coverage"] |
Generate thorough, production-quality tests that cover functionality, edge cases, and error handling.
file_write or file_patchshell_exec to verify they passtest_{function}_{scenario}_{expected}#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_function_happy_path() {
let result = function(valid_input);
assert_eq!(result, expected);
}
#[test]
fn test_function_edge_case() {
let result = function(edge_input);
assert!(result.is_ok());
}
}
describe('Module', () => {
it('should handle normal input', () => {
expect(fn(input)).toBe(expected);
});
});
file_read — read source codecode_symbols — find functions to testfile_write / file_patch — write test codeshell_exec — run tests