Skip to content

Commit fc267cb

Browse files
committed
Merge branch 'staging'
2 parents 4d0e482 + 24a01c5 commit fc267cb

20 files changed

Lines changed: 122 additions & 78 deletions

build-on-omnichain/module-marketplace/agent-skills-alignment.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Orderly publishes agent skills (install via orderly-devkit skills
55

66
Orderly publishes agent skills (install via `orderly-devkit skills install`) for **`orderly-plugin-create`**, **`orderly-plugin-write`**, **`orderly-plugin-add`**, **`orderly-plugin-submit`** (source repo: **`OrderlyNetwork/orderly-skills`**, per devkit constants).
77

8-
**Recommended usage:** See [**Skills-first workflow**](skills-first) for why skills + MCP + devkit are the preferred stack for Orderly plugin work.
8+
**Recommended usage:** See [**Skills-first workflow**](/build-on-omnichain/module-marketplace/skills-first) for why skills + MCP + devkit are the preferred stack for Orderly plugin work.
99

1010
This handbook is the **in-repo, versioned** companion. If you maintain skills in that external repo, keep the following in sync with shipping CLIs and MCP.
1111

@@ -21,7 +21,7 @@ Some older or external skills mention **`orderly_docs_get_hook`**. The `@orderly
2121
- `orderly_docs_get_component_doc` — markdown examples.
2222
- `orderly_docs_get_workflow` / `orderly_docs_get_recipe` — curated prose.
2323

24-
See [MCP reference](mcp-sdk-docs).
24+
See [MCP reference](/build-on-omnichain/module-marketplace/mcp-sdk-docs).
2525

2626
## `orderly-devkit view` authentication
2727

@@ -33,7 +33,7 @@ The shipped **`@orderly.network/devkit`** **`view`** command requires **`orderly
3333

3434
## Interceptor tables
3535

36-
Skills may ship extended placeholder tables. **Runtime paths** in this handbook: [Runtime injector targets](runtime-injector-targets) and [Interceptors](interceptors). CLI template subset is listed on the same page.
36+
Skills may ship extended placeholder tables. **Runtime paths** in this handbook: [Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets) and [Interceptors](/build-on-omnichain/module-marketplace/interceptors). CLI template subset is listed on the same page.
3737

3838
## Naming conventions
3939

build-on-omnichain/module-marketplace/cli-reference.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Requires `--no-interactive` plus `--name` and `--interceptor`. If `--id` or `--t
4242
| --- | --- |
4343
| `--name` / `-n` | Plugin display name; normalized to **PascalCase** |
4444
| `--id` / `-i` | Plugin id; **kebab-style** string, also used for `registerPlugin` / manifest when valid |
45-
| `--interceptor` | One of CLI `INTERCEPTOR_TARGETS` (subset of SDK—see [Interceptors](interceptors)) |
45+
| `--interceptor` | One of CLI `INTERCEPTOR_TARGETS` (subset of SDK—see [Interceptors](/build-on-omnichain/module-marketplace/interceptors)) |
4646
| `--target` / `-t` | Output directory; must be empty or non-existent |
4747
| `--skip-install` | Skip `npm install` in generated folder |
4848
| `--no-interactive` | No prompts |
@@ -71,7 +71,7 @@ Register a new plugin from a local directory. Resolves metadata from **`.orderly
7171
| Option | Description |
7272
| --- | --- |
7373
| `--path` / `-p` | Plugin root (default: prompt or `./`) |
74-
| `--tags` / `-t` | Comma-separated; [valid tags](manifest-and-submit#valid-marketplace-tags) |
74+
| `--tags` / `-t` | Comma-separated; [valid tags](/build-on-omnichain/module-marketplace/manifest-and-submit#valid-marketplace-tags) |
7575
| `--storybook-url` | Optional Storybook base URL |
7676
| `--dry-run` / `-d` | Validate and print payload only |
7777

@@ -124,13 +124,13 @@ Installs **Orderly SDK Docs** MCP config for AI clients. Forwards to the same be
124124
orderly-devkit mcp install --client cursor --scope project --dry-run
125125
```
126126

127-
Details: [MCP: install](mcp-sdk-docs#install-subcommand).
127+
Details: [MCP: install](/build-on-omnichain/module-marketplace/mcp-sdk-docs#install-subcommand).
128128

129129
## `skills install`
130130

131131
Installs agent skills (default: **orderly-plugin-create**, **orderly-plugin-write**, **orderly-plugin-add**, **orderly-plugin-submit**) via the upstream `skills` CLI.
132132

133-
**Concept:** Prefer **`skills install` + `mcp install`** alongside devkit when building plugins—see [**Skills-first workflow**](skills-first).
133+
**Concept:** Prefer **`skills install` + `mcp install`** alongside devkit when building plugins—see [**Skills-first workflow**](/build-on-omnichain/module-marketplace/skills-first).
134134

135135
| Option | Description |
136136
| --- | --- |

build-on-omnichain/module-marketplace/first-plugin.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description: "Goal: Scaffold a plugin and make one visible change on a single in
55

66
**Goal:** Scaffold a plugin and make **one** visible change on a **single** interceptor target that exists in the SDK.
77

8-
**Prerequisite:** [Getting started](getting-started) completed (includes **`orderly-devkit skills install`** and **`mcp install`** if you use an agent).
8+
**Prerequisite:** [Getting started](/build-on-omnichain/module-marketplace/getting-started) completed (includes **`orderly-devkit skills install`** and **`mcp install`** if you use an agent).
99

1010
## Using agent skills for this tutorial
1111

12-
Install the default plugin skills once — see [Skills-first workflow](skills-first). For this tutorial the relevant skills are:
12+
Install the default plugin skills once — see [Skills-first workflow](/build-on-omnichain/module-marketplace/skills-first). For this tutorial the relevant skills are:
1313

1414
| Skill | What it covers | CLI / tool it leads you to |
1515
| --- | --- | --- |
@@ -24,19 +24,19 @@ You can still run **`orderly-devkit create plugin`** by hand; the skill is the s
2424

2525
## 1. Pick a target path
2626

27-
Valid runtime targets are listed in **[Runtime injector targets](runtime-injector-targets)** (paths must match **exactly**, case-sensitive).
27+
Valid runtime targets are listed in **[Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets)** (paths must match **exactly**, case-sensitive).
2828

2929
For this tutorial, use a target you know appears on your trading page—for example `Trading.OrderEntry.SubmitSection` or another row from that page.
3030

31-
> **Note:** `orderly-devkit create plugin --interceptor` only offers a **subset** of SDK targets. You can still register interceptors for any runtime path in [Runtime injector targets](runtime-injector-targets) by editing the generated plugin code.
31+
> **Note:** `orderly-devkit create plugin --interceptor` only offers a **subset** of SDK targets. You can still register interceptors for any runtime path in [Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets) by editing the generated plugin code.
3232
3333
## 2. Create the project
3434

3535
```bash
3636
orderly-devkit create plugin
3737
```
3838

39-
Answer the prompts, or use `--no-interactive` with `--name`, `--id`, `--interceptor`, and `--target` as in [Getting started](getting-started).
39+
Answer the prompts, or use `--no-interactive` with `--name`, `--id`, `--interceptor`, and `--target` as in [Getting started](/build-on-omnichain/module-marketplace/getting-started).
4040

4141
## 3. Implement one small behavior
4242

@@ -62,7 +62,7 @@ interceptors: [
6262
],
6363
```
6464

65-
**Important:** The `component` function is **not** a React component—do not call Hooks directly on it. Return JSX that uses inner components if you need Hooks (see [Interceptor strategies](interceptor-strategies)).
65+
**Important:** The `component` function is **not** a React component—do not call Hooks directly on it. Return JSX that uses inner components if you need Hooks (see [Interceptor strategies](/build-on-omnichain/module-marketplace/interceptor-strategies)).
6666

6767
## 4. Build the package
6868

@@ -78,14 +78,14 @@ Adjust commands to match the template’s `package.json`.
7878

7979
## 5. Integrate in a host (smoke test)
8080

81-
Follow [Tutorial 2: Integrate into host](integrate-host) to add `plugins={[registerYourPlugin()]}` on `OrderlyAppProvider`.
81+
Follow [Tutorial 2: Integrate into host](/build-on-omnichain/module-marketplace/integrate-host) to add `plugins={[registerYourPlugin()]}` on `OrderlyAppProvider`.
8282

8383
**Verification:** Navigate to the trading view and confirm your UI change appears at the interceptor location.
8484

8585
## Failure recovery
8686

8787
| Issue | Action |
8888
| --- | --- |
89-
| Target not found / no effect | Re-read the target against [Runtime injector targets](runtime-injector-targets); typos break injection. |
90-
| Hooks error in interceptor | Move Hook usage into a child component; see [How-to: Interceptor strategies](interceptor-strategies). |
91-
| Scaffold mismatch | Regenerate or trim generated files to the minimal **`registerPlugin`** shape; see **[Plugin types](plugin-types)** and **`@orderly.network/plugin-core`** on npm for full architecture. |
89+
| Target not found / no effect | Re-read the target against [Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets); typos break injection. |
90+
| Hooks error in interceptor | Move Hook usage into a child component; see [How-to: Interceptor strategies](/build-on-omnichain/module-marketplace/interceptor-strategies). |
91+
| Scaffold mismatch | Regenerate or trim generated files to the minimal **`registerPlugin`** shape; see **[Plugin types](/build-on-omnichain/module-marketplace/plugin-types)** and **`@orderly.network/plugin-core`** on npm for full architecture. |

build-on-omnichain/module-marketplace/getting-started.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Follow this path once per machine or project. Estimated time: 15
55

66
Follow this path once per machine or project. Estimated time: **15–20 minutes**.
77

8-
For **why** we recommend installing **skills + MCP** alongside the CLI—and how the four Orderly plugin skills fit the SDK workflow—read [**Skills-first workflow**](skills-first) first.
8+
For **why** we recommend installing **skills + MCP** alongside the CLI—and how the four Orderly plugin skills fit the SDK workflow—read [**Skills-first workflow**](/build-on-omnichain/module-marketplace/skills-first) first.
99

1010
## Requirements
1111

@@ -43,7 +43,7 @@ orderly-devkit skills install --list # list only
4343
orderly-devkit skills install --dry-run # preview
4444
```
4545

46-
Use **`--agent cursor`** (or your client) when you need skills installed for a specific agent—see [CLI reference: skills](cli-reference#skills-install).
46+
Use **`--agent cursor`** (or your client) when you need skills installed for a specific agent—see [CLI reference: skills](/build-on-omnichain/module-marketplace/cli-reference#skills-install).
4747

4848
**Without an AI agent**, this step is optional; you can rely on the CLI and docs alone. With an agent, **treat this as part of the default stack** together with the MCP below.
4949

@@ -61,7 +61,7 @@ or the sdk-docs binary directly:
6161
pnpm dlx @orderly.network/sdk-docs orderly-sdk-docs-mcp install --client all --scope user
6262
```
6363

64-
See [Orderly SDK Docs MCP](mcp-sdk-docs) for tools and the `install` subcommand.
64+
See [Orderly SDK Docs MCP](/build-on-omnichain/module-marketplace/mcp-sdk-docs) for tools and the `install` subcommand.
6565

6666
After `orderly-devkit create plugin` or a successful `submit`, the devkit may print hints if the MCP server is not detected (see the published **`@orderly.network/devkit`** sources for MCP detection behavior).
6767

@@ -84,7 +84,7 @@ orderly-devkit create plugin --no-interactive \
8484
--skip-install
8585
```
8686

87-
Details: [CLI reference: create plugin](cli-reference#create-plugin).
87+
Details: [CLI reference: create plugin](/build-on-omnichain/module-marketplace/cli-reference#create-plugin).
8888

8989
The template repository is **`OrderlyNetwork/orderly-plugin-template`**. A `.orderly-manifest.json` may be generated in the output folder.
9090

@@ -97,14 +97,14 @@ pnpm install # or npm install
9797
pnpm run dev # or npm run dev
9898
```
9999

100-
Wire the plugin into a host app using [`OrderlyAppProvider` plugins](integrate-host).
100+
Wire the plugin into a host app using [`OrderlyAppProvider` plugins](/build-on-omnichain/module-marketplace/integrate-host).
101101

102102
## Next steps
103103

104104
| Goal | Document |
105105
| --- | --- |
106-
| Skills + MCP mental model | [**Skills-first workflow**](skills-first) |
107-
| First visible UI change | [Tutorial: First plugin](first-plugin) |
108-
| Add plugin to a DEX app | [Tutorial: Integrate into host](integrate-host) |
109-
| Marketplace login and submit | [Tutorial: Marketplace](marketplace-submission) |
110-
| When to use widget vs page vs layout | [How-to: Plugin types](plugin-types) |
106+
| Skills + MCP mental model | [**Skills-first workflow**](/build-on-omnichain/module-marketplace/skills-first) |
107+
| First visible UI change | [Tutorial: First plugin](/build-on-omnichain/module-marketplace/first-plugin) |
108+
| Add plugin to a DEX app | [Tutorial: Integrate into host](/build-on-omnichain/module-marketplace/integrate-host) |
109+
| Marketplace login and submit | [Tutorial: Marketplace](/build-on-omnichain/module-marketplace/marketplace-submission) |
110+
| When to use widget vs page vs layout | [How-to: Plugin types](/build-on-omnichain/module-marketplace/plugin-types) |

build-on-omnichain/module-marketplace/host-integration-patterns.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Regardless of how the package is linked, the host must:
4949
1. Import the register function.
5050
2. Pass `plugins={[registerFn(...)]}` on `OrderlyAppProvider` (or equivalent app provider used by the host).
5151
52-
See [Tutorial: Integrate into host](integrate-host).
52+
See [Tutorial: Integrate into host](/build-on-omnichain/module-marketplace/integrate-host).
5353
5454
## Marketplace packages
5555

build-on-omnichain/module-marketplace/integrate-host.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Goal: Load an existing plugin package through OrderlyAppProvider
55

66
**Goal:** Load an existing plugin package through **`OrderlyAppProvider`**’s `plugins` prop.
77

8-
**Prerequisite:** A plugin package that exports a register function (e.g. `registerMyPlugin()`), either from [Tutorial 1](first-plugin) or published npm. Optional: **`orderly-devkit skills install`** plus [Skills-first workflow](skills-first).
8+
**Prerequisite:** A plugin package that exports a register function (e.g. `registerMyPlugin()`), either from [Tutorial 1](/build-on-omnichain/module-marketplace/first-plugin) or published npm. Optional: **`orderly-devkit skills install`** plus [Skills-first workflow](/build-on-omnichain/module-marketplace/skills-first).
99

1010
## Using agent skills for this tutorial
1111

@@ -59,7 +59,7 @@ orderly-devkit login
5959
orderly-devkit view <plugin-id>
6060
```
6161

62-
Read **`usagePrompt`** first when present—it describes integration steps from the author. The CLI **`view`** command requires authentication today (Bearer token); see [Agent skills alignment](agent-skills-alignment).
62+
Read **`usagePrompt`** first when present—it describes integration steps from the author. The CLI **`view`** command requires authentication today (Bearer token); see [Agent skills alignment](/build-on-omnichain/module-marketplace/agent-skills-alignment).
6363

6464
## 4. Register on `OrderlyAppProvider`
6565

@@ -96,7 +96,7 @@ grep -r "registerMyPlugin" src/
9696

9797
## Layout plugins
9898

99-
If the plugin targets **`Trading.Layout.Desktop`**, ensure you understand precedence between plugin layout strategies and host-provided `layoutStrategy` / `getInitialLayout`. See **`@orderly.network/layout-core`** on npm (layout customization docs) and the [plugin types](plugin-types) guide.
99+
If the plugin targets **`Trading.Layout.Desktop`**, ensure you understand precedence between plugin layout strategies and host-provided `layoutStrategy` / `getInitialLayout`. See **`@orderly.network/layout-core`** on npm (layout customization docs) and the [plugin types](/build-on-omnichain/module-marketplace/plugin-types) guide.
100100

101101
## Optional: Storybook
102102

build-on-omnichain/module-marketplace/interceptor-strategies.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ Return markup **without** rendering `Original` when you intentionally replace th
5555

5656
## Discovering targets
5757

58-
Authoritative paths in this handbook: [Runtime injector targets](runtime-injector-targets).
58+
Authoritative paths in this handbook: [Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets).
5959

6060
The devkit template lists a **subset** of targets for `--interceptor` (same page, **create plugin --interceptor subset**); your plugin code may target any injectable path the SDK exposes.
6161

6262
## Docs-first development
6363

64-
Use the Orderly SDK Docs MCP ([reference](mcp-sdk-docs)) to resolve component APIs: `orderly_docs_search`, then `orderly_docs_get_component` or `orderly_docs_get_type`. For narrative examples: `orderly_docs_get_component_doc`, `orderly_docs_get_workflow`, `orderly_docs_get_recipe`.
64+
Use the Orderly SDK Docs MCP ([reference](/build-on-omnichain/module-marketplace/mcp-sdk-docs)) to resolve component APIs: `orderly_docs_search`, then `orderly_docs_get_component` or `orderly_docs_get_type`. For narrative examples: `orderly_docs_get_component_doc`, `orderly_docs_get_workflow`, `orderly_docs_get_recipe`.
6565

66-
There is **no** `orderly_docs_get_hook` tool in the current server; use search + get_component/get_type instead ([alignment notes](agent-skills-alignment)).
66+
There is **no** `orderly_docs_get_hook` tool in the current server; use search + get_component/get_type instead ([alignment notes](/build-on-omnichain/module-marketplace/agent-skills-alignment)).

build-on-omnichain/module-marketplace/interceptors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description: "Guide for interceptor targets: runtime vs cli template"
55

66
## Runtime (SDK)
77

8-
Authoritative path strings for **`interceptors[].target`** live in this handbook: **[Runtime injector targets](runtime-injector-targets)**.
8+
Authoritative path strings for **`interceptors[].target`** live in this handbook: **[Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets)**.
99

1010
## Devkit template (`create plugin --interceptor`)
1111

12-
The CLI exposes a **fixed subset** for scaffolding prompts only—see the **create plugin --interceptor subset** section in [Runtime injector targets](runtime-injector-targets).
12+
The CLI exposes a **fixed subset** for scaffolding prompts only—see the **create plugin --interceptor subset** section in [Runtime injector targets](/build-on-omnichain/module-marketplace/runtime-injector-targets).
1313

1414
## Discovering more paths in development
1515

0 commit comments

Comments
 (0)