subgames

Integrate sub.games subscriptions into browser games with tier gating.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/subdotgames/skills --skill subgames
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subgames
Source: https://github.com/subdotgames/skills/tree/main/skills/subgames
Command: npx skills add https://github.com/subdotgames/skills --skill subgames

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Integrates sub.games subscriptions into a browser game, enabling tier-based gating, in-app prompts, and a global registration flow to monetize gameplay.

Core Features & Use Cases

  • Integrates the @subgames/sdk into the game and provides pause/unpause handling when modals appear.
  • Adds tier-gating and sparkle markers for gated UI elements.
  • Registers the game on sub.games and offers a guided setup for common engines.

Quick Start

Tell Claude Code to add sub.games subscriptions to my browser game.

Frequently Asked Questions about subgames

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add subscription gating to a browser game?

You can add subscription gating to a browser game by integrating the @subgames/sdk, which handles tier-based content access, paid prompts, and modal pause/unpause events automatically.

Can I use the subgames SDK with Phaser, Pixi.js, or Three.js?

Yes, the subgames subscription integration supports Phaser, Three.js, Pixi.js, Canvas, and plain HTML games by providing framework-specific pattern references for correct setup.

What is tier-gating in browser games and how does it work?

Tier-gating in browser games restricts specific content based on subscription level, using SDK checks to lock elements and display sparkle markers on gated UI components.

How do I install the subgames SDK via npm or CDN?

Install the subgames SDK via npm or CDN by following the SKILL.md instructions, which cover initialization steps, framework pattern references, and global registration on sub.games.

Do I need a deployed game to integrate subgames subscriptions?

You need a deployed or local browser game environment to integrate subgames subscriptions, as the SDK requires an active game instance to hook into for pause handling and tier gating.

How do I handle pause and unpause events when subscription modals appear?

Handle pause and unpause events during subscription modals by using the subgames SDK's built-in event listeners to halt and resume game logic seamlessly during paid prompts.