What problem does it solve?
Manual test writing is time-consuming, error-prone, and often inconsistent across a large project. This Skill automates the generation of tests, ensuring they adhere to project conventions and best practices, freeing developers from repetitive work and ensuring high code quality.
Core Features & Use Cases
- Intelligent Test Generation: Automatically determines the correct test type (Unit, Playwright E2E, Electron E2E) based on code location within the AgentOS project.
- Convention Enforcement: Generates tests following the project's
Given-When-Then structure, mock/fixture guidelines, and type safety rules, ensuring consistency.
- Use Case: After implementing a new feature in
packages/core/src/service.ts, simply ask the AI to "write tests for service.ts". The Skill will generate a compliant unit test, including necessary mocks, saving you hours of manual setup and review.
Quick Start
The skill is activated by natural language prompts.
Example: Requesting a test for a specific file
"Write tests for src/tool/mcp/service.ts"
Example: General test request
"Generate tests for my recent changes"