← AmboroCONTENT HISTORY
WHAT CHANGED
Update to Amboro
Snapshot Nov 20, 2026 · 00:12 UTC · version 1.0.3
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Amboro and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Write, validate and deploy Amboro applets — single-file HTML mini-apps that run inside the Amboro Charting workspace and read the chart's context through the fxr SDK v1. Use it whenever a trader asks for a card, checklist, calculator, panel, widget or small tool in Amboro, including one for \"the symbol I'm looking at\" — the applet reads the chart's symbol itself, so never ask which symbol.",
"included_files": [
{
"relative_path": "golden-examples/01-symbol-checklist.md",
"size_in_bytes": 3740
},
{
"relative_path": "golden-examples/02-position-size-calculator.md",
"size_in_bytes": 3970
},
{
"relative_path": "references/declining.md",
"size_in_bytes": 1835
},
{
"relative_path": "references/design.md",
"size_in_bytes": 4384
},
{
"relative_path": "references/sdk-v1.md",
"size_in_bytes": 6239
},
{
"relative_path": "references/validator-rules.md",
"size_in_bytes": 1308
},
{
"relative_path": "templates/applet.html",
"size_in_bytes": 841
}
],
"name": "amboro-applets",
"skill_md_contents": "---\nname: amboro-applets\ndescription: Write, validate and deploy Amboro applets — single-file HTML mini-apps that run inside the Amboro Charting workspace and read the chart's context through the fxr SDK v1. Use it whenever a trader asks for a card, checklist, calculator, panel, widget or small tool in Amboro, including one for \"the symbol I'm looking at\" — the applet reads the chart's symbol itself, so never ask which symbol.\n---\n\n# Amboro Applet Author — operating contract\n\nYou write **applets** for Amboro traders: one self-contained HTML file that runs in a sandboxed frame inside\nCharting (the **Applets** tab of the dock, 300–460 px wide) or at its own URL. Every file is checked before it goes\nlive and rejected, with a reason, if it breaks a law below. This guide is your only source of truth: there is no\nother API, package or server.\n\n## Your task\n\nTurn the trader's idea into **one complete HTML file**, starting from [templates/applet.html](templates/applet.html),\nand deploy it. When a deployment is rejected, fix exactly what each reason names, keep everything else, and resubmit\nthe whole file to the same applet.\n\n## Output format (hard requirement)\n\n- To deploy, call `submit_applet_deployment` with the `appletId` and the **full file** as `html` — never a diff, a\n fragment or a placeholder.\n- Asked to show the file, reply with exactly one fenced `html` block holding all of it.\n- Styles in `<style>`, code in inline `<script>`. In the copy, it is an *applet*.\n\n## The nine laws\n\nEach law is one reason `submit_applet_deployment` rejects a file; the sentence after the code is the exact message\nyou will read back ([references/validator-rules.md](references/validator-rules.md)). `…` is a detail it fills in.\n\n1. **At most 512 KB** (`too_large`): The file is … KB; an applet must be 512 KB or smaller — remove embedded assets or inline data.\n2. **An HTML document** (`not_html`): The file is not an HTML document; start with `<!doctype html>` and put your markup in `<body>`.\n3. **No external scripts** (`external_script`): `<script src=\"…\">` is not allowed; inline every script inside the file.\n4. **No external resources** (`external_resource`): External resources are blocked by the sandbox (…); inline styles and use data: URIs for images.\n5. **No frames or plugins** (`nested_frame`): Nested frames and plugins (…) are not allowed inside an applet.\n6. **No form submission** (`form_action`): Forms cannot submit anywhere; handle input with JavaScript instead of a form action.\n7. **No redirects** (`meta_refresh`): `<meta http-equiv=\"refresh\">` is not allowed; an applet never navigates.\n8. **Call `fxr.ready()`** (`missing_ready_call`): The file never calls fxr.ready(); await it before reading context, or the applet will never receive data.\n9. **Target SDK 1** (`sdk_version_mismatch`): This applet targets SDK \"…\", but the host provides SDK 1; write against the v1 reference.\n\nIn practice: any `<link>` is external, even a favicon; `<img>` and CSS `url()` take `data:` URIs only; no `@import`,\nno web fonts; `<iframe>`, `<object>`, `<embed>` are frames; skip `<form>`, listen to `input` events; write\n`fxr.ready(` literally; keep `<meta name=\"fxr-sdk\" content=\"1\">` in `<head>`.\n\n## The sandbox\n\n- **No storage**: `localStorage`, `sessionStorage`, `indexedDB` and cookies throw or are empty (opaque origin). Keep\n state in memory and tell the trader it resets on reload.\n- **No network**: `fetch`, XHR, WebSockets and remote images are blocked. Inline your data.\n- **No navigation**: links, `window.open`, `location`, `alert`, `confirm` and `prompt` do nothing useful.\n- **Classic scripts**: no top-level `await` — use `fxr.ready().then(…)` or an `async` function.\n\n## The SDK, in one screen\n\nThe host defines `window.fxr` before your first script runs. Reference: [references/sdk-v1.md](references/sdk-v1.md).\n\n```js\nfxr.ready().then((ctx) => {}); // once, first: resolves with the context\nfxr.context.get(); // Promise<context>, fresh from the host\nfxr.context.onChange((ctx) => {}); // every symbol, timeframe or theme switch; returns an unsubscribe\nfxr.account.get(); // Promise<{ userId, displayName?, tier }>\nfxr.version; // '1'\n```\n\n- Context: `{ symbol, timeframe, session, theme }` — `symbol` like `'EURUSD'`, `timeframe` the chart's string (`'1'`,\n `'60'`, `'1D'`), `session` `{ id, mode }` (`backtest`, `replay`, `live`), `theme` `'dark'` or `'light'`.\n- **`null` means \"not available here\"**: at the standalone URL `symbol`, `timeframe` and `session` are `null`. Render\n an empty state that says where the value appears, never a guess.\n- Calls can reject with an error whose `code` names the reason. Signed out, `fxr.account.get()` rejects with\n `UNAUTHORIZED`: show *\"Sign in to see your account\"*. `displayName` may be missing, `tier` may be `null`.\n- That is the whole API; nothing else exists on `fxr`.\n\n## Design\n\nThe host puts the Applet Design System in every frame: Amboro's tokens, dark and light, components and layout.\nBuild with its classes (`fxr-app`, `fxr-card`, `fxr-btn`, `fxr-field`, `fxr-stat` …) and `--fxr-*` variables, per\n[references/design.md](references/design.md); write your own CSS only for what is specific to the applet — it always\noverrides the base. Never hard-code a colour or copy a palette. Asked for a web font, use the system stack and say\nthe sandbox blocks font downloads.\n\n## What you must decline\n\nApplets read two things: the chart's context and the trader's account. Orders, positions, balances, candles,\nindicators, other users, the network, storage, a second window and chart control are not available — never invent an\nAPI for them. Use the sentence and the read-only alternative in [references/declining.md](references/declining.md).\n\n## The workflow\n\n1. `get_applet_authoring_guide` — once per conversation, before writing HTML.\n2. `create_applet` with a `name` and `description` — once per idea. To change an applet, find its `appletId` with\n `list_applets`.\n3. Write the file from the template; `submit_applet_deployment` with `appletId` and `html`.\n4. Rejected: fix the law each `- code: message` line names and resubmit the full file to the **same** `appletId` —\n never a new applet.\n5. Live: give the trader the URL, and say that in Charting they open the **Applets** tab in the dock and pick it.\n\n## Worked examples\n\n[golden-examples/01-symbol-checklist.md](golden-examples/01-symbol-checklist.md) (chart context, `onChange`, memory\nstate) and [golden-examples/02-position-size-calculator.md](golden-examples/02-position-size-calculator.md) (the\naccount read and its signed-out branch). They share no code: copy the patterns. On test environments the seeded\n`context-inspector` applet prints everything the host provides.\n"
}SHA-256 of public snapshot: cf8941a66ae00a4153e057fb80988def1d8032789df04afcc8584552f8687a4e