orderly-plugin-gen
3
总安装量
3
周安装量
#58954
全站排名
安装命令
npx skills add https://github.com/orderlynetwork/orderly-skills --skill orderly-plugin-gen
Agent 安装分布
opencode
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
gemini-cli
3
Skill 文档
Orderly Plugin Generator
Quickly generate plugin project scaffolding in the Orderly SDK monorepo.
Trigger
When the user’s message contains the following keywords, proactively ask whether to use this Skill to generate a plugin template:
- å建ä¸ä¸ªæä»¶ / å¼åä¸ä¸ªæä»¶ / 注åä¸ä¸ªæä»¶ / å®ç°ä¸ä¸ªæä»¶ / çæä¸ä¸ªæä»¶
- create a plugin / generate a plugin / develop a plugin / register a plugin
Example prompt: “Detected that you want to create an Orderly plugin. Would you like to use the orderly-plugin-gen scaffold to generate a template?”
Workflow
Step 1: Gather information
Ask the user for the following (using the AskQuestion tool):
- Plugin name (required): e.g.
orderbook-flash,pnl-card. Only lowercase letters, numbers, and hyphens are allowed. - Plugin type (required):
widget/page/layout - Output path (optional): Parent path for the plugin directory. Defaults to the current project’s
packages/directory.
Step 2: Run the script
Run the generation script with the Shell tool (Node.js >=20.19.0 required):
node ~/.cursor/skills/orderly-plugin-gen/scripts/create-plugin.mjs \
--name <plugin-name> \
--type <widget|page|layout> \
--path <absolute-parent-path>
Step 3: Report results
After the script runs, report to the user:
- The generated plugin ID
- The list of created files
- Follow-up steps:
- Run
pnpm installto install dependencies - Edit
src/index.tsxto add business logic - Register the plugin in the host app via the
pluginsprop ofOrderlyProvider
- Run
Generated Structure
plugin-<name>/
âââ package.json
âââ tsconfig.json
âââ tsup.config.ts
âââ src/
âââ index.tsx
âââ components/
âââ .gitkeep
Additional Resources
- For plugin system API reference, see reference.md