write-a-spec
Installation
SKILL.md
Skill: Write a Spec
Write new tests in evals/specs/**/*.test.ts and import test from
@openwork/testkit. App-driving E2E tests use .e2e.test.ts; the PR lane excludes
them. Model setup as resources in dependency order: needs() → server() →
app().
Use the testkit primitives
server()boots or reuses Den and provisions isolated organizations.app()boots a signed-in desktop. UseprofileDirfor caller-owned profile continuity andlocalServerDelayMsfor deterministic startup races.inviteMember()adds a named member to an existing Den.faultProxy()injectsfaults.status()orfaults.latency()and exposes therequestslog for assertions about attempts and recovery.eventually()bounds polling and reports its last value or error.readDenClientState(),readConnectState(), andreadConnectStateFile()expose client, local-server, and persisted-profile state.