Writing Probitas scenarios. MUST BE USED when writing/editing E2E tests, creating scenarios, or working with *.probitas.ts files.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
Delegate to the scenario-writer agent:
"I'll use the scenario-writer agent to write this test."
Then describe the test requirements. Claude Code will automatically invoke the agent.
Example:
I'll use the scenario-writer agent to write an E2E test for the user
authentication API that:
- Tests login with valid credentials
- Tests login with invalid credentials
probitas.jsonc → run /probitas-init first/probitas-run to verifyOnly for small fixes. For new tests, always use the agent.
Independent steps → separate scenarios
// ❌ BAD
scenario("Tests")
.step("A", ...) // no ctx.previous
.step("B", ...) // no ctx.previous
.build();
// ✅ GOOD
export default [
scenario("A").step(...).build(),
scenario("B").step(...).build(),
];
NO if/throw. Use expect() only.
// ❌ FORBIDDEN
if (res.statusCode !== 0) throw new Error("Failed");
// ✅ CORRECT
expect(res).toBeOk().toHaveDataMatching({ statusCode: 0 });
export default + .build()expect() only - NO if/throw