agents/skills/effect-testing/SKILL.md
Use when writing tests for Effect.ts code
npx skillsauth add nounder/dotfiles effect-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
test.it("should fail with ValidationError", async () => {
const program = Effect.gen(function* () {
const result = yield* Effect.exit(operation("invalid"))
if (result._tag === "Failure") {
test.expect(ValidationError.isValidationError(result.cause)).toBe(true)
const error = result.cause as ValidationError
test.expect(error.field).toBe("input")
} else {
test.fail("Expected operation to fail")
}
})
await Effect.runPromise(program)
})
import * as TestClock from "effect/TestClock"
test.it("should handle delay", async () => {
const program = Effect.gen(function* () {
const fiber = yield* Effect.fork(
Effect.gen(function* () {
yield* Effect.sleep("5 seconds")
return "completed"
}),
)
// Advance test clock (not wall clock)
yield* TestClock.adjust("5 seconds")
const result = yield* Effect.Fiber.join(fiber)
return result
})
const result = await Effect.runPromise(program)
test.expect(result).toBe("completed")
})
tsc # Type check
bun test <file> # Test specific file
bun test # All tests
development
Use when writing Zig code. Contains Zig 0.15 API changes and patterns.
devops
Generate a game-ready 3D asset by running the local AI pipeline sequentially: Fooocus (SDXL text-to-image) -> Hunyuan3D-2 (image-to-textured-GLB) -> optional Blender FBX convert + Unreal import. Use when the user wants to create/generate a 3D model, mesh, or racer for the Unreal train-racer project from a text prompt or a photo. Covers launching both local Gradio services, generating, and wiring the result into Unreal.
testing
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
development
Guides working with exe.dev VMs. Use when the user mentions exe.dev, exe VMs, *.exe.xyz, or tasks involving exe.dev infrastructure.