Page Agent
Tommy-yw/RunbookHermes
Embed alibaba/page-agent into your own web application — a pure-JavaScript in-page GUI agent that ships as a single <script tag or npm package and lets end-users of your site drive the UI with…
Writes PocketBase server-side JavaScript in the Goja JSVM: pbhooks, routerAdd, record hooks, cron jobs, and synchronous $app APIs.
$ npx skills add pockethost/pockethost --skill pocketbase-jsvm -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pockethost/pockethost pocketbase-jsvm --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/pocketbase-jsvm .claude/skills/pocketbase-jsvm && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pocketbase-jsvm" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm into .claude/skills/pocketbase-jsvm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-jsvm", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvmType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pockethost/pockethost --skill pocketbase-jsvm -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pockethost/pockethost pocketbase-jsvm --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/pocketbase-jsvm .agents/skills/pocketbase-jsvm && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pocketbase-jsvm" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm into .agents/skills/pocketbase-jsvm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-jsvm", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pockethost/pockethost --skill pocketbase-jsvm -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pockethost/pockethost pocketbase-jsvm --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/pocketbase-jsvm .cursor/skills/pocketbase-jsvm && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pocketbase-jsvm" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm into .cursor/skills/pocketbase-jsvm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-jsvm", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pockethost/pockethost.git --path .cursor/skills/pocketbase-jsvm--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pockethost/pockethost --skill pocketbase-jsvm -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pockethost/pockethost pocketbase-jsvm --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/pocketbase-jsvm .gemini/skills/pocketbase-jsvm && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pocketbase-jsvm" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm into .gemini/skills/pocketbase-jsvm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-jsvm", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pockethost/pockethost pocketbase-jsvmInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pockethost/pockethost --skill pocketbase-jsvm -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/pocketbase-jsvm .github/skills/pocketbase-jsvm && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pocketbase-jsvm" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm into .github/skills/pocketbase-jsvm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-jsvm", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pockethost/pockethost --skill pocketbase-jsvm -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pockethost/pockethost pocketbase-jsvm --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pockethost/pockethost.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/pocketbase-jsvm .opencode/skills/pocketbase-jsvm && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pocketbase-jsvm" agent skill from https://github.com/pockethost/pockethost/tree/main/.cursor/skills/pocketbase-jsvm into .opencode/skills/pocketbase-jsvm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pocketbase-jsvm", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pocketbase-jsvmWrites PocketBase server-side JavaScript in the Goja JSVM: pbhooks, routerAdd, record hooks, cron jobs, and synchronous $app APIs.
Pocketbase Jsvm is an agent skill from pockethost/pockethost. Writes PocketBase server-side JavaScript in the Goja JSVM: pbhooks, routerAdd, record hooks, cron jobs, and synchronous $app APIs. Use for .pb.js files, pbhooks, pbmigrations JS, or server-side PocketBase extensions — not the npm JS SDK. Read quirks.md for Goja gotchas (toString, json fields, hoisting, BadRequestError). Always check target PocketBase version: v0.22 and v0.23+ use different JSVM APIs and docs. PocketBase watches pbhooks JS on disk and hot-reloads hooks inside the running process without exiting.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `app-store.md`, `constraints.md` and `hooks-examples.md`).
It sits in Backend & APIs, covering Backend development. It works with JavaScript and npm. The repository describes itself as: Open source multitenant PocketBase server. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 82c9ba3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
pocketbase.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Pocketbase Jsvm loads about 2.7k tokens when it runs. Until then it costs about 134 tokens; SKILL.md has 775 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pockethost/pockethost at commit 82c9ba3, republished under its MIT licence (© pockethost). 775 words, ~2,724 tokens.
.claude/skills/pocketbase-jsvm/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.PocketBase embeds a Goja JavaScript engine for server-side extensions. Code runs inside the PocketBase process — synchronous, no Node/Browser APIs.
v0.23 is a breaking JSVM boundary. PocketHost runs both legacy (≤ v0.22) and modern (≥ v0.23) instances. Always confirm the instance PocketBase version before writing or porting hooks — do not mix APIs across versions.
| ≤ v0.22 | ≥ v0.23 | |
|---|---|---|
| Overview | old/js-overview | js-overview |
| API reference | old/jsvm | jsvm |
| Typings (PocketHost) | packages/pockethost/src/instance-app/v22/types/types.d.ts | pb_data/types.d.ts on instance; PocketHost templates in instance-app/v23/ |
| Record access | $app.dao().findRecordById(...) | $app.findRecordById(...) |
| Startup hook | $app.onBeforeServe().add((e) => { ... }) or onAfterBootstrap | onBootstrap((e) => { e.next(); ... }) |
| Custom routes | (c) =>, c.pathParam('id'), path /api/foo/:id | (e) =>, e.request.pathValue('id'), path /api/foo/{id} |
| Record hooks | onRecordAfterCreateRequest, … | onRecordAfterCreateSuccess, … (call e.next()) |
| Admin auth table | _admins (passwordHash) | _superusers (password) |
| Admin UI plugins | N/A | $app.onServe() → e.uiExtensions (PB ≥0.37, experimental) — pocketbase-admin-plugins |
When in doubt, open the JSVM reference for that version — hook names, route handler signatures, and $app methods differ. For mothership v0.39 port work, read v023-upgrade.md and the official JSVM upgrade guide.
Before writing hook code, verify:
async/await, Promises, or .then()fetch, setTimeout, setInterval, DOM APIsfs, http, path, etc.)require() for modules (CommonJS only)$app / record APIs — not new PocketBase()$http.send() (sync), not fetch$app.store() values that cross requests: JSON.stringify/parse at boundaries — never mutate get() results in place (app-store.md)For full environment constraints, see constraints.md. Goja behavioral quirks (toString, hoisting, json fields, error sanitization): quirks.md.
pb_hooks/
├── main.pb.js # auto-loaded entry hooks
├── config/
│ └── config.js # shared module (require target)
└── posts.create.pb.js*.pb.js files are auto-loaded as hook entry points..js files loaded via require().${__hooks} for the hooks directory path:const config = require(`${__hooks}/config/config.js`)PocketBase watches hook JS on disk (pb_hooks/*.pb.js and files loaded via require()). When they change, it reloads hook code inside the running process — the PocketBase process does not exit. This is separate from PM2 or Docker restarts.
Operational implications:
git checkout, rsync, or deploy while PocketBase is running if the operation swaps hook files incrementally. A mid-checkout tree can be picked up and loaded as a torn mix of old and new code.v39.sh --forward keeps mothership stopped until checkout finishes, then pm2 reload).Names differ by version — check the JSVM reference for your target.
| Category | ≤ v0.22 examples | ≥ v0.23 examples | Purpose |
|---|---|---|---|
| Bootstrap | onAfterBootstrap, $app.onBeforeServe().add | onBootstrap (+ e.next()) | Startup initialization |
| HTTP routes | routerAdd(method, path, handler, ...middlewares) | same global, different handler arg | Custom API endpoints |
| Record hooks | onRecordBeforeCreateRequest, onRecordAfterCreateRequest | onRecordBeforeCreateRequest, onRecordAfterCreateSuccess, … | Validate/transform on CRUD |
| Model hooks | onModelBeforeUpdate, onModelAfterCreate | still available — verify in JSVM ref | Lower-level DAO events |
| Cron | cronAdd(id, expr, handler), cronRemove(id) | same | Scheduled jobs |
| Middleware | routerUse(...) | same | Global route middleware |
Collection-scoped hooks take the collection name/id as the last argument:
onRecordAfterCreateRequest((e) => {
const record = e.record
// ...
}, 'users')≤ v0.22 — Echo-style context c, colon params:
routerAdd('POST', '/test/:testId', (c) => {
const testId = c.pathParam('testId')
return c.json(200, { testId })
})≥ v0.23 — request event e, brace params:
routerAdd('POST', '/test/{testId}', (e) => {
const testId = e.request.pathValue('testId')
return e.json(200, { testId })
})With auth middleware (≤ v0.22 mothership pattern):
routerAdd('PUT', '/api/instance/:id', (c) => {
return require(`${__hooks}/mothership`).HandleInstanceUpdate(c)
}, $apis.requireRecordAuth())Request body (≥ v0.23) — use e.bindBody() + DynamicModel, not JSON.parse(readerToString(e.request.body)):
let data = new DynamicModel({ trusted_ips: [] })
e.bindBody(data)
data = JSON.parse(JSON.stringify(data)) // required before destructuring / $common validators
const { trusted_ips } = dataQuick reads: e.requestInfo().body. Raw stream: readerToString(e.request.body) only for webhooks / signature verification.
Full guide: request-body.md (includes BadRequestError wrapping for client-visible validation errors). Official docs: Reading request body.
Request body (≤ v0.22):
const body = $apis.requestInfo(c).dataClients call custom routes via pb.send() — see pocketbase-js-sdk.
≥ v0.23 — direct $app methods:
routerAdd('PATCH', '/posts/{postId}', (e) => {
const postId = e.request.pathValue('postId')
let data = new DynamicModel({ status: '' })
e.bindBody(data)
data = JSON.parse(JSON.stringify(data))
const record = $app.findRecordById('posts', postId)
record.set('status', data.status)
$app.save(record)
return e.json(200, { record })
})≤ v0.22 — go through $app.dao():
routerAdd('PATCH', '/posts/:postId', (c) => {
const postId = c.pathParam('postId')
const { status } = $apis.requestInfo(c).data
const record = $app.dao().findRecordById('posts', postId)
record.set('status', status)
$app.dao().saveRecord(record)
return c.json(200, { record })
})Raw SQL when needed:
$app.db().newQuery('SELECT * FROM posts WHERE id = {:id}')
.bind({ id: postId })
.one()Use synchronous $http.send():
const res = $http.send({
url: 'https://api.example.com/webhook',
method: 'POST',
body: { email: record.get('email') },
headers: { Authorization: 'Bearer ...' },
})Only process.env is shimmed:
const value = process.env.MY_SECRET || ''PocketHost injects env vars (e.g. ADMIN_SYNC in instance hooks).
// pb_hooks/utils.js
module.exports = {
mkLog: (ns) => (...args) => console.log(`[${ns}]`, ...args),
}// pb_hooks/main.pb.js
const { mkLog } = require(`${__hooks}/utils.js`)
const log = mkLog('main')pb_hooks/ via FTP; changes restart the instance.packages/pockethost/src/instance-app/v22/ (≤ v0.22) and v23/ (≥ v0.23) — compare _ph_admin_sync.pb.js for a side-by-side API diff.packages/pockethost/src/mothership-app/pb_hooks/ — port guide in v023-upgrade.md. Source is src/lib/handlers/; see .cursor/rules/mothership-hooks.mdcinstance-app/v22/types/types.d.ts (legacy instances); mothership-app/src/types/types.d.ts (control plane)$os — avoid OS-level calls.Handlers compile with tsdown into pb_hooks/mothership.js and run in Goja, not Node.
packages/pockethost/src/common/ — must be JSVM-safe (sync, no Node/browser APIs).$common/<file> subpaths (tsconfig "$common/*": ["../common/*"]). Avoid runtime imports from the $common barrel.[UNRESOLVED_IMPORT] warnings — unresolved imports break validation silently at runtime.// ✅ validateSshKey.ts — subpath bundles sshPublicKey.ts only
import { parseSshEd25519PublicKey } from '$common/sshPublicKey'
// ❌ tsdown won't resolve without tsconfig path
import { parseSshEd25519PublicKey } from 'pockethost/common'
// ❌ pulls unrelated common modules into pb_hooks
import { parseSshEd25519PublicKey } from '$common'$app.store() concurrencyConcurrent hooks must not share live Goja objects via $app.store(). Use JSON string boundaries and setFunc for atomic read-modify-write. See app-store.md.
See hooks-examples.md for copy-paste patterns from this repo and PocketHost docs.
instance-app/v22/types/types.d.ts; mothership: mothership-app/src/types/types.d.ts.pb_data/types.d.ts matches that instance's PocketBase version.© pockethost, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files in .cursor/skills/pocketbase-jsvm of pockethost/pockethost.
Open the folder on GitHubat commit 82c9ba3
Pocketbase Jsvm next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Pocketbase Jsvm this skillpockethost/pockethost | 1.4k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Page AgentTommy-yw/RunbookHermes | 546 | 3 repos | ~2.3k | Automated safety check: Notes | MIT | |
| Htmlhintmanagedcode/dotnet-skills | 486 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Dr Jskilljdubois/dr-jskill | 342 | — | ~4.6k | Automated safety check: Notes | Apache-2.0 | |
| Holm Webvolfpeter/holm | 132 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Documentation Guidevolfpeter/holm | 132 | — | ~1.4k | Automated safety check: Pass | MIT |
Tommy-yw/RunbookHermes
Embed alibaba/page-agent into your own web application — a pure-JavaScript in-page GUI agent that ships as a single <script tag or npm package and lets end-users of your site drive the UI with…
managedcode/dotnet-skills
Use HTMLHint in .NET repositories that ship static HTML output or standalone frontend templates.
jdubois/dr-jskill
Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker.
volfpeter/holm
A skill your agent uses when working on web apps built with holm, or to answer questions about holm.
volfpeter/holm
A skill your agent uses when writing or modifying documentation, guides, or example READMEs.
dotnet/skills
Establish MSBuild/.NET build performance baselines before optimizing.
pockethost/pockethost
Write PocketHost blog posts in Ben Allfree's voice (@cap'n).
pockethost/pockethost
Run pnpm check:push (lint, types, tests) before git push or PR-ready work.
pockethost/pockethost
Create scoped git commits from the current conversation (e.g.
pockethost/pockethost
Ship user-facing PocketHost features with a blog post instead of semver release notes.
pockethost/pockethost
Full Lemon Squeezy integration — REST API, @lemonsqueezy/lemonsqueezy.js server SDK, Lemon.js checkout overlays, webhooks, customdata, and subscriptions.
pockethost/pockethost
Models PocketBase backends: collections, relations, auth, API rules, migrations, and architecture.
Works with
Categories
Writes PocketBase server-side JavaScript in the Goja JSVM: pbhooks, routerAdd, record hooks, cron jobs, and synchronous $app APIs. Pocketbase Jsvm is an agent skill from pockethost/pockethost. Writes PocketBase server-side JavaScript in the Goja JSVM: pbhooks, routerAdd, record hooks, cron jobs, and synchronous $app APIs.
Pocketbase Jsvm fits situations like: pbmigrations JS; server-side PocketBase extensions — not the npm JS SDK.
Run `npx skills add pockethost/pockethost --skill pocketbase-jsvm -a claude-code`. Or copy the skill folder (.cursor/skills/pocketbase-jsvm in pockethost/pockethost) into .claude/skills/pocketbase-jsvm in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pockethost/pockethost --skill pocketbase-jsvm -a codex`. Or copy the skill folder (.cursor/skills/pocketbase-jsvm in pockethost/pockethost) into .agents/skills/pocketbase-jsvm in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pockethost/pockethost --skill pocketbase-jsvm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pocketbase-jsvm, .gemini/skills/pocketbase-jsvm, .github/skills/pocketbase-jsvm and .opencode/skills/pocketbase-jsvm in your project.
Going by SKILL.md and its folder, Pocketbase Jsvm needs the command-line tools its instructions call (git). Our summary lists: Docker.
SKILL.md names 1 domain. As links in the text: pocketbase.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Pocketbase Jsvm is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Pocketbase Jsvm: Page Agent (Tommy-yw/RunbookHermes, 546 stars), Htmlhint (managedcode/dotnet-skills, 486 stars), Dr Jskill (jdubois/dr-jskill, 342 stars) and Holm Web (volfpeter/holm, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pockethost (a GitHub organization) maintains it in pockethost/pockethost, which has 1,444 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 28, 2026.
Source: pockethost/pockethost on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.