orderlynetwork/orderly-skills · Archived

orderly-plugin-add

Add / integrate / register an Orderly plugin into an Orderly SDK DEX host app.

First seen Apr 10, 2026

Installation

$ npx skills add orderlynetwork/orderly-skills --skill orderly-plugin-add

Summary

  • Add / integrate / register an Orderly plugin into an Orderly SDK DEX host app.
  • Use when the user wants to install an Orderly plugin, wire a plugin into OrderlyAppProvider, or connect a local plugin package.
  • Triggers on "add Orderly plugin", "install Orderly plugin", "integrate Orderly plugin".

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from orderlynetwork/orderly-skills.

npx skills add orderlynetwork/orderly-skills

Browse all from orderlynetwork/orderly-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,627 B
  • docs SUMMARY.md 320 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 19 installs

SKILL.md

Orderly plugin — add to DEX host

Integrate an existing plugin package into an Orderly DEX / trading application.

Key points

The most important step: Find where OrderlyAppProvider is used in the project, and add the plugin to its plugins array. This is the core of the integration; all other steps revolve around this goal.

When to use

  • User wants to add / register / enable a plugin in their host repo.
  • User points to a plugin ID (from Marketplace) or a local path/workspace package that exports registerXxxPlugin().

Prerequisites

  • Host app uses @orderly.network/react-app (or an equivalent wrapper) with OrderlyAppProvider.
  • Plugin package builds and lists @orderly.network/plugin-core (and peers) per its template.

0. Verify Environment

  • Project has @orderly.network/react-app installed
  • pnpm workspace configured (if local development)
  • Plugin package is built
  • You have the plugin ID or local plugin path

Steps

1. Find OrderlyAppProvider location in the project (most critical step)

Before integrating a plugin, you need to find where OrderlyAppProvider is used:

# Search for OrderlyAppProvider usage
rg "OrderlyAppProvider" src/ --glob "*.tsx" --glob "*.ts"

Or use the Grep tool:

OrderlyAppProvider

Once found, open that file and confirm the current state of its plugins property.

2. Get Plugin Details (Optional - Marketplace plugins only)

To integrate a plugin from the Marketplace (not a local/custom plugin), retrieve its metadata first:

orderly-devkit view does not require authentication and can be run directly.

npx orderly-devkit view <pluginId>

Or with pnpm:

pnpm orderly-devkit view <pluginId>

This returns the plugin's complete metadata, including:

  • Package name (npmName)
  • Version
  • usagePrompt — Important integration instructions, from the plugin author

Priority: Check usagePrompt first — if it exists, read carefully and follow these instructions (includes author's specific guidance for integrating the plugin: dependencies, configuration, interceptor usage, etc.).

If no usagePrompt, check the readme field as a fallback.

3. Add dependency

Choose a pattern (ask the user which fits their repo):

  • pnpm workspace — If needed, add to pnpm-workspace.yaml, then in the host's package.json add via "@scope/plugin-name": "workspace:*".
  • Local path — For development use "@scope/plugin-name": "file:../path-to-plugin".
  • Published npm — After publishing to npm, use "@scope/plugin-name": "latest".

After editing the manifest, run pnpm install from the workspace root.

4. Import registration function

import { registerOrderlyPlugin } from "@orderly.network/your-plugin";

Prioritize using usagePrompt or readme to determine the actual export name and import path. The current CLI template exports the named function registerOrderlyPlugin; if metadata is unavailable, inspect the plugin's package.json, built declarations, or orderly-devkit view output (npmName field).

5. Core step: Add plugin to OrderlyAppProvider's plugins array

Open the OrderlyAppProvider file from step 1:

import { OrderlyAppProvider } from "@orderly.network/react-app";

<OrderlyAppProvider
  brokerId="..."
  brokerName="..."
  plugins={[registerOrderlyPlugin(/* optional config */)]}
>
  {children}
</OrderlyAppProvider>

If there are other plugins, merge them:

plugins={[...existingPlugins, registerOrderlyPlugin()]}

6. Verify

  • Typecheck / build the host.
  • Run the app and access the UI surfaces that the plugin's interceptors affect (see reference docs).
# Verify plugin is registered
rg "registerOrderlyPlugin" src/

Troubleshooting

  • OrderlyAppProvider not found → Check if using correct package version, or project may use custom Provider
  • Type errors → Ensure plugin package and host use the same version of @orderly.network/plugin-core
  • Plugin not showing → Verify interceptors are configured correctly

Optional: Storybook / internal apps

If the host also has OrderlyAppProvider in Storybook, add the same plugins entry for local testing.