在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用new-resource
星标24
分支14
更新时间2026年5月2日 14:13
Add a bindings resource schema
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Add a bindings resource schema
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | new-resource |
| description | Add a bindings resource schema |
Creates a resource module in packages/bindings by investigating a source repo and translating the resource shape into Zod schemas and TypeScript types.
/new-resource <resource>
/new-resource <repo> <resource>
packages/bindings/src/<resource>.tspackages/bindings/src/index.ts with export * from './<module>'PascalCaseSchema for exported Zod schemasPascalCase nameid field, including the top-level resource and named nested resource/reference schemas, use the corresponding branded type from @polymarket/typespackages/types/src/ids.ts, export a matching to<TypeName> constructor there, ensure it is re-exported from packages/types/src/index.ts, then use that constructor from the Zod schema transformto<TypeName> naming pattern for branded constructors so they are easy to discover and consistent across the SDKvalue as SomeId casts inside bindings schemas; always route branding through the to<TypeName> constructor from @polymarket/typespackages/types/src/ids.ts so future tightening happens in one placepackages/bindings/src/common.tscommon.ts for shared primitives, shared nested objects, shared reference schemas, and shared branded ID schemas*ReferenceSchema in common.ts to avoid circular importspackages/bindings and packages/typespnpm --filter @polymarket/types build if packages/types changedpnpm --filter @polymarket/bindings buildpnpm --filter @polymarket/bindings typecheck@polymarket/bindings before validating that dependent package. If multiple workspace packages changed or the dependency chain is unclear, prefer pnpm build from the repo root first.