Agent SkillsLanternOps/breeze › worktree-stack

worktree-stack

GitHub

为当前 git worktree 提供隔离的测试环境,自动启动包含数据库、API 和前端的全栈服务,并输出连接信息以便驱动 Playwright 进行端到端测试。

.claude/skills/worktree-stack/SKILL.md LanternOps/breeze

触发场景

需要为特定工作区启动完整的测试环境 准备 Playwright 端到端测试所需的运行实例

安装

npx skills add LanternOps/breeze --skill worktree-stack -g -y
更多选项

非标准路径

npx skills add https://github.com/LanternOps/breeze/tree/main/.claude/skills/worktree-stack -g -y

不安装直接使用

npx skills use LanternOps/breeze@worktree-stack

指定 Agent (Claude Code)

npx skills add LanternOps/breeze --skill worktree-stack -a claude-code -g -y

安装 repo 全部 skill

npx skills add LanternOps/breeze --all -g -y

预览 repo 内 skill

npx skills add LanternOps/breeze --list

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:

  1. Bring up the stack (per-worktree isolated): pnpm wt-stack up
    • Add --shared for the singleton stack (ports are always ephemeral, read from .breeze-stack.json).
    • Add --rebuild after Dockerfile or dependency changes.
  2. Read .breeze-stack.json at the worktree root for baseUrl, apiUrl, portalUrl, and admin creds (admin@breeze.local / BreezeAdmin123!).
  3. Drive Playwright: pnpm wt-stack test -- tests/<spec>.spec.ts, or point the Playwright MCP browser at baseUrl.
  4. 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; baseUrl is http://localhost:<port>.
  • OrbStack is recommended for speed but not required — the CLI uses only the standard docker compose interface.
  • pnpm wt-stack ls lists running stacks; pnpm wt-stack info prints the descriptor.

版本历史

  • 10bb1af 当前 2026-08-20 08:50

同 Skill 集合

.claude/skills/agent-info/SKILL.md
.claude/skills/agent-log-debugging/SKILL.md
.claude/skills/ai-agent/SKILL.md
.claude/skills/breeze-helper/SKILL.md
.claude/skills/breeze-testing/SKILL.md
.claude/skills/e2e-coverage/SKILL.md
.claude/skills/feature-testing/SKILL.md
.claude/skills/issue-to-pr/SKILL.md
.claude/skills/security-review/SKILL.md
.claude/skills/gh-queue/SKILL.md
.claude/skills/ui-qa-sweep/SKILL.md

元信息

文件数
0
版本
0ee1815
Hash
af151190
收录时间
2026-08-20 08:50

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 00:22
浙ICP备14020137号-1