probitas-write
Writing Probitas scenarios. MUST BE USED when writing/editing E2E tests, creating scenarios, or working with *.probitas.ts files.
When & Why to Use This Skill
This Claude skill automates the creation and maintenance of End-to-End (E2E) test scenarios specifically for the Probitas framework. It streamlines the testing lifecycle by translating natural language requirements into structured *.probitas.ts files, identifying correct assertion methods, and performing automated verification to ensure high-quality software delivery.
Use Cases
- Automated E2E Test Generation: Quickly generate comprehensive end-to-end test scripts from natural language descriptions, such as testing user authentication, registration flows, or complex API interactions.
- Legacy Test Maintenance: Efficiently update and refactor existing *.probitas.ts files to align with updated UI components, modified business logic, or new interface requirements.
- Cross-Language Requirement Mapping: Seamlessly translate non-English user stories and technical requirements into standardized English test scenarios for consistent global development standards.
- Assertion Discovery and Validation: Automatically identify the correct 'expect' methods for specific interfaces and run validation checks to ensure test reliability and accuracy before deployment.
| name | probitas-write |
|---|---|
| description | Writing Probitas scenarios. MUST BE USED when writing/editing E2E tests, creating scenarios, or working with *.probitas.ts files. |
Instructions
ALWAYS delegate to the scenario-writer agent using the Task tool.
CRITICAL - Language:
- ALWAYS translate user requirements to English before invoking the agent
- Provide clear, concise English prompts for optimal agent performance
Steps:
- Translate user requirements to English
- Invoke Task tool with
subagent_type: "probitas:scenario-writer" - Provide English prompt with test requirements
Example:
User asks: "ユーザー認証APIのテストを書いて"
Your response:
I'll use the probitas:scenario-writer agent to write this Probitas test scenario.
Then invoke Task tool:
subagent_type: "probitas:scenario-writer"prompt: "Write an E2E test for the user authentication API that:- Tests login with valid credentials (should succeed)
- Tests login with invalid credentials (should fail with appropriate error)"
description: "Write auth test scenario"
Workflow
- If no
probitas.jsonc→ run/probitas:probitas-initfirst - Invoke
probitas:scenario-writeragent with English prompt - Agent will use
/probitas:probitas-expect-methods InterfaceNameto find correct expect methods before writing assertions - After completion → run
/probitas:probitas-checkto verify - If needed → run
/probitas:probitas-runto test
Note: All coding rules and assertion guidelines are defined in the scenario-writer agent itself.