Creates XLA Pages on x.la in Shop Builder from a reference page on the site: game, payment provider and coin pages of @xla-pages blocks bound to the XLA Pages API, by duplication or from scratch. Use for "create pages for x.la", "generate XLA game pages", "add a Klarna payment page on x.la" or an XLA Pages batch file. Never publishes. For any other Shop Builder site, use nocode-shop-setup.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Xla Pages?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/xsolla-xla-pages)
---
name: xla-pages
description: >-
Creates XLA Pages on x.la in Shop Builder from a reference page on the site: game, payment
provider and coin pages of @xla-pages blocks bound to the XLA Pages API, by duplication or
from scratch. Use for "create pages for x.la", "generate XLA game pages", "add a Klarna
payment page on x.la" or an XLA Pages batch file. Never publishes. For any other Shop
Builder site, use nocode-shop-setup.
metadata:
owner: a.pyanzin
domain: store
status: draft
---
# XLA Pages
Add pages to the XLA Pages site in Shop Builder. Every new page is modelled on a **reference
page that is already on the site**: its blocks, their versions and their data bindings are read
from the site, never typed. A row of the batch says only what differs: the path, the name, the
canonical URL, the games filter and a few static values.
The scripts do the checking; follow their output and never work around a refusal. The general
Shop Builder rules (standard blocks first, Custom Blocks where needed, theme and copy from a
brief) don't apply to these pages.
**CLI referrer.** Prefix every `xsolla` command you run with
`XSOLLA_REFERRER="xsolla-ai-kit/<version> (<agent>)"`: `<version>` is the `version` in the
kit's `.claude-plugin/plugin.json`, and `<agent>` is `claude-code`, `codex`, `cursor`,
`gemini-cli` or `other`. Each command gets its own shell, so prefix each one; don't rely on
an `export`. In PowerShell, set `$env:XSOLLA_REFERRER` in the same command. The kit's
scripts set it themselves.
## Before anything
- **The site.** One Shop Builder site, written in its draft only. Its merchant, project and slug
live in the user's `.xsolla/xla-pages.json`, never in this repository (it's public):
```json
{"merchant_id": 0, "project_id": 0, "site_slug": "<slug>", "write_to_published_site": true}
```
Add `.xsolla/` to the project's `.gitignore` before the first file goes there. The site is
live: `write_to_published_site: true` is the one exception to "never write to a published
site", and only for that configured site. Ask the user for these values if the file is missing.
- **A copy first.** For a kind of row that has not run on this site before, point a second config
at an unpublished copy of the site (`--config`) and run the whole flow there. A person makes
the copy; this skill never duplicates or deletes a site.
- **The CLI.** Xsolla CLI 1.10.0 or later, signed in (`xsolla auth login`, in the user's own
terminal) and pointing at that merchant and project with sandbox mode off
(`xsolla config list --json`). If it points elsewhere, switch it and say so, with the undo.
- **The batch.** `{"pages": [...]}`, one row per new page; [the batch reference](references/batch.md)
lists the keys and has examples. Ask the user which page to model each row on, when it isn't
obvious from the paths already on the site.
## Steps
All scripts are in `scripts/` and run with `python3 -I`. Keep each run's files in a new
`.xsolla/xla-<UTC time>/` folder.
1. **Backup.** `backup.py --out-dir <run>/backup` saves the structure, the data connections and
the localization. It is the backup and the plan's source. Shop Builder's version history is
not a backup: restoring a version drops the data connections.
2. **Plan.** `render_plan.py --batch <batch.json> --backup-dir <run>/backup --output
<run>/plan.json`. It refuses a reference that isn't on the site, a taken or malformed path, an
override of a field that is bound to data, a field the reference block doesn't have, a games
filter the catalog returns nothing for, and a batch that would pass the site's 100 pages. Then
`cli_gate.py --plan <run>/plan.json` says whether the CLI can apply it.
3. **One approval.** Show, in one message:
- every page: its path, name, method, the reference it is modelled on, its blocks with
versions in order, its paths provider input (the games filter) or that it shares the
reference's, every override word for word, and its canonical URL;
- the plan's `notes` and the gate's result;
- that the Pages team publishes this site themselves, and their next publication ships these
draft changes to x.la.
Ask for one explicit yes. A request to "create the pages" is not that yes. When the gate
reports missing commands, show the plan and the reason and don't ask for the yes.
4. **Apply.** `apply_pages.py --plan <run>/plan.json --confirmation-id <its confirmation_id>
--backup-dir <run>/backup`. Before the first write it stops, with zero writes, on: an edited
plan, a wrong confirmation id, another backup, another site, a published site the config
doesn't allow, the wrong CLI target, a site that changed since the backup, or a missing
command or flag. It reads every page back as soon as it is created and stops at the first one
that differs from its plan.
5. **Check and hand off.** Report every page's result and `created_pages`. The check compares
data, not rendering: a person opens the new pages in the Editor before anyone publishes.
`verify_pages.py --plan --backup-dir` runs the same check again at any time. Say that nothing
was published.
## Two ways to create a page
- **`duplicate`** (the default). `duplicate-page` copies the reference with its blocks, versions,
bindings, texts and SEO; the row then changes the name, path, canonical URL and the listed
fields. Without `mode` a dynamic copy shares the reference's paths connection, which is right
when the pages list the same games (the coin pages). With `mode` it gets its own.
- **`scratch`**. `add-page` creates an empty dynamic page with its paths provider, then each block
is created at the reference's version and its fields are bound to the page's own data
connection. Use it when there is no page to copy on that site, or for another paths provider
(`provider_input`). It takes about six times the writes, and a block created today takes the
current schema of its version, which can differ from an older block's.
## When something changes
- **The site changed after the backup** (the Pages team edits it too): back up again, render
again, show the new plan, and ask again.
- **A run that stopped partway** lists `created_pages`, read back from the site. Show them. A
person deletes an unfinished page in the Editor; the skill deletes nothing. Then back up and
plan the remaining rows. Never retry blindly: the path of a half-made page is taken.
- **The catalog returns no games for a filter:** the games don't record that payment method yet.
That is fixed in the XLA Pages API by its owners, not by a row.
## Hard stops
- Never publish, enable a preview, run `verify-website`, or apply or restore a site version.
- Never call `patch-block`: with part of a block's values it replaces all of them. Field changes
go through `update-block` with exact paths, as the scripts do.
- Never type game data (titles, prices, SKUs, images, FAQ) into a block; never override a bound
field.
- Never pass `--force`; never call a command outside `scripts/xla_common.py`'s list.
- Never delete or move a page or a block, and never change a page that was on the site before
the run.
- Never write to the catalog, LiveOps or the XLA Pages API.
- Never write to a site other than the configured one.
- Never commit `.xsolla/`, a plan or a backup: they hold real IDs.
## Known limits
Changing an existing page is not supported. Rendering is not checked. A path takes one `:param`.
A paths provider must already be registered in Site Builder. [README.md](README.md) lists what a
real site has confirmed and what it has not.