Add TestTau agent skill
Browse files- README.md +49 -0
- SKILL.md +111 -0
- agents/openai.yaml +8 -0
- references/api.md +65 -0
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TestTau Agent Skill
|
| 2 |
+
|
| 3 |
+
TestTau gives AI agents disposable email inboxes and webhook capture endpoints for QA, CI, signup, checkout, and integration tests.
|
| 4 |
+
|
| 5 |
+
Agents can:
|
| 6 |
+
|
| 7 |
+
- create public disposable inboxes at `<inbox>@mail.testtau.com`;
|
| 8 |
+
- wait for email and fetch parsed JSON;
|
| 9 |
+
- use private API-key protected inboxes for signed-in users;
|
| 10 |
+
- capture HTTP requests at `https://hook.testtau.com/<hookId>`;
|
| 11 |
+
- inspect, replay, and assert webhook captures with JSON Schema.
|
| 12 |
+
|
| 13 |
+
Canonical hosted skill:
|
| 14 |
+
|
| 15 |
+
- `https://testtau.com/skills/testtau/SKILL.md`
|
| 16 |
+
- `https://testtau.com/skills/testtau/references/api.md`
|
| 17 |
+
- `https://testtau.com/llms.txt`
|
| 18 |
+
|
| 19 |
+
## Install
|
| 20 |
+
|
| 21 |
+
Copy this folder into an agent's skills directory, or point the agent to the hosted `SKILL.md` URL.
|
| 22 |
+
|
| 23 |
+
For catalogs that ingest skill packages, use this folder as the package root:
|
| 24 |
+
|
| 25 |
+
```text
|
| 26 |
+
agent-skills/testtau
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Quick Start
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
INBOX="agent-login-$(date +%s)"
|
| 33 |
+
echo "Send mail to $INBOX@mail.testtau.com"
|
| 34 |
+
curl -fsS "https://mail.testtau.com/i/$INBOX/api/wait?timeout=15000"
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
HOOK="agent-hook-$(date +%s)"
|
| 39 |
+
curl -fsS -X POST "https://hook.testtau.com/$HOOK" \
|
| 40 |
+
-H "content-type: application/json" \
|
| 41 |
+
-d '{"event":"agent.test"}'
|
| 42 |
+
curl -fsS "https://hook.testtau.com/_/$HOOK/api/list"
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Private mail and private hooks require:
|
| 46 |
+
|
| 47 |
+
```text
|
| 48 |
+
Authorization: Bearer <key>
|
| 49 |
+
```
|
SKILL.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: testtau
|
| 3 |
+
version: 1.0.0
|
| 4 |
+
homepage: https://testtau.com/
|
| 5 |
+
description: Use TestTau when an AI agent needs disposable email inboxes, private API-key protected test inboxes, webhook capture, request inspection, replay, or JSON Schema assertions for QA, CI, signup, checkout, and integration testing.
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# TestTau
|
| 9 |
+
|
| 10 |
+
TestTau gives agents disposable mail and webhook endpoints for tests:
|
| 11 |
+
|
| 12 |
+
- Public mail: send to `<inbox>@mail.testtau.com`, inspect at `https://mail.testtau.com/i/<inbox>`.
|
| 13 |
+
- Public hooks: send to `https://hook.testtau.com/<hookId>`, inspect at `https://hook.testtau.com/_/<hookId>`.
|
| 14 |
+
- Private mail and hooks: use the user's TestTau Account page to create an API key, then send reads/config requests with `Authorization: Bearer <key>`.
|
| 15 |
+
|
| 16 |
+
Use a unique name per task, for example `agent-<purpose>-<short-random>`. Valid names start with a lowercase letter or number and may contain lowercase letters, numbers, `.`, `_`, `+`, or `-`.
|
| 17 |
+
|
| 18 |
+
## Public Disposable Mail
|
| 19 |
+
|
| 20 |
+
Use public mail when the inbox can be readable by anyone who knows the name.
|
| 21 |
+
|
| 22 |
+
1. Choose an inbox name, such as `agent-login-7k3p`.
|
| 23 |
+
2. Tell the system under test to email `agent-login-7k3p@mail.testtau.com`.
|
| 24 |
+
3. Wait for the message:
|
| 25 |
+
|
| 26 |
+
```bash
|
| 27 |
+
curl -fsS "https://mail.testtau.com/i/agent-login-7k3p/api/wait?timeout=15000&subject=Verify"
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
4. Read parsed JSON:
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
curl -fsS "https://mail.testtau.com/i/agent-login-7k3p/api/message/<messageId>/json"
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Important fields include `fromAddr`, `toAddr`, `subject`, `textBody`, `htmlBody`, `preview`, `attachments`, and `links.raw`.
|
| 37 |
+
|
| 38 |
+
## Private Mail
|
| 39 |
+
|
| 40 |
+
Use private mail when the test email must not be visible in a public inbox.
|
| 41 |
+
|
| 42 |
+
1. Ask the user for their TestTau private inbox name and API key, or direct them to `https://testtau.com/account`.
|
| 43 |
+
2. Send mail to `<privateInbox>@mail.testtau.com`.
|
| 44 |
+
3. Read with a bearer token:
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
curl -fsS \
|
| 48 |
+
-H "Authorization: Bearer $TESTTAU_MAIL_KEY" \
|
| 49 |
+
"https://mail.testtau.com/private/i/<privateInbox>/api/wait?timeout=15000&subject=Verify"
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
Never put private keys in URLs. Use `Authorization: Bearer`.
|
| 53 |
+
|
| 54 |
+
## Public Webhook Capture
|
| 55 |
+
|
| 56 |
+
Use public hooks when captured requests can be visible to anyone with the hook id.
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
HOOK_ID="agent-webhook-7k3p"
|
| 60 |
+
curl -fsS -X POST "https://hook.testtau.com/$HOOK_ID" \
|
| 61 |
+
-H "content-type: application/json" \
|
| 62 |
+
-d '{"event":"agent.test","ok":true}'
|
| 63 |
+
|
| 64 |
+
curl -fsS "https://hook.testtau.com/_/$HOOK_ID/api/list"
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
Open `https://hook.testtau.com/_/<hookId>` for the live inspector.
|
| 68 |
+
|
| 69 |
+
## Private Hooks
|
| 70 |
+
|
| 71 |
+
Use private hooks when inspection, replay, config, wipe, and assertions must require an API key.
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
curl -fsS -X POST "https://hook.testtau.com/private/<hookId>" \
|
| 75 |
+
-H "content-type: application/json" \
|
| 76 |
+
-d '{"event":"agent.private"}'
|
| 77 |
+
|
| 78 |
+
curl -fsS \
|
| 79 |
+
-H "Authorization: Bearer $TESTTAU_HOOK_KEY" \
|
| 80 |
+
"https://hook.testtau.com/private/_/<hookId>/api/list"
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## Schema Assertions
|
| 84 |
+
|
| 85 |
+
For webhook contract tests, configure a JSON Schema and use the assert endpoint as a CI gate.
|
| 86 |
+
|
| 87 |
+
```bash
|
| 88 |
+
START="$(date +%s%3N)"
|
| 89 |
+
|
| 90 |
+
curl -fsS -X PUT "https://hook.testtau.com/_/<hookId>/api/config" \
|
| 91 |
+
-H "content-type: application/json" \
|
| 92 |
+
-d '{"schema":"{\"type\":\"object\",\"required\":[\"event\"]}","schemaFailMode":"capture"}'
|
| 93 |
+
|
| 94 |
+
# Trigger the system under test here.
|
| 95 |
+
|
| 96 |
+
curl -fsS "https://hook.testtau.com/_/<hookId>/api/assert?since=$START&min_count=1"
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
For private hooks, add `-H "Authorization: Bearer $TESTTAU_HOOK_KEY"` to config, list, request, replay, wipe, and assert calls.
|
| 100 |
+
|
| 101 |
+
## Limits And Safety
|
| 102 |
+
|
| 103 |
+
- Public captures are disposable and should not receive production secrets, PII, or credentials.
|
| 104 |
+
- Public mail and hooks are name-based; anyone with the name can inspect them.
|
| 105 |
+
- Signed-in private tools require bearer tokens for reads and management.
|
| 106 |
+
- Current free private limits: 100 private mail messages per account period and 1,000 private hook captures per account period.
|
| 107 |
+
- Mail retention is 48 hours, public inbox storage is 100 messages, mail attachments are capped at 5 MB, and hook request bodies are capped at 1 MiB.
|
| 108 |
+
|
| 109 |
+
## When Done
|
| 110 |
+
|
| 111 |
+
Return the exact inbox or hook id used, the inspect URL, and the message/request id if one was captured. If a wait timed out, report that explicitly and include the URL the user can open manually.
|
agents/openai.yaml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "TestTau"
|
| 3 |
+
short_description: "Disposable mail and webhook capture for tests"
|
| 4 |
+
brand_color: "#6366F1"
|
| 5 |
+
default_prompt: "Use $testtau to create a disposable inbox or webhook, wait for a capture, and report the inspect URL."
|
| 6 |
+
|
| 7 |
+
policy:
|
| 8 |
+
allow_implicit_invocation: true
|
references/api.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TestTau API Reference For Agents
|
| 2 |
+
|
| 3 |
+
## Mail
|
| 4 |
+
|
| 5 |
+
Public base path:
|
| 6 |
+
|
| 7 |
+
```text
|
| 8 |
+
https://mail.testtau.com/i/<inbox>/api
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
Private base path:
|
| 12 |
+
|
| 13 |
+
```text
|
| 14 |
+
https://mail.testtau.com/private/i/<inbox>/api
|
| 15 |
+
Authorization: Bearer <mail-key>
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
Useful endpoints:
|
| 19 |
+
|
| 20 |
+
- `GET /list` - list recent messages.
|
| 21 |
+
- `GET /quota` - return stored message quota.
|
| 22 |
+
- `GET /wait?timeout=15000&subject=<text>&text=<text>` - long-poll for a matching message.
|
| 23 |
+
- `GET /message/<messageId>` - parsed message JSON.
|
| 24 |
+
- `GET /message/<messageId>/json` - parsed message JSON.
|
| 25 |
+
- `GET /message/<messageId>/raw` - raw `.eml`.
|
| 26 |
+
- `DELETE /message/<messageId>` - delete one message.
|
| 27 |
+
- `DELETE /all` - wipe inbox.
|
| 28 |
+
|
| 29 |
+
## Hooks
|
| 30 |
+
|
| 31 |
+
Public capture:
|
| 32 |
+
|
| 33 |
+
```text
|
| 34 |
+
POST https://hook.testtau.com/<hookId>
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Public inspect API:
|
| 38 |
+
|
| 39 |
+
```text
|
| 40 |
+
https://hook.testtau.com/_/<hookId>/api
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Private capture:
|
| 44 |
+
|
| 45 |
+
```text
|
| 46 |
+
POST https://hook.testtau.com/private/<hookId>
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Private inspect API:
|
| 50 |
+
|
| 51 |
+
```text
|
| 52 |
+
https://hook.testtau.com/private/_/<hookId>/api
|
| 53 |
+
Authorization: Bearer <hook-key>
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Useful endpoints:
|
| 57 |
+
|
| 58 |
+
- `GET /list` - list recent captures.
|
| 59 |
+
- `GET /request/<requestId>` - capture metadata.
|
| 60 |
+
- `GET /body/<requestId>` - capture body.
|
| 61 |
+
- `PUT /config` - set response behavior or JSON Schema.
|
| 62 |
+
- `POST /replay/<requestId>?target=<url>` - replay capture.
|
| 63 |
+
- `GET /assert?since=<epochMs>&min_count=1` - CI assertion gate.
|
| 64 |
+
- `DELETE /request/<requestId>` - delete one capture.
|
| 65 |
+
- `DELETE /all` - wipe hook.
|