Xpersona
I

IGA Pages

CLAWHUB · Unverified

Deploy frontend and full-stack projects to IGA Pages. Use when the user mentions IGA Pages or requests deployment ("deploy my app", "publish this site", "push this live", "deploy and give me the link", "create a preview deployment", "deploy to IGA Pages", "ship to production"). Also use for API, end

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17atpqrxe7cbntet1dw7y6rp183gvp5:iga-pages
  1. Install using `clawhub skill install s17atpqrxe7cbntet1dw7y6rp183gvp5:iga-pages` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/seasonrui/iga-pages before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-seasonrui-iga-pages/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

116,095 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: iga-pages
description: Deploy frontend and full-stack projects to IGA Pages. Use when the user mentions IGA Pages or requests deployment ("deploy my app", "publish this site", "push this live", "deploy and give me the link", "create a preview deployment", "deploy to IGA Pages", "ship to production"). Also use for API, endpoint, or backend-service work only when the user explicitly mentions IGA Pages, Pages Functions, or an existing IGA Pages project.
metadata:
  author: iga-pages
  version: "1.0.10"
---

# IGA Pages Skill

Two areas: **CLI** (`iga` tool for auth, link, dev, build, deploy, env, integration) and **Project development** (functions, API routes).

Run `iga <command> -h` for full flag details.

## Critical: CLI Version

The `@iga-pages/cli` version must be **>= 1.1.0**. Check with `iga --version`; if it's older (or not installed), upgrade before running any other command:

```bash
npm i -g @iga-pages/cli@latest
```

## Critical: Framework Compatibility

Supported frameworks: Next.js, Vite, Vue CLI, Create React App, Angular, Hexo, Docusaurus, VitePress, VuePress, Hugo, Astro, Nuxt. Frameworks not in this list (e.g. Remix) are unsupported — **proactively inform the user** before proceeding.

Pure static assets (plain HTML/JS/CSS) can also be deployed — the project root is used as the output directory by default.

## Critical: Login Authentication

Before any deploy or link command, ensure an authenticated session exists. **Always check first with `iga whoami`** — if it prints an Account Name / Account ID, the existing credentials in `~/.iga/auth.json` are valid and **you must skip `iga login`**. Only run `iga login` when `whoami` fails (no credentials, expired, or error).

When login is actually needed, the method depends on the environment:

- **Local IDE** (VS Code, TRAE desktop, etc.) → browser login:

  ```bash
  iga login
  ```

  Wait for the user to complete browser auth. The CLI prints a success message when done.

- **Remote / headless environment** (SSH, Cowork, CI/CD, cloud dev container, etc.) → AK/SK login:
  ```bash
  iga login --accessKey <YOUR_AK> --secretKey <YOUR_SK>
  ```
  Browser-based login is unavailable in headless environments; AK/SK is the only option.
  Obtain AK/SK from the [Volcengine IAM console](https://console.volcengine.com/iam/keymanage).

To determine the environment: if the session has no display or browser access (e.g., `$SSH_CONNECTION` is set, running inside a container, or the user mentions they are on a remote machine), default to AK/SK login. Otherwise, prefer browser for its simplicity.

## Critical: Working Directory

Run project-scoped commands such as `pages link`, `dev`, `build`, and `deploy` **inside the project root**. Scaffolding tools (`create-next-app`, `npm create vite`, `hugo new site`, etc.) create a subdirectory — you **must `cd` into it** before those commands:

```bash
npx create-next-app@latest my-app --yes
cd my-app && iga pages deploy --name my-app
```

## Critical: 

_meta.json

{
  "ownerId": "kn770f7zskcdy6aay5ffrj03vn836whk",
  "slug": "iga-pages",
  "version": "1.0.6",
  "publishedAt": 1786518638473
}

references/env.md

# Environment Variables (`iga pages env`)

All `env` commands require the directory to be linked to a Pages project (`iga pages link` writes `.iga/project.json`). If not linked, the CLI tells the user to run `iga pages link` first.

Changes to `add`/`update`/`remove` edit **remote project config**, not local files, and only take effect on the **next deployment** — the CLI says so after each write.

```bash
iga pages env list                 # or: env ls — shows KEY names only, never values
iga pages env list --format=json   # as JSON
iga pages env add <NAME>           # prompts for value (hidden input)
iga pages env add <NAME> --value <v> --yes   # non-interactive / CI
iga pages env update <NAME>        # change an existing variable's value
iga pages env update <NAME> --value <v> --yes
iga pages env remove <NAME>        # or: env rm — asks for confirmation
iga pages env remove <NAME> --yes  # skip confirmation (required when no TTY)
iga pages env pull                 # write all project env to local .env.local
```

Notes:

- `list` / `pull` merge plain project env with integration-managed vars (e.g. Supabase). `list` shows keys only — values are never printed.
- Integration-managed vars are read-only; manage them via `integration link`/`unlink`.
- `pull` writes project env vars, including integration-managed vars, to local `.env.local` for local development. Treat the file as sensitive and do not commit it; deployment does not require `env pull`.

references/functions.md

# Serverless Functions (API Routes)

IGA Pages provides file-system based Node.js Serverless Functions. Create an `api/` directory in your project root — each `.js` or `.ts` file automatically maps to an HTTP route.

## Quick Start

Create `api/hello.js`:

```js
export function GET(request) {
  return Response.json({ message: "Hello from IGA Pages!" });
}
```

Start the dev server (install the CLI globally first):

```bash
npm i -g @iga-pages/cli
iga pages dev
```

Visit `http://localhost:3000/api/hello`.

## Routing Rules

The `api/` directory structure maps directly to URL paths. Three route types are supported:

```
api/
├── index.js                    → /api                (static)
├── hello.js                    → /api/hello          (static)
├── users/
│   ├── list.js                 → /api/users/list     (static)
│   └── [id].js                 → /api/users/:id      (dynamic)
├── [id].js                     → /api/:id            (dynamic)
├── group/
│   └── [id]/
│       └── detail.js           → /api/group/:id/detail  (dynamic)
└── [[default]].js              → /api/:default*      (catch-all)
```

**Priority order** (highest → lowest): static > dynamic > catch-all.

### Routing Details

- Trailing slash is optional: `/api/hello` and `/api/hello/` both match `api/hello.js`
- Dynamic `[id]` requires a value: `/api/users/123` matches `api/users/[id].js`, but `/api/users/` does not
- Catch-all `[[default]]` matches any path: both `/api/` and `/api/anything` match `api/[[default]].js`

## Function Handlers

Use the Web-standard `Request` → `Response` contract. Parse the request through
the standard APIs and return a `Response`.

### Fetch handler

Use a default-exported object with `fetch(request)` when one function must dispatch
multiple methods itself:

```js
// api/handler.js
export default {
  async fetch(request) {
    if (request.method === "POST") {
      return Response.json(await request.json(), { status: 201 });
    }

    return Response.json({ method: request.method });
  },
};
```

### Named HTTP method exports

Export the methods the route accepts. Supported names are `GET`, `POST`, `PUT`,
`PATCH`, `DELETE`, `HEAD`, and `OPTIONS`. An unsupported method receives `405` and
an `Allow` header automatically.

```js
// api/users/[id].js
export function GET(request) {
  const { id } = request.params;
  const { searchParams } = new URL(request.url);

  return Response.json({
    id,
    include: searchParams.get("include"),
  });
}

export async function PATCH(request) {
  const update = await request.json();
  return Response.json({ update });
}
```

`request` is the standard Web `Request`; IGA Pages additionally exposes dynamic
route segments as `request.params`. Use `new URL(request.url)` for query params,
`request.headers` for headers and cookies, and `request.json()`, `request.text()`,
or `request.arrayBuffer()` for the request body.

## Express / Koa

Export an Express or Koa app instance as the default export. The file must use `[

references/integration.md

# Integrations (`iga pages integration`)

Connect an existing external resource (currently **Volcengine Supabase** only) to the Pages project so its connection variables are synced as project env. The CLI does **not** create, delete, or modify anything inside Supabase — it only manages the IGA-side binding.

All `integration` commands require the directory to be linked to a Pages project (`iga pages link` writes `.iga/project.json`). Changes take effect on the **next deployment**.

```bash
iga pages integration list         # bindings on the current Pages project
iga pages integration list --format=json    # as JSON

iga pages integration link supabase             # interactive
iga pages integration link supabase --format=json   # as JSON; returns next missing flag until all provided
iga pages integration unlink                     # interactive: pick a binding to remove
iga pages integration unlink --format=json --yes # as JSON (requires --yes)
```

Non-interactive link (all selection flags required when there's no TTY):

```bash
iga pages integration link supabase \
  --product volc_supabase \
  --region cn-beijing \
  --resource <workspace-name-or-id> \
  --branch <branch-name-or-id> \
  --yes
# --prefix and --framework-prefix are both optional:
#   --framework-prefix is auto-detected from the framework; pass it only to override.
#   --prefix is optional for the first Supabase binding; required from the second binding onward.
```

Non-interactive unlink:

```bash
iga pages integration unlink supabase --product volc_supabase \
  --resource <workspace-name-or-id> --branch <branch-name-or-id> --yes
```

Key behaviors:

- **Only `supabase` / `volc_supabase`** are supported this release. `--product comm_supabase` (Supabase Community) is rejected — tell the user it's not supported yet.
- **Cross-service authorization**: before linking, the CLI checks a role; if not authorized it opens the Volcengine IAM authorization page and waits for the user to confirm. In non-TTY it errors with the auth URL. Linking can't proceed until authorized.
- **`--resource` / `--branch`** match either the display name (`WorkspaceName` / `Branch`) or the stable ID (`WorkspaceID` / `BranchID`). Ambiguous matches in non-TTY error out — pass a unique ID.
- **`--framework-prefix`** (optional) is the client-exposed env prefix (`NEXT_PUBLIC`, `VITE`, `PUBLIC`, `REACT_APP`). The CLI auto-detects the framework and uses it as the default; in TTY it prompts for confirmation, in non-TTY it uses the detected value silently. Pass `--framework-prefix` only to override the detected default.
- **`--prefix`** (custom prefix) is **optional for the first** Supabase binding but **required from the second onward**, to avoid env name collisions. Uniqueness is enforced by the backend; on a conflict the CLI surfaces the error and re-prompts.
- **Resulting var names**: client vars are `<framework-prefix>_<custom-prefix?>_SUPABASE_<KEY>`; server-only vars omit the framework prefix. The service-role

Sponsored

Ads related to IGA Pages and adjacent AI workflows.