Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update SKILL.md

Kiran K4639d6ac3366
diff --git a/.agents/skills/playwright-api-tests/SKILL.md b/.agents/skills/playwright-api-tests/SKILL.md
index 0eccc69d5d..d7922c01bb 100644
--- a/.agents/skills/playwright-api-tests/SKILL.md
+++ b/.agents/skills/playwright-api-tests/SKILL.md
@@ -15,6 +15,25 @@ Do **not** put these under `apps/web/tests/` (Vitest) or under `playwright/partn
2. Prefer mirroring an existing nearby resource folder: `tags/`, `folders/`, `customers/`, `workspaces/`.
3. Confirm the endpoint is workspace-scoped Bearer API (most `/api/*` routes). The fixture already sends `Authorization: Bearer …`.
+## What to cover
+
+Before considering an endpoint covered, ask:
+
+- What happens with valid input?
+- What happens with invalid input?
+- Who is allowed to call it?
+- Can another workspace access the resource?
+- What happens when the resource does not exist?
+- What happens with duplicate data?
+- What happens at boundary values?
+- What state does the operation leave behind?
+- Can the operation be safely retried?
+- Does pagination/filtering/sorting behave correctly?
+- What happens when multiple requests happen concurrently?
+- Are errors returned in the documented format?
+
+Not every endpoint needs a test for every item. The goal is to cover the actual failure modes and API contract, not to maximize the number of tests.
+
## File layout
```