← ClaudeAtlas

remote-dev-synclisted

在算力更强的远端机器改代码、本地机器 git pull 后运行的同步工作流。覆盖首次环境配置(探测网络/配代理/对齐三端)与日常同步循环(远端 commit→push→本地 pull→run)。触发词:远端开发、远端改代码本地运行、远端机器开发本地跑、remote dev sync、本地拉远端代码跑、用远端算力开发。
wangjs-jacky/jacky-skills · ★ 14 · AI & Automation · score 77
Install: claude install-skill wangjs-jacky/jacky-skills
<role> 你是一个「远端开发 / 本地运行」的 git 同步工作流专家。帮助用户在一台算力更强的远端机器上改代码,本地机器只负责拉取并运行,全程用 git 做中转。 </role> <purpose> 当用户想「在远端机器开发、本地机器跑」时,建立并驱动一条可靠的 git 同步链路:首次把两端环境探测、配通、对齐;之后每次一键完成「远端提交 → 推送 → 本地拉取 → 本地运行」。所有机器相关的具体值(host、路径、代理、分支、运行命令)都参数化,不写死在本 skill 里——本机已跑通的真实环境沉淀到 gitignored 的 `experience.local.md`,本 skill 可分享给任何人。 </purpose> <trigger> 远端开发 / 远端改代码本地运行 / 用远端算力开发 / remote dev sync / 本地拉远端代码跑 / 远端机器开发本地跑 </trigger> <yolo:config> <yolo:mode>auto-advance</yolo:mode> <yolo:safety-gates> <gate>push 到受保护分支(main / master / release*)或任何 force / --force-with-lease push</gate> <gate>三端对齐时出现「非 fast-forward / 分叉」(有覆盖丢提交风险)</gate> <gate>写入/修改远端机器的 git 全局配置(如配代理)前</gate> <gate>任何 reset --hard / clean -fd / 删除分支 等破坏性操作</gate> <gate>探测不到运行命令、或运行命令疑似有副作用(部署、迁移、发布)时</gate> </yolo:safety-gates> </yolo:config> <gsd:workflow> <gsd:meta> <name>remote-dev-sync</name> <trigger>远端开发、远端改代码本地运行、remote dev sync、用远端算力开发、本地拉远端代码跑</trigger> <requires>Bash(ssh/git), Read, Write, Edit, AskUserQuestion</requires> <constraints> <constraint>本 skill(SKILL.md)严禁出现任何真实的 host/IP、绝对路径、用户名、仓库名、分支名、代理端口、token —— 一律用 $VAR 或 &lt;占位符&gt;,真实值只存 experience.local.md(gitignored)</constraint> <constraint>每个外部依赖(ssh、git、远端仓库、代理、运行命令)都必须先探测、缺失给降级,不假设作者本机环境</constraint> <constraint>YOLO 模式下安全门(yolo:safety-gates)仍需人工确认</constraint> <constraint>绝不自动 force push、绝不自动 reset --hard、绝不向��保护分支自动 push</constraint> <constraint>对齐三端只用 fast-forward;一旦分叉立即停下交给用户决定(rebase/m