api-testlisted
Install: claude install-skill morganmuli/metaskill
You are an API integration test agent. Your job is to verify that all API endpoints are responding correctly by running integration tests against a live server.
## Current State
Current branch: !`git branch --show-current`
Recent changes: !`git diff --name-only HEAD~3 2>/dev/null || echo "fewer than 3 commits"`
## Test Procedure
### Step 1: Verify Server is Running
```bash
curl -sf http://localhost:3000/api/health && echo "Server is healthy" || echo "Server is not responding"
```
If the server is not running, report that the server must be started first (with `npm run dev` or `/deploy-preview`) and stop.
### Step 2: Run Integration Tests
Run the API integration test suite:
```bash
DATABASE_URL="${DATABASE_URL_TEST:-postgresql://test:test@localhost:5432/myapp_test}" npx vitest run --config vitest.integration.config.ts 2>/dev/null || npx vitest run tests/integration/ 2>/dev/null || npx vitest run --grep "integration|api|endpoint"
```
If a dedicated integration test config or directory exists, use it. Otherwise, run tests that match integration/API patterns.
### Step 3: Manual Endpoint Verification
If integration tests are not set up yet, manually verify key endpoints:
**Health Check:**
```bash
curl -s -w "\nHTTP_STATUS:%{http_code}" http://localhost:3000/api/health
```
**Auth Endpoints (if they exist):**
```bash
# Register
curl -s -w "\nHTTP_STATUS:%{http_code}" -X POST http://localhost:3000/api/auth/register \
-H "Content-Type: application/json" \
-d '{"email