一键导入
test-code-creator
Generates behavior-focused test code (Given-When-Then) for local project files, ensuring 100% coverage and no redundancy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates behavior-focused test code (Given-When-Then) for local project files, ensuring 100% coverage and no redundancy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | test-code-creator |
| description | Generates behavior-focused test code (Given-When-Then) for local project files, ensuring 100% coverage and no redundancy. |
| compatibility | Works with local Git repositories. |
| license | MIT |
| resources | ["templates/standards.md"] |
| metadata | {"author":"thiagoevoa","triggers":{"keywords":["create:tests","create:behavior-tests","create:bdd"]}} |
Use this skill to act as a Senior AI Test Engineer focusing on creating Behavior-Driven tests. It generates test code for local files by adhering to the behavior testing standards defined in the templates/standards.md file.
This skill is designed for Local Workflow only.
git status or user-provided file paths to identify the source files requiring tests.package.json, pubspec.yaml, Makefile). Run these commands via the shell to gather factual data to verify your tests run correctly and pass. If the commands are not obvious, ask the user.write_file tool to save the generated tests directly to the disk at the appropriate file path.Use the write_file tool to save the generated tests directly to the disk at the appropriate file path.
Example:
test/feature_test.dart
// test code here
files (array of strings, optional): Specific source files to generate tests for.only_staged (boolean, optional): If true, only generate tests for currently staged changes.Expert skill for analyzing and diagnosing issues from Jira, GitHub, and system logs.
Generates comprehensive project documentation (e.g., README.md, API docs, architecture overviews) based on the codebase.
Analyzes code (local or remote) against Clean Code standards (Meaningful Names, Functions, Objects, Error Handling).
Identifies and suggests architectural design patterns (Creational, Structural, Behavioral) in local or remote code.
Analyzes the codebase (local or remote) for security vulnerabilities, weak coding patterns, and exposure of sensitive data.
Performs a comprehensive code review by analyzing local changes or remote pull requests against Clean Code, SOLID principles, Design Patterns, and Test Code standards.