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. Use profileDir for caller-owned profile continuity and localServerDelayMs for deterministic startup races.
  • inviteMember() adds a named member to an existing Den.
  • faultProxy() injects faults.status() or faults.latency() and exposes the requests log for assertions about attempts and recovery.
  • eventually() bounds polling and reports its last value or error.
  • readDenClientState(), readConnectState(), and readConnectStateFile() expose client, local-server, and persisted-profile state.
Installs
2
GitHub Stars
23.0K
First Seen
12 days ago
write-a-spec — different-ai/openwork