Agent Skills
› LanternOps/breeze
› worktree-stack
worktree-stack
GitHub为当前 git worktree 提供隔离的测试环境,自动启动包含数据库、API 和前端的全栈服务,并输出连接信息以便驱动 Playwright 进行端到端测试。
Trigger Scenarios
需要为特定工作区启动完整的测试环境
准备 Playwright 端到端测试所需的运行实例
Install
npx skills add LanternOps/breeze --skill worktree-stack -g -y
SKILL.md
Frontmatter
{
"name": "worktree-stack",
"description": "Use when an agent needs a running, seeded, Playwright-ready Breeze stack for the current git worktree. Brings up pg+redis+api+web+portal+caddy running the worktree's own code and emits a JSON descriptor."
}
Worktree Test Stack
Loop for testing the current worktree end to end:
- Bring up the stack (per-worktree isolated):
pnpm wt-stack up- Add
--sharedfor the singleton stack (ports are always ephemeral, read from.breeze-stack.json). - Add
--rebuildafter Dockerfile or dependency changes.
- Add
- Read
.breeze-stack.jsonat the worktree root forbaseUrl,apiUrl,portalUrl, and admin creds (admin@breeze.local/BreezeAdmin123!). - Drive Playwright:
pnpm wt-stack test -- tests/<spec>.spec.ts, or point the Playwright MCP browser atbaseUrl. - Tear down:
pnpm wt-stack down(removes volumes by default).
Notes:
- Requires Node v22.20.0 on PATH and a populated root
.env(image refs). - Caddy serves plain HTTP in dev;
baseUrlishttp://localhost:<port>. - OrbStack is recommended for speed but not required — the CLI uses only the
standard
docker composeinterface. pnpm wt-stack lslists running stacks;pnpm wt-stack infoprints the descriptor.
Version History
- 10bb1af Current 2026-08-20 08:50


