saleor/app-sdk/app-bridge-actions

Claude Code and agent skill by saleor/app-sdk

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

How to add or change app-to-Dashboard communication in @saleor/app-sdk's App Bridge. Use when adding a Dashboard command, iframe resize/sizing, exporting a postMessage helper, or reviewing a PR that introduces a new message type. Enforces the actions + dispatch pattern and prevents a second, parallel postMessage protocol.

Install

npx vskill@latest install saleor/app-sdk/app-bridge-actions

SKILL.md

The same SKILL.md was published earlier as saleor/app-sdk/app-bridge-actions.

App Bridge Actions

Guide for extending the app-to-Dashboard communication layer in @saleor/app-sdk. The app (inside the Dashboard iframe) sends commands through exactly one channel: an actions.* action sent via appBridge.dispatch(). These rules keep new features on that channel instead of inventing a parallel postMessage protocol.

Why App Bridge Exists

Apps are third-party web apps embedded in the Dashboard via a cross-origin <iframe>. That boundary blocks shared JS, DOM, and cookies, so the browser's only sanctioned transport is window.postMessage. App Bridge is the typed wrapper over that single link: app → Dashboard = actions (`dispatch`), Dashboard → app = events (`subscribe`). There is one physical pipe — a second message protocol isn't a new capability, just an ungoverned use of the same pipe. That is why every command must be an action.

When to Apply

  • Adding a new app → Dashboard command (redirect, notification, resize, popup close, etc.)
  • Reporting iframe size / height / layout to the Dashboard
  • Adding or exporting a helper or hook that calls window.parent.postMessage
  • Reviewing a PR that introduces a new postMessage type string or message constant
  • Touching src/app-bridge/actions.ts, app-bridge.ts, or index.ts

Rule Categories

PriorityCategoryImpactPrefix
1App BridgeCRITICALappbridge-

Quick Reference

1. App Bridge (CRITICAL)
  • appbridge-use-dispatch — Use actions.* + dispatch(), never manual postMessage; helpers/hooks wrap dispatch; fire-and-forget for frequent actions
  • appbridge-add-action — Recipe for adding an action in actions.ts (ActionType → payload → creator → register → test)
  • appbridge-release-safety — The action type, exported constants, and helper signatures are public API; pre-release/breaking-change checklist

How to Use

Read individual rule files for explanations and code examples:

rules/appbridge-use-dispatch.md
rules/appbridge-add-action.md
rules/appbridge-release-safety.md

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
56
Repository forks
21
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/saleor/app-sdk/app-bridge-actions/badge)](https://verified-skill.com/skills/saleor/app-sdk/app-bridge-actions)

Something wrong with this skill or its page? Tell us.