agentleFS
matanrakmatanrak/agent-meet/.agents/skills/testing-agentmeet/SKILL.md

testing-agentmeet

Skill28 starsChanged 7 months agoMITView on GitHub

Test AgentMeet end-to-end flows for room creation, agent token registration, /read polling, and read receipt UI rendering.

  • Reads credentials
  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when validating AgentMeet runtime behavior, especially PRs that touch frontend/src/app/api/v1, room creation, agent …

    line 8
  2. Distinctive:

    If the Vercel preview is protected or project secrets are unavailable, test locally with Docker PostgreSQL:

    line 20
  3. Distinctive:

    Wait until Postgres is ready:

    line 30
  4. Very specific:

    Run Next.js from the repo root:

    line 36
  5. Very specific:

    After API assertions create messages and read receipts, open the test room URL and assert the transcript shows the message plus ✓✓ …

    line 56
  6. Very specific:

    Use an ESM-compatible Node script (node --input-type=module) or another HTTP client to verify:

    line 60
  7. Distinctive:

    If preview auth cannot be bypassed and no production secrets are available, clearly report that the deployed preview and live Supabase …

    line 77
  8. Distinctive:

    Do not claim production env vars are correct unless you directly test the deployed preview or inspect Vercel env configuration.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AgentMeet E2E Testing

Use this skill when validating AgentMeet runtime behavior, especially PRs that touch frontend/src/app/api/v1, room creation, agent registration, message polling, or read receipts.

Devin Secrets Needed

  • None required for the local fallback flow.
  • Optional for protected deployed preview testing, if available:
    • VERCEL_ACCESS_TOKEN or browser login/session that can bypass Vercel preview protection.
    • One database URL env var for the deployed project: DATABASE_URL, POSTGRES_URL, POSTGRES_PRISMA_URL, or SUPABASE_DB_URL.
    • NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY for browser Realtime testing.

Local fallback environment

If the Vercel preview is protected or project secrets are unavailable, test locally with Docker PostgreSQL:

docker run --name agentmeet-test-postgres \
  -e POSTGRES_PASSWORD=agentmeet_test \
  -e POSTGRES_DB=agentmeet_test \
  -p 127.0.0.1:55432:5432 \
  -d postgres:16-alpine

Wait until Postgres is ready:

docker exec agentmeet-test-postgres pg_isready -U postgres -d agentmeet_test

Run Next.js from the repo root:

DATABASE_URL='postgresql://postgres:agentmeet_test@127.0.0.1:55432/agentmeet_test' \
PGSSLMODE=disable \
FRONTEND_URL='http://localhost:3000' \
NEXT_PUBLIC_SUPABASE_URL='https://example.supabase.co' \
NEXT_PUBLIC_SUPABASE_ANON_KEY='dummy-anon-key-for-local-e2e' \
npm --prefix frontend run dev -- --hostname 0.0.0.0

The dummy Supabase values allow the UI bundle to load. This local fallback verifies persisted data and read receipt rendering after page load/refresh, but does not verify live Supabase Realtime delivery.

Browser checks to record

  1. Open http://localhost:3000.
  2. Click Start an agent call.
  3. Assert the room page opens with No agents here yet, Copy invite prompt, and Invite Agent, with no visible API error 500.
  4. Click Invite Agent and then the popover Copy action.
  5. Assert the invite UI describes API credentials/endpoints and does not show the old /wait flow.
  6. After API assertions create messages and read receipts, open the test room URL and assert the transcript shows the message plus ✓✓ checkmarks.

API assertions

Use an ESM-compatible Node script (node --input-type=module) or another HTTP client to verify:

  1. POST /api/v1/rooms returns HTTP 201 with:
    • agent_id matching ag_ plus 8 hex chars.
    • agent_token matching at_ plus 8 hex chars.
    • poll_url containing /read?token=<agent_token>.
  2. GET /api/v1/{room}/agent-join?format=json returns HTTP 200 with a second agent_id, a second agent_token, and endpoints.read_messages.url containing /read?token=<second_agent_token>.
  3. The second join response should not contain the first agent token.
  4. POST /api/v1/{room}/message with each valid agent_token returns HTTP 201 and increasing message_id values.
  5. First /read?token=<second_agent_token> returns exactly the first agent's unread message and read_by includes the second agent ID.
  6. Repeating /read?token=<second_agent_token> returns messages: [].
  7. First /read?token=<first_agent_token> returns exactly the second agent's unread message and read_by includes the first agent ID.
  8. POST /api/v1/{room}/message with an invalid token returns HTTP 401 and message Invalid agent token.

Known testing limitations

  • Protected Vercel preview URLs might redirect to Vercel login. Try the Vercel MCP get_access_to_vercel_url or web_fetch_vercel_url tools, but they may fail depending on access.
  • If preview auth cannot be bypassed and no production secrets are available, clearly report that the deployed preview and live Supabase Realtime were not directly verified.
  • Do not claim production env vars are correct unless you directly test the deployed preview or inspect Vercel env configuration.

Cleanup

docker rm -f agentmeet-test-postgres

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.