在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用new-action
星标24
分支14
更新时间2026年4月10日 09:01
Add a new client action
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Add a new client action
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | new-action |
| description | Add a new client action |
Creates a new action in packages/client/src/actions for the unified client surface.
/new-action <action>
/new-action <repo> <action>
packages/client/src/actions/<module>.tsmarkets.ts and event read actions in events.tspackages/client/src/actions/index.tspackages/client/src/index.ts; actions are consumed from @polymarket/client/actionspackages/client/src/actions/<module>.test.tspackages/client/src/testing.ts for the shared test client when tests need a client instance/new-resource first to add the missing schemas and types in packages/bindingsky types, instances, hooks, or option shapesPolymarketClient as the first parameterlist<Resource> for collection reads unless the user asks otherwisedocs/docs.json) to cross-reference what is public; use docs OpenAPI YAML files only as a secondary aid for locating paths or coverage; the implementation is the source of truth@polymarket/bindings...ResponseSchema in @polymarket/bindings only when the transport shape differs from the resource shape, such as wrappers, pagination envelopes, or extra metadata@polymarket/bindings first@polymarket/client instead of creating redundant local type aliases for bindings types.transform(toISODateString)fetchMarket: include a short summary sentence, an @throws block, and a practical @example block showing a realistic call and returned shape; keep examples usage-focused and omit import statements@throws, trace the full call path instead of only the top-level function body: inspect local throw statements, helpers invoked before the request, and anything unwrapped from Result/ResultAsyncparseUserInput(...) throws UserInputErrorunwrap(Result<T, E> | ResultAsync<T, E>) throws Eunwrap(client.<service>.get(...)) throws RateLimitError, ServerError, or InvalidResponseError@polymarket/client, build that dependency first. If multiple workspace packages changed or the dependency chain is unclear, prefer pnpm build from the repo root before the steps below.pnpm --filter @polymarket/client buildpnpm --filter @polymarket/client typecheckpnpm test:clientpnpm lint:fix