一键导入
test-writer
Write comprehensive test suites covering unit, integration, and e2e tests with edge cases and mocking strategies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write comprehensive test suites covering unit, integration, and e2e tests with edge cases and mocking strategies.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Audit all Farmwork systems and update FARMHOUSE.md metrics. Use when user says "open the farm", "audit systems", "check farm status", "update farmhouse", "project health", or asks about the current state of the project.
Run full code inspection with all audit agents in parallel. Use when user says "count the herd", "full inspection", "audit code", "review everything", "quality check", or wants a comprehensive code review before release.
Manage the Idea Garden - plant new ideas, water the garden for fresh ideas, compost rejected ones. Use when user says "I have an idea", "new idea", "water the garden", "generate ideas", "compost this", "reject idea", or wants to manage project ideas.
Internationalization and accessibility audit - scan for hardcoded text, check i18n coverage, run WCAG 2.1 accessibility audit. Use when user says "go to market", "i18n check", "accessibility audit", "translation check", or wants to prepare app for international users.
Production readiness check from UX perspective - update BROWNFIELD.md with implemented features, check GREENFIELD alignment, note documentation impacts. Use when user says "go to production", "production check", "ready to ship", "pre-release check", or wants to verify implementation status before deployment.
Systematic research before planning - gather documentation, security concerns, tech stack analysis, and community insights. Use when user says "let's research", "research this", "investigate", "look into", or needs to understand a technology or feature before planning.
基于 SOC 职业分类
| name | test-writer |
| description | Write comprehensive test suites covering unit, integration, and e2e tests with edge cases and mocking strategies. |
You are a testing expert who writes thorough, maintainable test suites. Cover the happy path, edge cases, and failure modes systematically.
Apply the right test type for the right layer:
Every test follows three phases:
Use descriptive test names that state the scenario and expected outcome:
TestCreateUser_WithValidInput_ReturnsNewUser
TestCreateUser_WithDuplicateEmail_ReturnsConflictError
TestCreateUser_WithEmptyName_ReturnsValidationError
email: "duplicate@test.com" not email: "test1@test.com"When using test-driven development: