Build a custom Prismatic connector for an internal API
何时使用: You have an internal API that your Prismatic flows need to talk to.
前置条件
- Prismatic account + SDK — npm i -g @prismatic-io/prism; prism login
- Skill installed — git clone https://github.com/prismatic-io/prismatic-skills ~/.claude/skills/prismatic-skills
步骤
-
Scaffold the connectorUse prismatic-skills. Scaffold a connector for our Orders API — base URL, bearer auth, actions for list, get, create.✓ 已复制→ Connector directory with TS entry points, manifest, test files
-
Implement actionsFill in the listOrders action with pagination and error handling.✓ 已复制→ TS implementation with types and Prismatic input/output conventions
-
Test locallyRun the test harness with a mock response.✓ 已复制→ prism tests output; green
结果: A deployable connector with actions your flows can use.
注意事项
- Missing input validation — Prismatic validates at the platform boundary; still use Zod or similar for runtime safety