superwall/skills

superwall-editor

Build and edit live Superwall paywalls from the CLI.

All-time #4958 Trending #4531 Hot #541 First seen Apr 16, 2026
8-week activity · all time api

Installation

$ npx skills add superwall/skills --skill superwall-editor

Summary

  • Build and edit live Superwall paywalls from the CLI.
  • Attach to a running browser editor session using a pairing code, list the tools the browser exposes right now, and invoke them.
  • Covers native sw-* elements, editing workflow, design standards, and the attach/call/release lifecycle.
  • Use whenever the user wants to design, build, modify, or review a Superwall paywall, onboarding, or web2app flow.

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 superwall/skills.

npx skills add superwall/skills

Browse all from superwall/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 28
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,188 B
  • docs SUMMARY.md 422 B

History

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

SKILL.md

Superwall Paywall Editor

Paywalls are built in a browser editor that exposes its tools over an authenticated relay. This skill drives the same surface used by the MCP gateway, so every tool runs inside the live browser session the user has open.

When to use

  • The user wants to build, edit, or review a Superwall paywall, onboarding, or web2app flow.
  • The user pastes a pairing code and asks you to take over editing.
  • The user asks "what tools can you run right now?" Discover them via the browser, not from memory.

Start here: attach, then discover

Never assume a tool name or signature from memory. The browser is the source of truth and its tool set changes across releases.

Preferred API launch flow:

  1. Create an auto-expose URL: scripts/sw-editor.sh expose --application-id <id> --paywall-id <id> --agent-name <agent> --open --wait
  2. Ask the user to complete browser authorization if prompted. The editor auto-exposes; do not ask them to click the expose button.
  3. Discover what is available right now: scripts/sw-editor.sh tools
  4. Invoke tools: scripts/sw-editor.sh call <tool-name> --args '<json>'

Fallback manual flow:

  1. Ask the user for the pairing code shown in the editor UI.
  2. Attach: scripts/sw-editor.sh attach <pairing-code>
  3. Continue with tools and call.

Full CLI reference: [references/cli.md](references/cli.md).

How to build and edit

  • Workflow, build order, and when to use which tool: [references/workflow.md](references/workflow.md)
  • Native sw-* elements (multiple-choice, indicator, drawer, picker, lottie, navigation): [references/native-elements.md](references/native-elements.md)
  • Design standards, review checkpoints, typography, and conversion principles: [references/design.md](references/design.md)

Orchestration rules

  • Always establish an attachment before editing. Use expose --open --wait when possible, otherwise use attach <pairing-code>. tools, call, status, release all require an attached session.
  • Prefer expose --open --wait when you have SUPERWALLAPIKEY, an application id, and a paywall id. It uses the same relay as manual pairing but removes the human pairing-code step.
  • Before calling a tool you have not used this session, run tools to confirm it exists and to read the current parameter schema. Tools are defined in the browser bundle, so an updated editor can ship new or renamed tools without changing this skill.
  • Use get_screenshot (if present in the tool list) every two or three modifications to verify. Don't fly blind.
  • Prefer semantic tools (updatestyles, settextcontent, setdynamicvalue, movenodes) over re-running write_html on existing structure. See references/workflow.md.
  • Prefer native sw-* elements over hand-rolled <div> recreations whenever the UI represents a semantic control. See references/native-elements.md.
  • When parsing CLI output, use jq, not Python. Example: sw-editor.sh call get_subtree --args '...' | jq -r '.content[0].text'
  • Release when the user is done: scripts/sw-editor.sh release.

When things go wrong

  • sessionnotready: the browser disconnected or reloaded. Ask the user to bring the editor tab back, then re-attach. The pairing code rotates, so they must provide the new one.
  • session_locked: another client is already attached. The user either attached from another MCP client, or a previous CLI attachment wasn't released. They can detach from the editor UI and you can retry.
  • unauthorized: the controller token is stale. Re-attach with a fresh pairing code.
  • attach_failed: provide a valid current pairingCode: pairing codes expire after ~10 minutes and rotate on detach. Ask the user to show you the current one.