nomadro/.cursor/skills/nomadro-platform/SKILL.md
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

64 lines
1.9 KiB
Markdown

---
name: nomadro-platform
description: >-
Use Nomadro public API / SDK / MCP tools for nomadro.com (US primary).
Health, remote-config, social map/meetups/gigs/join, VIP check, nav links.
Prefer MCP tools or GET https://nomadro.com/api/public/v1/* .
---
# Nomadro Platform
## Deploy truth
- **Core**: `https://nomadro.com` (US). Default for agents and SDK `baseUrl`.
- **China mirror**: `https://nomadro.cn` — independent; sync only after `.com` cn-audience is stable.
- Audience lanes: `cn` | `intl` via `src/modules/audience`.
## Surfaces (same tool list)
| Surface | Entry |
|---|---|
| Docs UI | `https://nomadro.com/developers` (Scalar) |
| OpenAPI | `GET /api/public/v1/openapi.json` |
| Tools | `GET /api/public/v1/tools` |
| SDK | `@nomadro/sdk` → `createNomadroClient({ baseUrl })` |
| MCP | `pnpm mcp` / `node packages/mcp/src/cli.mjs` |
| WeChat skill | `apps/miniprogram/weapp/ai-pkg/socialSkill` |
Tool SoT: `packages/sdk/tools.json`
## When to call which tool
- Platform probe → `health` / `getMeta` / `getConfig`
- Map / cities → `listMapCities` / `searchCities` → handoff `/social/map`
- Video rooms → `listMeetups` / `openMeetup` (no web-view in miniprograms)
- Gigs → `listGigs` / `applyGig` (name+contact required)
- Paid community join (not VIP) → `joinSocial` → `/social/join`
- VIP membership → `checkVip` with email
- Nav catalog → `listNavLinks`
## MCP config (Cursor)
```json
{
"mcpServers": {
"nomadro": {
"command": "node",
"args": ["packages/mcp/src/cli.mjs"],
"env": {
"NOMADRO_PUBLIC_ORIGIN": "https://nomadro.com"
}
}
}
}
```
Optional: `NOMADRO_PUBLIC_API_KEY`, `NOMADRO_SOCIAL_GUEST_ID`.
## Constraints
1. Do not treat `.cn` as the default ship target.
2. Social join ≠ VIP (`__social_join__` vs `__vip__`).
3. Miniprogram content must stay native (no business web-view).
4. Prefer returning `pagePath` handoffs so users complete pay/forms in UI.