Supplies test commands, stack setup, and failure-mode knowledge for the Wendy Cloud monorepo. Use when running Swift broker integration tests, checking local dev stack health, diagnosing enrollment/certificate errors, or verifying device reachability.
Ships in wendy-cloud-testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill supplies the Wendy Cloud-specific testing knowledge. Pair it with
/wendy-iterating to drive a continuous iterate-fix-ship loop:
"Iterate on this feature using /wendy-iterating. Use /wendy-cloud-testing to determine how to test for bugs and completion."
Run at the very start of every session. Fix every gap before running any tests.
#!/usr/bin/env bash
set -euo pipefail
MISSING=()
if ! command -v brew &>/dev/null; then MISSING+=("Homebrew"); fi
if ! command -v docker &>/dev/null; then
MISSING+=("Docker Desktop")
else
if ! docker info &>/dev/null 2>&1; then
open -a Docker
until docker info &>/dev/null 2>&1; do sleep 3; done
fi
fi
if ! command -v gh &>/dev/null; then MISSING+=("gh"); fi
if ! gh auth status &>/dev/null 2>&1; then MISSING+=("gh auth (run: gh auth login)"); fi
if ! command -v swift &>/dev/null; then MISSING+=("Swift toolchain"); fi
if ! command -v protoc &>/dev/null; then brew install protobuf; fi
if ! command -v wendy &>/dev/null; then MISSING+=("wendy CLI"); fi
[ -d "/Users/wendy/Documents/Projects/pki-core" ] || \
gh repo clone wendylabsinc/pki-core /Users/wendy/Documents/Projects/pki-core -- --depth=1
if [ ${#MISSING[@]} -gt 0 ]; then
echo "BLOCKED:"; for item in "${MISSING[@]}"; do echo " - $item"; done; exit 1
fi
echo "All prerequisites satisfied."
| Repo | Location | Purpose |
|---|---|---|
| cloud | /Users/wendy/Documents/Projects/cloud | Main monorepo (console, swift broker, infra). main = current codebase; legacy = old Firebase prod, frozen |
| pki-core | /Users/wendy/Documents/Projects/pki-core | PKI certificate authority engine |
| Port | Service | Notes |
|---|---|---|
| 50051 | Swift broker | Plaintext gRPC |
| 50052 | Swift tunnel-broker | One-way TLS |
| 8080 | Swift broker HTTP | Video REST/WebSocket |
| 9400 | Envoy | gRPC-web proxy |
| 9443 | pki-core | Certificate issuance |
| 9300 | Postgres | Primary database |
cd /Users/wendy/Documents/Projects/cloud
make dev-local # broker built on the host (fast rebuilds)
# or: make dev-docker # broker in Docker, no Swift toolchain needed
Both are zero-parameter: Postgres, Swift broker + tunnel-broker, gRPC-web Envoy,
dev user/org seed. There is no separate Go services container any more.
Verify:
lsof -iTCP:50051 -iTCP:50052 -iTCP:9400 -sTCP:LISTEN -nP 2>/dev/null | grep -E "50051|50052|9400"
The launcher copies docker-compose.override.yml.example to
docker-compose.override.yml on first run; edit that copy rather than writing one by hand.
Known broken end to end (WDY-2330) per cloud
docs/local-dev.md: the broker only trusts wendy-auth realm JWKS, so the HS256 Dev Login token is rejected (UNAUTHENTICATED). Treat this flow as its shape, not a working path, untilconsole/replaces it.
Run once per session:
cd /Users/wendy/Documents/Projects/cloud
wendy auth login --cloud http://localhost:9200 --cloud-grpc localhost:50051 --json \
> /tmp/wendy-auth-out.txt 2>&1 &
sleep 3
cat /tmp/wendy-auth-out.txt
Then use Chrome MCP tools to complete the browser flow:
cli-auth URL printed in the output./login: click "Dev Login (local only)", wait 3s, re-navigate.Certificates saved.cd /Users/wendy/Documents/Projects/cloud
make test-swift 2>&1 | tail -40
Filter to a specific test (the Makefile target has no FILTER knob):
cd swift && swift test --filter <TestName>
Tests use BrokerFixture (in-process gRPC, MockPKIServer, real Postgres). No real Swift broker or pki-core needed. Approximately 60 tests across 8 suites.
make test-swift — any failures are the primary signal.make dev-local, broker logs go only to the launcher terminal (swift/scripts/start-local.sh runs the broker in the background on stdout; no log file). Read them there.make dev-docker, check container logs: docker compose logs --since 10m swift-broker 2>/dev/null | grep -iE "error|fatal|panic" | tail -20wendy discover --json 2>&1 | head -10An iteration is clean when ALL of the following hold:
make test-swift reports 0 failureserror|fatal|panic lines in broker logs from the last check intervalwendy discover returns at least one device (or device testing is explicitly skipped)| Symptom | Likely Cause | Fix |
|---|---|---|
Bool? nil creates OID 0 params | PostgresNIO cannot infer type for nil Bool | Use \(value)::bool explicit cast |
connection pool exhausted | Postgres default max_connections (100) hit | Set pool size to 1 in TestDB.swift |
| Handler not registered in BrokerFixture | Handler created but never added to test server | Register handler in BrokerFixture.swift |
Address already in use on :50051 or :50052 | Previous broker process still running | pkill -f start-local.sh; pkill -f /.build/.*broker; sleep 2 |
unknown profile "operator-tier-a" | pki-core profile name mismatch | Use profile "operator" in CertificateServiceHandler.swift |
certificate is not valid for client authentication | Production CLI cert missing clientAuth Extended Key Usage | Known cloud PKI bug; use local stack for testing |
Skip if no device is on the network or if the production cert lacks clientAuth
Extended Key Usage (a known cloud PKI bug).
# Discover devices
wendy discover --json 2>&1
# Check device info (requires valid clientAuth cert)
wendy cloud device info --device "$DEVICE_HOST" --json 2>&1 | head -20
If device info fails with "certificate is not valid for client authentication",
skip the mTLS checks — this is the known production PKI bug, not a regression.
What SKILL.md sets; muted values are Claude Code's defaults
/wendy-cloud-testing:wendy-cloud-testingfrom wendy-cloud-testing
npx claudepluginhub wendylabsinc/claude-skills --plugin wendy-cloud-testingOther plugins' skills for the same job