Web SDK SKILL
The second skill introduced in Launch on ONEstore with AI. This page covers actual usage only.
Web SDK SKILL is a tool that lets an AI coding agent integrate the ONE store H5 Game SDK into your HTML5 web game for you. Just install it, then tell your usual AI tool what you want in plain language โ from loading the SDK to purchase and ad integration and the pre-release check.
onestore-web-sdk
To add the ONE store SDK to an HTML5 web game, integrate in-app purchase and in-app ads, and check it before release
Install
Before you start
You'll need an HTML5 web game project with an entry HTML file โ a vibe-coded game is fine too. The default install uses npx, so you'll need Node.js 22 or later. If you can't use Node.js, use the bash install script instead: macOS/Linux works out of the box; on Windows you'll need WSL or Git Bash.
Install it
Repo: github.com/ONE-store/onestore_web_sdk_skills
Copy the text below and paste it into your agent.
Run npx skills add ONE-store/onestore_web_sdk_skills in [my game project path]
to install the ONE store Web SDK SKILL.
Let me know the result in one line when done.cd <my game project path>
npx skills add ONE-store/onestore_web_sdk_skillsIt detects the agents used in your project and installs the skill for them. To target a specific agent, pass -a claude-code, for example.
git clone https://github.com/ONE-store/onestore_web_sdk_skills.git
cd onestore_web_sdk_skills
./install.sh <my game project path>Confirm it's installed
Ask "check the ONE store web game SDK integration status." If you get a status table back, you're set.
Where it runs
Claude Code
Cursor
GitHub Copilot (VS Code)
Gemini CLI
OpenAI Codex
Grok Build
What it can do
Diagnose status
๐ข Read-only
Not sure where to start, so you read through the whole guide
Reads your project and shows a table plus what to do next (each finding points to the file)
SDK integration
๐ก Modifies files
Working out SDK load placement, script execution order, and init by hand
Wires init โ loading โ start and pause/resume/exit handling for you, in the same order
In-app purchase
๐ก Modifies files
Granting items from the success response alone, discovered as a bug later
Adds purchase and product lookup code, plus the connection point for server-side verification
In-app ads
๐ก Modifies files
Granting rewards without being sure the ad was watched to the end
Adds rewarded and interstitial ad code, with branches that leave reward confirmation to the server
Embedding check
๐ข Read-only
The screen fails only inside the app, and you can't tell why
Points out the server and code requirements for the game to load inside the ONE store app (iframe)
Diagnose errors
๐ข Read-only
Search the error value and cross-reference the guide, guessing
Explains the cause, how to reproduce it, the fix, and what to verify
Pre-release check
๐ข Read-only
Go through a checklist by hand, top to bottom
Surfaces blockers first, and collapses everything that passed into a count
Try it โ natural language prompts
Copy these straight into your agent.
What can the ONE store web game skill do?
Lays out everything this skill can help with, then checks your integration status right away
What should I do next?
Re-checks current status and tells you what to ask for next
Check my ONE store web game SDK integration status
Shows what's done, what's left, and what to do next
Add the ONE store SDK
Walks through loading the SDK, the init โ loading โ start flow, and pause/resume/exit handling in order
Add ONE store in-app purchase
Adds purchase and product lookup code, and the connection point for verifying purchases on your server
Add a rewarded ad
Shows the reward only when the ad was watched to the end, and leaves the actual grant to your server
The screen is blank only inside the app
This is usually a server setting, not code. Narrows it down step by step, starting with the game URL's response headers (whether iframe embedding is allowed)
Check why I'm getting this error (paste the error log)
For example, if a purchase returns already_owned, it means "you bought an unconsumed product again." It explains the cause, and that consumption is your server's job
Run the pre-release check
Surfaces only what could block release; everything else is marked as passed
Call it with a command word
To pick a task directly, add a command word after the skill name. In Claude Code, type /onestore-web-sdk doctor, for example. In other tools, use that tool's way of invoking a skill, or ask in plain language like the prompts above.
doctor
Checks the current integration status (no file edits)
integrate
SDK load, boot flow, lifecycle handling
iap
In-app purchase and product lookup
ads
Rewarded and interstitial ads
embed
iframe embedding checks
fix <error or symptom>
Cause and fix for an error
check
Pre-release check (no file edits)
FAQ
Last updated

