/kernel-cli:create-agent-site-skillfrom kernel-cli
Creates reusable skills for automating specific websites using KERNEL cloud browsers. Guides building site-specific browser workflows into independently runnable tasks.
Ships in kernel-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
capture working browser workflows as independently runnable tasks in a reusable skill. reuse existing verified workflows; explore missing steps in a live browser within the user's authorized scope.
default to kernel browsers playwright execute and kernel browsers computer. load kernel-cli for installation, authentication, and command syntax.
if the caller specifies another harness, use its commands and record that dependency in the generated skill:
BU_CDP_WS/BU_NAME model.cdp_ws_url to the selected harness.adapt the command examples below to the selected controls; retain the session and credential requirements.
keep profiles and vaults scoped to both site and user: <site-name>-<user-id>. resolve the user id from runtime input or session context; never hard-code it in the shared skill. profiles contain authenticated cookies as well as storage.
for a site requiring login, create the profile and vault once, then reuse them. keep both in the same KERNEL project as the browser. run the creation commands only for resources confirmed absent:
PROFILE_NAME="<site-name>-<user-id>"
VAULT_NAME="<site-name>-<user-id>"
# First-time setup only:
kernel profiles create --name "$PROFILE_NAME"
kernel vaults create --name "$VAULT_NAME"
# Each run:
SESSION=$(kernel browsers create --profile-name "$PROFILE_NAME" --save-changes --stealth --vault "$VAULT_NAME" --timeout 600 -o json | jq -r '.session_id')
--stealth and attach the vault at creation time; neither can be added later. omit vault setup and --vault for sites that do not need login.--save-changes to persist cookies and storage when the session ends. allow enough discovery time with --timeout 600 rather than the cli's 60-second default.check whether the saved profile is already authenticated. if login is needed, use vault-backed credentials. never request raw credentials or store them in the skill or AGENTS.md.
inspect the login flow before defining its credential schema. record credential fields, types, required/sensitive flags, login stages, and field-to-selector mappings; refine these as additional stages become visible.
kernel browsers playwright execute "$SESSION" 'await page.goto("<login-url>")'
kernel browsers computer screenshot "$SESSION" --to /tmp/login.png
reuse the user's existing credential item and its field names. if absent, define it from the discovered schema without values; adapt this username/password example:
kernel vaults credentials create "$VAULT_NAME" <site-name>-login --spec-file - <<'JSON'
{
"description": "<Site Name>",
"fields": {
"username": {"type": "text", "required": true, "sensitive": false},
"password": {"type": "password", "required": true, "sensitive": true}
}
}
JSON
share the returned private collection url directly with the user. never open it in the agent-controlled browser. --wait 60 is a single bounded observation, not a retry — poll it while the item is pending and stop once it reaches a terminal state:
STATUS="pending"
while [ "$STATUS" = "pending" ]; do
ITEM=$(kernel vaults items get "$VAULT_NAME" <site-name>-login --wait 60 -o json)
STATUS=$(jq -r '.state.status' <<<"$ITEM")
done
if $STATUS is ready, the fill action is available — fill by field name and selector, adapting the fields and sequence to the observed form. for any other terminal status, stop and reconcile before proceeding.
kernel vaults items invoke "$VAULT_NAME" <site-name>-login fill --spec-file - <<JSON
{
"browser_id": "$SESSION",
"page_url": "<login-url>",
"fields": [
{"field": "username", "selector": "input[name='username']"},
{"field": "password", "selector": "input[name='password']"}
]
}
JSON
never read, print, screenshot, or return filled credential values. if the fill errors, times out, or returns a status other than completed, stop and reconcile before submitting. fill never submits, so a retry is safe. retry only after checking the page, and never in an automatic loop.
after a completed fill, submit and verify the expected logged-in state:
kernel browsers playwright execute "$SESSION" -o json '
await Promise.all([
page.waitForURL("<logged-in-url-pattern>", { timeout: 5000 }),
page.getByRole("button", { name: "Sign in" }).click()
]);
return page.url();
'
if an existing session lacks stealth and bot detection blocks login, delete it and recreate it with stealth. if login remains blocked, get browser_live_view_url with kernel browsers view "$SESSION" -o json, ask the user to log in manually, and verify the resulting state.
keep each requested task independently runnable, with shared setup and login prerequisites where needed.
for KERNEL's default controls:
return for verification results and -o json when parsing them. each playwright execute call has a fresh script context; the browser page persists.networkidle as the default success condition.page.frameLocator(...) for iframe interactions, including cross-origin frames.if Playwright cannot complete a step after 2–3 attempts, whether it errors, times out, or reports success without changing page state, use computer controls for that step. check the outcome before retrying an action that may already have succeeded.
kernel browsers computer screenshot "$SESSION" --to /tmp/state.png
kernel browsers computer drag-mouse "$SESSION" --point 100,200 --point 250,200 --point 400,200 --button left
kernel browsers computer click-mouse "$SESSION" --x 250 --y 60
kernel browsers computer type "$SESSION" --text "some text"
kernel browsers computer press-key "$SESSION" --key Return
read coordinates from the screenshot and record the viewport size alongside them. include intermediate drag waypoints so pointer sensors register movement. keep each gesture entirely within dom or computer controls; return to Playwright afterward where appropriate.
use the primary automation domain as the folder name: <skills-directory>/<domain>/SKILL.md. resolve the registered skill directory from the target agent's instructions.
adapt the template below using the verified commands and site-specific findings. include the chosen controls, setup, login if needed, and cleanup. keep generic cli documentation in the linked dependency skill.
save the discovered credential schema, field-to-selector mappings, login sequence, waits, and success checks in the shared skill. replace site-specific placeholders with verified details, but keep user ids, vault/item references, profile references, and account-specific url components as runtime inputs or resolve them from the current user's context. never hard-code the discovery user's values.
---
name: <descriptive-name>
description: <What the skill does and when to use it.>
---
# <Site Name>
## Setup
<Required tools and skill dependencies, runtime inputs, and tested session setup.>
## Login
<How to check existing authentication; tested vault-backed login and manual fallback if needed.>
## <Task Name>
<Required inputs and starting state.>
```bash
# Tested commands, including necessary waits and verification.
```
<Expected outcome and any task-specific recovery instructions. Repeat for each independent task.>
## Cleanup
<Commands to close the selected harness and delete the Kernel session.>
## Notes
<Observed quirks and workarounds; coordinate/viewport requirements where applicable.>
close any attached harness and delete the browser session created for discovery. deletion finalizes profile persistence:
kernel browsers delete "$SESSION"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kernel/skills --plugin kernel-cli8 skills in this plugin
/debug-browser-sessionSystematically debug a Kernel cloud browser session — VM issues, network errors, Chrome crashes, page-load failures, and live-view problems. Use when a browser session misbehaves (e.g. ERR_HTTP2_PROTOCOL_ERROR, "browser not responding", blank/error pages, captcha or "checking your browser" blocks, live view not loading) and you have the session ID. Drives the Kernel CLI to inspect session status, screenshots, page state, VM logs, network connectivity, and telemetry events (which remain readable even after the session is deleted)./diff-profile-archivesCompare two Kernel profile snapshots to investigate behavioral differences. Use when an issue (e.g. login failure, captcha, broken automation, vendor mismatch) reproduces on one profile but not another, or when a "good" vs "bad" profile needs to be diffed. Takes two profile IDs/names plus an issue description, downloads and extracts both profiles via the Kernel CLI, and surfaces differences in cookies, storage, preferences, extensions, and login state that could explain the issue./kernel-agent-browserBest practices for using agent-browser with Kernel cloud browsers. Use when automating websites with agent-browser -p kernel, tuning stealth or proxy behavior, persisting profiles, handling iframes, discovering Kernel session IDs or live views, or cleaning up cloud sessions.Other plugins' skills for the same job