paperclip-dev-workspace-run-verify-fix 是什么?
Run, verify, reseed, and repair Paperclip isolated dev workspace services. Use when asked to start or fix a managed project/worktree service and prove health, login readiness, cloned data, runtime visibility, and correct port ownership.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
paperclip-dev-workspace-run-verify-fix,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 paperclip-dev-workspace-run-verify-fix
请在 Codex 的当前工作环境中安装并检查 paperclip-dev-workspace-run-verify-fix 这个 Skill。
项目身份:paperclipai/paperclip / paperclip-dev-workspace-run-verify-fix
来源:https://github.com/paperclipai/paperclip/blob/558dbb01320987eb9aba80d5d1a8e66604456f72/.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
已定位的源文件:.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 paperclip-dev-workspace-run-verify-fix
请在 Claude Code 的当前工作环境中安装并检查 paperclip-dev-workspace-run-verify-fix 这个 Skill。
项目身份:paperclipai/paperclip / paperclip-dev-workspace-run-verify-fix
来源:https://github.com/paperclipai/paperclip/blob/558dbb01320987eb9aba80d5d1a8e66604456f72/.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
已定位的源文件:.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 paperclip-dev-workspace-run-verify-fix
请在 Cursor Agent 的当前工作环境中安装并检查 paperclip-dev-workspace-run-verify-fix 这个 Skill。
项目身份:paperclipai/paperclip / paperclip-dev-workspace-run-verify-fix
来源:https://github.com/paperclipai/paperclip/blob/558dbb01320987eb9aba80d5d1a8e66604456f72/.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
已定位的源文件:.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 paperclip-dev-workspace-run-verify-fix
请在 当前 Agent 的当前工作环境中安装并检查 paperclip-dev-workspace-run-verify-fix 这个 Skill。
项目身份:paperclipai/paperclip / paperclip-dev-workspace-run-verify-fix
来源:https://github.com/paperclipai/paperclip/blob/558dbb01320987eb9aba80d5d1a8e66604456f72/.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
已定位的源文件:.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-21T19:32:09.269Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
.agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md · 抓取时间 2026-11-21T19:32:09.269Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Run, verify, reseed, and repair Paperclip isolated dev workspace services. Use when asked to start or fix a managed project/worktree service and prove health, login readiness, cloned data, runtime visibility, and correct port ownership.
查看源文件章节 / Source sections
- 原文:Paperclip Dev Workspace Run / Verify / Fix
- 原文:Hard rules
- 原文:Inputs to collect
- 原文:Normal run sequence
- 原文:Managed start / stop
- 原文:Port conflicts and workspace identity
- 原文:Full database reseed
- 原文:Core verification probes
- 原文:Verify main control-plane runtime state
- 原文:Verify served workspace runtime state
- 原文:Verify auth and populated data
- 原文:Common failures and fixes
- 原文:Service URL serves a different workspace (port squat)
- 原文:Recorded port drifts after an ad hoc start
- 原文:Setup gate appears
- 原文:Login fails
- 原文:Login works but data is missing
- 原文:Port listens but health says database unreachable
- 原文:Main control plane loses track of a running service
- 原文:Served app loses track after full reseed
- 原文:Runtime start returns permission or run-FK errors in the cloned app
- 原文:Recurring gotchas from past repairs
- 原文:When code changes are required
- 原文:Final issue comment template
原文:Paperclip Dev Workspace Run / Verify / Fix
This skill is for Paperclip-specific development workspaces whose service is started through project execution workspace runtime services, typically a worktree service such as `paperclip-dev`. Success means all of these are true: - the service was started through the normal managed runtime path, not a detached workaround - the worktree database is a full bootstrapped isolated clone of the primary instance database - `/api/health` returns `status: ok` and `bootstrapStatus: ready` - the root page returns `200` and does not show the first-admin setup gate - the board user can log in with their normal dev credentials - the app shows populated cloned data, not only a manually copied auth user - the main control plane shows the service as `running` / `healthy` with the expected URL - the served workspace app also knows about that service and shows it as `running` / `healthy` - the process that owns the service port really belongs to the target workspace: `readlink /proc/<pid>/cwd` resolves inside the target worktree, not a sibling workspace If any item fails, keep fixing. Do not mark the issue done because one probe passed.
原文:Hard rules
- The master checkout `/srv/paperclip/home/paperclipai/paperclip` (the primary repo with the real instance `.env`) is never a workspace repair target. Never point a worktree runtime service at it, never `git worktree add` into it or under `<master>/.paperclip/worktrees/`, and never edit its `.env` while repairing a workspace. Managed workspaces run in their own folders, for example `~/.paperclip-worktrees/instances/<slug>/…`. - Never trust a `running` / `healthy` runtime row or a passing `/api/health` alone. The `service:paperclip-dev` port is pinned in service config, so a sibling workspace's process can own the port and still answer health checks. Confirm the port owner's real cwd (`readlink /proc/<pid>/cwd`) before and after every repair; the runtime row's recorded `cwd` and `pid` can be fabricated by port adoption. - Read `doc/DEVELOPING.md` before running Paperclip CLI, dev server, worktree, database, build, or test commands. - Use the Paperclip CLI and API as the source of truth for worktree and database operations. Do not use `psql`, raw embedded-Postgres commands, or ad hoc row copying for the normal fix path. - Do not manually copy only auth rows as the final fix. That proves login, but it does not prove the isolated workspace has the full bootstrapped database. - Prefer managed runtime start/stop routes over `pnpm dev` or detached shell processes when the task is about a reusable workspace service. - Avoid destructive git or database actions. Preserve user changes in the worktree. - Run the smallest verification that proves the repair. Add focused tests only when code changed. - Leave an issue comment with root cause, exact fix, verification, and any commit link. Set a clear final status.
原文:Inputs to collect
Use environment variables when available. Do not print API keys or passwords. - `PAPERCLIP_API_URL`: main control-plane API URL - `PAPERCLIP_API_KEY`: agent API key - `PAPERCLIP_RUN_ID`: current run id for runtime-service mutations - `PAPERCLIP_TASK_ID`: current issue id - `PAPERCLIP_COMPANY_ID`: company id - `PAPERCLIP_AGENT_ID`: current agent id - execution workspace id for the worktree service - runtime workspace command id, usually `service:paperclip-dev` - expected service URL, for example `http://paperclip-dev:40631` - dev credential owner, if the user supplied one; never post the password If the execution workspace id or service command id is missing, read the issue, project, or execution-workspace API records first. Do not guess and start an unmanaged server on a random port.
原文:Normal run sequence
Use this when the user says to start the workspace, start it again, or fix a workspace that should be freshly ready. 1. Confirm the latest issue comment and restate the success condition in your own words. 2. Inspect current runtime state from the main control plane. 3. Check the target port for conflicts: identify the current port owner and its real cwd, and check whether any sibling workspace's runtime row also claims the same port (see "Port conflicts and workspace identity"). 4. If another live workspace or agent run owns the port, stop that owner through its managed control path and verify the port stays free. Do this before restarting the target; otherwise the owner can respawn and reclaim the port. 5. Stop any managed instance of the target runtime service. 6. Reseed the worktree with a full clone from the primary instance when there is any doubt about database completeness. 7. Start the runtime service through the managed runtime API. 8. Verify health, bootstrap state, login readiness, populated data, runtime visibility, and port-owner identity from both the main control plane and served workspace app. 9. If a verification item fails, diagnose that exact failure and loop back to the narrowest repair step. 10. Comment on the issue and set the final disposition.
原文:Managed start / stop
Use the runtime-service endpoints on the main control plane. Include `X-Paperclip-Run-Id` so the mutation is associated with the current heartbeat. ```sh curl -sS -X POST \ "$PAPERCLIP_API_URL/api/execution-workspaces/$EXECUTION_WORKSPACE_ID/runtime-services/stop" \ -H "Authorization: Bearer $PAPERCLIP_API_KEY" \ -H "X-Paperclip-Run-Id: $PAPERCLIP_RUN_ID" \ -H "Content-Type: application/json" \ --data-binary '{"workspaceCommandId":"service:paperclip-dev"}' ``` ```sh curl -sS -X POST \ "$PAPERCLIP_API_URL/api/execution-workspaces/$EXECUTION_WORKSPACE_ID/runtime-services/start" \ -H "Authorization: Bearer $PAPERCLIP_API_KEY" \ -H "X-Paperclip-Run-Id: $PAPERCLIP_RUN_ID" \ -H "Content-Type: application/json" \ --data-binary '{"workspaceCommandId":"service:paperclip-dev"}' ``` If the API returns an existing service, treat that as a candidate only. Verify its real `/api/health` and its port-owner identity before trusting it.
原文:Port conflicts and workspace identity
`service:paperclip-dev` pins an explicit port in service config, so every workspace that realizes that service claims the same port. On start, service adoption will adopt whatever process already owns the port when its command line looks similar — and it records the *requested* cwd, not the owner's real cwd. Two consequences: - multiple workspaces can hold `running` rows for the same port while only one process exists; whichever workspace URL you open, you get that one process - the runtime row's `cwd`, `pid`, and health can all look correct while the URL actually serves a sibling worktree's app Identity check — run this before trusting any existing service and again after every start or restart: ```sh pid=$(lsof -nP -iTCP:"$SERVICE_PORT" -sTCP:LISTEN -t | head -1) readlink "/proc/$pid/cwd" ``` The resolved cwd must be inside the target worktree (the dev server usually runs in `<worktree>/server`). Only `/proc/<pid>/cwd` is authoritative. Do not accept the runtime row's `cwd` field, a root `200`, or a healthy `/api/health` as proof of identity — a squatting sibling passes all three. If the port owner is a sibling workspace's process (port squat): 1. Decide which workspace should own the pinned port right now — normally the workspace named in the issue. 2. Identify the current owner's workspace and whether a live agent run or managed runtime service is responsible for keeping it alive. Use the real `/proc/<pid>/cwd`, the sibling execution-workspace records, and the owning issue/run state; do not infer ownership from the target runtime row. 3. Stop the owner first through its own managed control path: stop the sibling workspace's runtime service, or stop/cancel the live run that supervises and respawns it. Do not kill the sibling process directly while its supervisor is still active, because it will simply come back and reclaim the port. 4. Verify the port remains unbound for a stability wait. If it is immediately rebound, find and stop the still-live supervisor instead of restarting the target in a loop. 5. Only after the conflicting owner is stopped, start or restart the target service and re-run the identity check:
本段为节选,完整内容见源文件。
文件 SHA256:a3b8cb9be7a8777e42abd6499c101704fd7de074e645c47a4f3ddc5f58eb17cb
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Run, verify, reseed, and repair Paperclip isolated dev workspace services. Use when asked to start or fix a managed project/worktree service and prove health, login readiness, cloned data, runtime visibility, and correct port ownership.
历史收录数据
| 来源仓库 | paperclipai/paperclip |
|---|---|
| Skill源路径 | .agents/skills/paperclip-dev-workspace-run-verify-fix/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
