跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 internal-dev-workbench

Internal Dev Workbench

为 Workflow SDK 旋转一个无移植 + tmux dev会话,使每个 git worktree 孤立的 QQbranch >. <name>.localhost' Next.js 工作台的 URL 和可观察性 UI 的 URL,外加一个显示这些 URL 的 Claude 状态线 。 仅当用户请求"portless dev会话",工作流程的"tmux dev布局","worktree-同化dev URL",或想将工作流程dev URL接入克洛德状态线时使用. 不激活一般的"启动 Dev 服务器" / "运行 pnpm dev" 任务 .

418 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

为 Workflow SDK 旋转一个无移植 + tmux dev会话,使每个 git worktree 孤立的 QQbranch >. <name>.localhost' Next.js 工作台的 URL 和可观察性 UI 的 URL,外加一个显示这些 URL 的 Claude 状态线 。 仅当用户请求"portless dev会话",工作流程的"tmux dev布局","worktree-同化dev URL",或想将工作流程dev URL接入克洛德状态线时使用. 不激活一般的"启动 Dev 服务器" / "运行 pnpm dev" 任务 .

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:internal-dev-workbench、Prerequisites、Layout、Setup、Session name = basename of the branch (matches portless's subdomain prefix、and the statusline's `tmux attach -t <prefix>` indicator). For branch。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Spin up a portless + tmux dev session for the Workflow SDK that gives each git worktree isolated `<branch>.<name>.localhost` URLs for the Next.js workbench and the observability UI, plus a Claude statusline that surfaces those URLs. Use only when the user asks for a "portless dev session", a "tmux dev layout for workflow", "worktree-isolated dev URLs", or wants to wire workflow dev URLs into the Claude statusline. Do not activate for the generic "start the dev server" / "run pnpm dev" task.

internal-dev-workbenchPrerequisitesLayoutSetupSession name = basename of the branch (matches portless's subdomain prefixand the statusline's `tmux attach -t <prefix>` indicator). For branch`pgp/foo-bar` this resolves to `foo-bar`.Create the session and capture the initial pane IDPane DEV (left): Next.js turbopack workbench, with manifest exposed for e2ePane OBS (top-right): observability UI scoped to the workbench appPane SH (bottom-right): scratchpad at repo rootWhy each piece

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
internal-dev-workbench
description
Spin up a portless + tmux dev session for the Workflow SDK that gives each git worktree isolated `<branch>.<name>.localhost` URLs for the Next.js workbench and the observability UI, plus a Claude statusline that surfaces those URLs. Use only when the user asks for a "portless dev session", a "tmux dev layout for workflow", "worktree-isolated dev URLs", or wants to wire workflow dev URLs into the Claude statusline. Do not activate for the generic "start the dev server" / "run pnpm dev" task.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「internal-dev-workbench」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-67f2208ee099a3b3-Internal-Dev-Workbench.html
请存为 .cursor/skills/internal-dev-workbench/SKILL.md 或 .claude/skills/internal-dev-workbench/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/vercel/workflow' --list

npx skills add 'https://github.com/vercel/workflow' --skill 'internal-dev-workbench'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: internal-dev-workbench description: Spin up a portless + tmux dev session for the Workflow SDK that gives each git worktree isolated `..localhost` URLs for the Next.js workbench and the observability UI, plus a Claude statusline that surfaces those URLs. Use only when the user asks for a "portless dev session", a "tmux dev layout for workflow", "worktree-isolated dev URLs", or wants to wire workflow dev URLs into the Claude statusline. Do not activate for the generic "start the dev server" / "run pnpm dev" task. metadata: author: Pranay Prakash version: '0.2' --- # internal-dev-workbench Bootstraps an opinionated 3-pane tmux session for end-to-end Workflow SDK development. Each pane is launched through [portless](https://github.com/aleclarson/portless) so URLs are stable and worktree-scoped (e.g. `https://.turbopack.localhost`), letting multiple worktrees run concurrently without port conflicts. A companion statusline script surfaces the active URLs in Claude Code's prompt. This is **opt-in contributor tooling**. The repo's standard dev path (`pnpm dev` from a workbench, no portless) is unaffected. ## Prerequisites - `tmux` installed - `portless` installed globally (`npm i -g portless` or via Homebrew). Verify with `portless --version`. - Repo bootstrapped: `pnpm install && pnpm build`. The first run on a fresh worktree must complete both before any dev server can start (the workbench apps depend on built workspace packages; without `pnpm build` you get `MODULE_NOT_FOUND` for `workflow`). - `WORKFLOW_PUBLIC_MANIFEST=1` is required on the dev server when running e2e tests against it (otherwise `/.well-known/workflow/v1/manifest.json` is gated). ## Layout With `main-vertical`, the dev server takes the left column; the right column stacks the observability UI on top of a scratchpad shell: ```text +----------------------+--------------------------+ | | PANE_OBS: workflow web | | | (observability UI | | PANE_DEV: turbopack | scoped to the | | (Next.js dev) | workbench app) | | +--------------------------+ | | PANE_SH: zsh scratchpad | | | (repo root, for build, | | | tests, e2e, git, etc.) | +----------------------+--------------------------+ ``` ## Setup The session name **must** match the worktree's portless prefix (the basename of the current branch) so the statusline and any other tooling that derives the prefix from the branch can locate it. Always run `tmux ls` first to confirm there's no pre-existing session with that name; never kill an existing one. Pane indices in tmux depend on `pane-base-index` (0 by default, 1 with the common dotfile override). To stay correct under either, capture each pane's ID at split time with `-P -F '#{pane_id}'` and use those IDs as targets: ```bash REPO=/path/to/workflow-- # Session name = basename of the branch (matches portless's subdomain prefix # and the statusline's `tmux attach -t ` indicator). For branch # `pgp/foo-bar` this resolves to `foo-bar`. SESSION=$(git -C "$REPO" rev-parse --abbrev-ref HEAD) SESSION="${SESSION##*/}" # Create the session and capture the initial pane ID PANE_DEV=$(tmux new-session -d -s "$SESSION" -c "$REPO" -P -F '#{pane_id}') PANE_OBS=$(tmux split-window -h -t "$PANE_DEV" -c "$REPO" -P -F '#{pane_id}') PANE_SH=$(tmux split-window -v -t "$PANE_OBS" -c "$REPO" -P -F '#{pane_id}') tmux select-layout -t "$SESSION" main-vertical # Pane DEV (left): Next.js turbopack workbench, with manifest exposed for e2e tmux send-keys -t "$PANE_DEV" \ 'cd workbench/nextjs-turbopack && WORKFLOW_PUBLIC_MANIFEST=1 portless run --name turbopack pnpm dev' C-m # Pane OBS (top-right): observability UI scoped to the workbench app tmux send-keys -t "$PANE_OBS" \ 'cd workbench/nextjs-turbopack && portless run --name workflow-obs sh -c "pnpm workflow web --webPort \$PORT --noBrowser"' C-m # Pane SH (bottom-right): scratchpad at repo root tmux send-keys -t "$PANE_SH" 'echo "scratchpad: $(pwd)"' C-m tmux attach -t "$SESSION" ``` Once both servers are ready, `portless list` shows the routes. With `portless run`, each linked worktree gets a unique branch-prefixed subdomain (e.g. `stepflow-test.turbopack.localhost`), so multiple worktrees coexist without changing config. ## Why each piece - **`portless run --name `** (instead of `portless `): `run` auto-detects git worktrees and prepends the sanitized branch name as a subdomain. The `--name` flag overrides the inferred base name while preserving the worktree prefix. - **`pnpm workflow web --webPort $PORT --noBrowser`** (instead of `pnpm dev` in `packages/web`): the bundled CLI starts the observability UI configured against the **current workbench app**, hydrating it with that project's local World data. Running `packages/web`'s own `dev` script gives you the UI but pointed at nothing. - **`sh -c '... --webPort $PORT'`**: portless's auto `--port` injection only triggers for known frameworks it can detect on the command line. When the command is a CLI wrapper (`pnpm workflow web`), wrap in `sh -c` and read `$PORT` (which portless always sets) explicitly. - **`WORKFLOW_PUBLIC_MANIFEST=1`** on the dev pane: required for e2e tests to fetch the workflow registry from the dev server. - **`-P -F '#{pane_id}'`**: makes the snippet correct regardless of the user's `pane-base-index` setting (defaults vary across configs). ## Claude statusline integration The skill ships a statusline helper at `skills/internal-dev-workbench/statusline.sh` that derives the worktree prefix from the current branch and emits a compact line: ```text dev · obs · tmux attach -t ``` The dev / obs labels (Nerd Font rocket / graph glyphs) are OSC 8 hyperlinks that are clickable in iTerm2, Kitty, WezTerm, Terminal.app, and Ghostty. Bold, underlined, bright cyan styling identifies them as links. The tmux fragment (Nerd Font copy glyph) is bold bright green, signaling "copy this" rather than "click this". It's shown only when a session named exactly the worktree prefix exists, and it's printed as a full ready-to-paste `tmux attach -t ` invocation. The font must include Nerd Font glyphs for the icons to render correctly; without them you'll see substitution boxes, but the layout still works. Each piece is independent. If portless has no `.turbopack.localhost` route, the dev fragment is omitted, and so on. With nothing to show, the script prints nothing and the statusline stays silent. Wire it into `~/.claude/settings.json` so it works across all sessions and worktrees. **Point the path at your primary checkout, not at a worktree**. Worktrees get deleted, so any path like `~/github/vercel/workflow--/...` will break when you remove that worktree: ```json { "statusLine": { "type": "command", "command": "$HOME/github/vercel/workflow/skills/internal-dev-workbench/statusline.sh" } } ``` Adjust the prefix if your main checkout lives elsewhere. The script itself is worktree-aware: it reads Claude's `workspace.current_dir` from stdin to derive the current branch, so the *same script invocation* from `~/github/vercel/workflow/...` correctly surfaces routes for whichever worktree the Claude session is running in. Output rules: - Nothing to show (no matching portless route, no matching tmux session) → empty output. - Each piece appears independently. Start a server but no tmux session, and you'll see only the dev/obs fragments; the reverse shows only the tmux fragment. - No git context but routes exist → falls back to the first matching `turbopack`/`workflow-obs` route, no tmux indicator. If you already use a statusline and want to append the internal-dev-workbench info, run the helper and concatenate in your existing wrapper script instead of replacing `command` outright. ## Restarting after editing workflow files The workflow manifest is built at dev-server startup. New workflows or steps added to `workbench/example/workflows/*.ts` (and their symlinks in other workbenches) **do not appear at runtime**, even with HMR, until the dev server restarts. ```bash tmux send-keys -t "$PANE_DEV" C-c # Wait for the prompt to return tmux send-keys -t "$PANE_DEV" \ 'cd workbench/nextjs-turbopack && WORKFLOW_PUBLIC_MANIFEST=1 portless run --name turbopack pnpm dev' C-m ``` Verify the new workflow is registered (use the portless-assigned local port from `portless list`, or the `.localhost` URL with the trusted CA): ```bash /usr/bin/curl -s "$(portless get turbopack)/.well-known/workflow/v1/manifest.json" \ | grep -o '' ``` `NODE_EXTRA_CA_CERTS=/tmp/portless/ca.pem` is needed for Node clients hitting the HTTPS URL outside of portless-managed children. Browsers are fine after `portless trust`. ## Running e2e tests against this session From the scratchpad pane. Use the portless-assigned local port to bypass TLS for the test runner: ```bash PORT=$(portless list | awk '/turbopack/ {n=split($3,a,":"); print a[n]; exit}') DEPLOYMENT_URL="http://localhost:$PORT" APP_NAME="nextjs-turbopack" \ pnpm vitest run packages/core/e2e/e2e.test.ts -t "" ``` Or use the portless URL with the CA trust: ```bash NODE_EXTRA_CA_CERTS=/tmp/portless/ca.pem \ DEPLOYMENT_URL="$(portless get turbopack)" APP_NAME="nextjs-turbopack" \ pnpm vitest run packages/core/e2e/e2e.test.ts -t "" ``` ## Teardown ```bash tmux kill-session -t "$SESSION" ``` Portless removes routes when each child process exits (Ctrl+C the panes first if you want a clean `portless list`). The proxy itself keeps running for other sessions; stop it explicitly with `portless proxy stop` if needed. ## Troubleshooting - **`MODULE_NOT_FOUND: 'workflow'`** in the dev pane: Workspace packages haven't been built. Run `pnpm build` from the repo root, then restart the pane. - **Observability UI shows no runs**: Verify the obs pane was started from inside `workbench/nextjs-turbopack` (or whichever workbench you want to inspect). The CLI reads the local World from the **current working directory**. - **react-router on `:5173` instead of the portless port**: This happens when the obs pane uses `pnpm dev` from `packages/web`. Switch to the `pnpm workflow web --webPort $PORT` form above. - **Source-map warning on startup** (`failed to read input source map ... packages/serde/dist/index.js.map`): This warning is benign and doesn't block development. - **Stale workflow registration** after editing `99_e2e.ts`: Restart the dev pane; HMR doesn't rebuild the manifest. - **Statusline shows nothing**: Confirm `portless list` has at least one matching route, the path in `settings.json` is absolute, and the script is executable (`chmod +x`).

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…