kirodotdev/kirocrew/pod-e2e
Claude Code and agent skill by kirodotdev/kirocrew
- community
Checking that the SKILL.md file is still in the repository.
ONLY for developing Kiro Crew itself -- if the project you are working on is anything else, ignore this skill: it drives Kiro Crew's own pod tooling, which does not exist in another repository. Boots a Kiro Crew feature worktree's full stack as an ISOLATED throwaway pod and proves it boots, authenticates and renders (headless Playwright), without touching the live gateway. It does NOT run the worktree's test suite -- run the tests your change touches yourself and let CI own the full suite. Use when asked to e2e-test / smoke-test / verify a Kiro Crew worktree's feature hands-off, drive browser checks on a pod, or prove a new backend route + UI work together. NOT for testing the live instance, and NOT a general-purpose e2e or smoke-test skill.
Install
npx vskill@latest install kirodotdev/kirocrew/pod-e2eSKILL.md
The same SKILL.md was published earlier as kirodotdev/kirocrew/pod-e2e.
pod-e2e — test a worktree against an isolated full-stack pod
A worktree's full stack (backend API and frontend SPA) runs as one process on one port — exactly like a Docker container. The kirocrew pod CLI is the only interface you need: spin one up, get a {base_url, token} handle, test against it, tear it down and have the teardown VERIFIED. The live gateway is never touched.
Quickstart — run the bundled e2e suite
Expected success output — a POD-E2E SUMMARY ending like:
Exit code = number of failed phases (0 = all green) once phases run. Setup errors exit before any phase with their own codes (see the flag table below); a production-port SAFETY refusal exits 1. Then look at the evidence: Read the screenshots in that ARTIFACT_DIR (fe-smoke.png, plus any spec screenshots) to confirm the real UI rendered — not a 403/blank page.
To smoke-test isolation after it finishes:
The interface — pod tools if you are an agent, the CLI if you are a human
If you are an agent session, reach for the `pod_up` / `pod_restart` / `pod_down` / `pod_status` / `pod_ls` MCP tools before a shell. A pod is a systemd --user unit, so every pod verb needs the systemd user bus. Whether your shell can reach that bus depends on the sandbox your session runs behind: under Kiro Crew's own sandbox it can (see security.md, "Scoped user-bus locator forward"), but behind an outer sandbox with its own user namespace it cannot, and kirocrew pod up then fails with Permission denied. systemctl --user is-system-running tells you which case you are in. The tools work either way -- the gateway holds the host bus and does the systemd part -- so they are the portable choice, and the only one on a host that denies you the bus.
Reproducing an agent error state. A pod starts from the service manager's clean environment, so a KIROCREW_KIRO_BIN you export never reaches it. To see how the UI shows a broken kiro-cli (say one that prints error: unexpected argument '--auth-method' found), write a small executable script that prints that line to stderr and exits 2, then pod_up with "env": ["KIROCREW_KIRO_BIN=<its absolute path>"] (CLI: kirocrew pod up <wt> --env KIROCREW_KIRO_BIN=<path>). The pod boots even though that child cannot start, and the journal says so. Only KIROCREW_KIRO_BIN is accepted. The next pod_up without env clears it.
Provisioning is not one of them: a cold venv plus an SPA build is minutes of work, and a single blocking tool call for that dies to any timeout with no way to learn the outcome. An unbuilt worktree is refused with the CLI's own remedy in the message; run kirocrew pod provision <wt> or use the Dev Fleet page's Provision button, which streams its output.
Everything after step 1 below -- curl against the handle, drive the SPA with Playwright, read the screenshots -- is unaffected: those are ordinary loopback HTTP, which a sandbox does not block. Only the systemd control path is walled off.
The tools need the Dev Fleet app enabled; a disabled app refuses with app_not_enabled.
The CLI is the same operations for a human at a terminal:
The token is a link with two limits. The pod accepts the raw token for 5 minutes, and the first request that carries it opens a session, kept in a cookie, that lasts 2h (ttl in the JSON is that session lifetime). So use the token straight away and drive the pod with the session: keep curl's cookie jar from that first request (curl -c jar -b jar ...) or let Playwright keep its context. A ?token= sent after the window is refused with 403 token expired; pod_up (or kirocrew pod token <wt>) on the running pod leaves it running and returns a fresh token.
Showing a pod to the user. Do not emit a web-preview marker for a pod. The dashboard's Preview tab frames the URL, and a pod's gateway refuses to be framed by any other origin (X-Frame-Options: SAMEORIGIN, CSP frame-ancestors 'self'), so the tab stays blank even when the pod answers 200 on the same host. Hand the user a link to open in a browser tab instead: the open: line pod_up prints, with the token: line's value put in place of <token> (the line leaves it out), opened within its 5-minute window. The pod binds loopback only, so when it runs on a remote dev box and the user browses from a laptop, give them an SSH tunnel to start first (ssh -L <port>:127.0.0.1:<port> <host>). An agent cannot mint that link from its shell: the safety policy blocks kirocrew pod token from agent sessions by design, so the agent's only source is pod_up. If pod_up is not available in the session, ask the user to open the pod themselves: the Open button on its Dev Fleet row, or kirocrew pod up <wt> run on the pod's host, which leaves a running pod running and prints an open line with the link (kirocrew pod token <wt> prints the bare token only). Do not look for another way to mint it. When the user only needs to see the states, show the harness's screenshots from ARTIFACT_DIR inline instead.
Other verbs: ls (list running pods) · status <wt> · token <wt> · url <wt> · logs <wt> · provision <wt>. Run kirocrew pod --help for the full list. token, url, logs and provision have no tool of their own yet: pod_up already returns the token and url, and pod logs stay a human-facing read.
Isolation guarantees (enforced by the pod runtime): own KIROCREW_HOME, own port, no tunnel (can't grab the real Slack identity), --no-crons, and cleanup on pod down. A pod can never collide with the live gateway and many can run at once.
Resource ceilings are Linux-only. On Linux the unit sets cgroup MemoryMax=4G / CPUQuota=200%, which the kernel enforces. Raise them per pod with pod up <wt> --memory 16G --cpu 800% (or the memory / cpu tool fields), and apply a change to a running pod with pod restart <wt>, which keeps its HOME. On macOS there is no such ceiling and none is emitted — macOS has no cgroups, and nothing it does offer bounds the total memory of a process tree or hard-caps CPU (RLIMIT_AS covers one process's address space, not resident memory, and the gateway spawns agent subprocesses that each get their own limit). So on a Mac a runaway pod can starve the machine; every other isolation property above still holds.
Teardown belongs to `pod down`, on both platforms. It stops the service, waits for the process tree to drain, deletes the isolated HOME, and verifies the directory is gone — a HOME that survives is reported as a failure, never as zero residue. Nothing reclaims from a post-stop service hook: systemd would run one before the final kill of the pod's cgroup (racing the pod's own subprocesses) and on the stop half of a restart. So a pod that goes away WITHOUT a down (host crash, force-reboot, a raw systemctl --user stop) leaves its HOME behind on either OS; pod ls reports those (reclaim each with pod down <name>).
This is also what makes a seeded pod home survive systemctl --user restart and Restart=on-failure instead of silently reverting to a blank instance.
Bundled suite (quick path)
Runs the bundled orchestrator end-to-end. Prints a POD-E2E SUMMARY ending in ARTIFACT_DIR=<path> and exits with the number of failed phases (0 = all green). Before any phase runs it exits with a setup code instead:
| exit | meaning | |
|---|---|---|
64 | bad arguments, bad worktree name, or unusable --handle-json | |
65 | no kirocrew CLI with pod on PATH, or the artifact dir escapes .e2e-artifacts | |
66 | the worktree checkout could not be resolved | |
67 | no usable CLI in the worktree venv (kirocrew pod provision <wt> --venv-only) | |
70 | the live-plane port could not be resolved (python3 missing) | |
1 | SAFETY refusal: the pod resolved to the production port (also a 1-failure run; read the summary) |
Flags:
| flag | effect | |
|---|---|---|
--handle-json <path> | run against a pod the CALLER started, from the handle in that file (see below) | |
--keep / --no-stop | leave the pod running after tests (debug) | |
--api-only | skip the Playwright phase (leaves a boot + auth check) | |
--fe-only | accepted no-op — no test-suite phase exists to skip | |
--video | record the session at 1080p → .webm + .mp4 (finalization is time-capped) | |
--no-suppress-first-run | let first-run modals appear (onboarding tests only) |
Running the suite when you cannot reach the bus
The script drives the pod with kirocrew pod verbs, and those need the systemd user bus, so on a host whose outer sandbox denies it the harness cannot start -- even though every phase after the first is ordinary loopback HTTP. --handle-json is that path: boot the pod with the pod_up tool, then build the JSON object shown below out of the values it reports and hand that file over. Do not paste the tool's own reply into the file: it is labelled prose, and json.load rejects it with exit 64.
The file is a JSON object you build: name is the <wt> you passed to pod_up (its reply names it but carries no name field), base_url, token, port and checkout are the values its reply prints, and health is the code pod_status reports:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/kiro_crew/apps/builtins/dev_fleet/skills/pod-e2e/SKILL.md
Popularity
- Repository stars
- 4,226
- Repository forks
- 722
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kirodotdev/kirocrew/pod-e2e)