[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78H91NE6VHJZHTKF662HVY2":3,"skill-same:01M78H91NE6VHJZHTKF662HVY2":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78H91NE6VHJZHTKF662HVY2","safe-pull",null,"Safe Git pull with rebase workflow — check remote changes, stash, rebase, restore, handle conflicts, and push. Covers main\u002Fdevelop sync and feature branch rebase. Use when the user says \"sync\", \"pull latest\", \"拉取最新\", \"rebase main\", \"同步代码\", \"update branch\", or wants to safely pull remote changes preserving linear history.","toRolex\u002Frolex-skills","toRolex","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F171526267?v=4","01M78H6W9BVJ5TBK7APN5HFBJF","Rolex","01M78H6WAC60FGNASCYJAJM7VW",1,"MIT","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmisc\u002Fsafe-pull\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: safe-pull\ndescription: >\n  Safe Git pull with rebase workflow — check remote changes, stash, rebase, restore,\n  handle conflicts, and push. Covers main\u002Fdevelop sync and feature branch rebase.\n  Use when the user says \"sync\", \"pull latest\", \"拉取最新\", \"rebase main\", \"同步代码\",\n  \"update branch\", or wants to safely pull remote changes preserving linear history.\n---\n\n# Safe Pull\n\n安全拉取远程代码，使用 rebase 保持线性历史，自动暂存\u002F恢复本地修改。\n\n## 核心流程\n\n```bash\n# 1. 先看远程改了什么\ngit fetch && git log -p main..origin\u002Fmain\n\n# 2. 暂存本地修改\ngit stash\n\n# 3. 用 rebase 而不是 merge（保持线性历史）\ngit pull --rebase\n\n# 4. 恢复本地修改\ngit stash pop\n```\n\n## 完整流程\n\n### 1. 检查远程变更\n\n```bash\ngit fetch origin\ngit log --oneline \u003Ccurrent-branch>..origin\u002F\u003Ccurrent-branch>\n```\n\n本地已是最新则直接结束。\n\n### 2. 暂存本地修改\n\n```bash\ngit status --short\ngit stash push -u -m \"safe-pull: auto stash before rebase\"\n```\n\n工作区干净则跳过。暂存失败则中止，报告原因。\n\n### 3. Rebase 拉取\n\n```bash\ngit pull --rebase origin \u003Cbranch>\n```\n\n冲突时进入**冲突处理**子流程。网络失败重试一次，仍失败则中止。\n\n### 4. 恢复本地修改\n\n```bash\ngit stash pop\n```\n\nstash pop 冲突 → 保留 stash，列出冲突文件。空 stash → 跳过。\n\n### 5. 推送（可选）\n\n询问是否需要 `git push` 或 `git push --force-with-lease`。\n\n## 冲突处理\n\n1. `git diff --name-only --diff-filter=U` 列出冲突文件\n2. 告知用户冲突内容，**不自动解决**\n3. 用户解决后：`git rebase --continue`\n4. 用户确认放弃：`git rebase --abort && git stash pop`\n\n## 回滚\n\n```bash\ngit rebase --abort 2>\u002Fdev\u002Fnull\ngit stash list | grep \"safe-pull:\" && git stash pop\n```\n\n## 规则\n\n- **禁止** `--no-verify`、`--no-gpg-sign`，**禁止** `git reset --hard` 在 dirty tree 时执行\n- **禁止** 对 main\u002Fmaster 执行 `--force` push\n- stash 用 `-u` 包含 untracked 文件\n- 操作前告知当前分支和目标分支\n\n## 分支场景\n\n| 场景 | 目标分支 | 流程 |\n|------|---------|------|\n| 同步 main\u002Fdevelop | `origin\u002Fmain` 或 `origin\u002Fdevelop` | 标准四步 |\n| Feature 分支 rebase develop | `origin\u002Fdevelop` | 标准四步 + `--force-with-lease` push |\n| 多分支同步 | 依次执行 | 每个分支独立走标准流程 |\n\n## 完成标准\n\n- 本地分支与远程同步，线性历史。\n- 本地修改已恢复（或用户已知冲突待处理）。\n- 如已推送，远程分支也已更新。\n","# Safe Pull\n\n安全拉取远程代码，使用 rebase 保持线性历史，自动暂存\u002F恢复本地修改。\n\n## 核心流程\n\n```bash\n# 1. 先看远程改了什么\ngit fetch && git log -p main..origin\u002Fmain\n\n# 2. 暂存本地修改\ngit stash\n\n# 3. 用 rebase 而不是 merge（保持线性历史）\ngit pull --rebase\n\n# 4. 恢复本地修改\ngit stash pop\n```\n\n## 完整流程\n\n### 1. 检查远程变更\n\n```bash\ngit fetch origin\ngit log --oneline \u003Ccurrent-branch>..origin\u002F\u003Ccurrent-branch>\n```\n\n本地已是最新则直接结束。\n\n### 2. 暂存本地修改\n\n```bash\ngit status --short\ngit stash push -u -m \"safe-pull: auto stash before rebase\"\n```\n\n工作区干净则跳过。暂存失败则中止，报告原因。\n\n### 3. Rebase 拉取\n\n```bash\ngit pull --rebase origin \u003Cbranch>\n```\n\n冲突时进入**冲突处理**子流程。网络失败重试一次，仍失败则中止。\n\n### 4. 恢复本地修改\n\n```bash\ngit stash pop\n```\n\nstash pop 冲突 → 保留 stash，列出冲突文件。空 stash → 跳过。\n\n### 5. 推送（可选）\n\n询问是否需要 `git push` 或 `git push --force-with-lease`。\n\n## 冲突处理\n\n1. `git diff --name-only --diff-filter=U` 列出冲突文件\n2. 告知用户冲突内容，**不自动解决**\n3. 用户解决后：`git rebase --continue`\n4. 用户确认放弃：`git rebase --abort && git stash pop`\n\n## 回滚\n\n```bash\ngit rebase --abort 2>\u002Fdev\u002Fnull\ngit stash list | grep \"safe-pull:\" && git stash pop\n```\n\n## 规则\n\n- **禁止** `--no-verify`、`--no-gpg-sign`，**禁止** `git reset --hard` 在 dirty tree 时执行\n- **禁止** 对 main\u002Fmaster 执行 `--force` push\n- stash 用 `-u` 包含 untracked 文件\n- 操作前告知当前分支和目标分支\n\n## 分支场景\n\n| 场景 | 目标分支 | 流程 |\n|------|---------|------|\n| 同步 main\u002Fdevelop | `origin\u002Fmain` 或 `origin\u002Fdevelop` | 标准四步 |\n| Feature 分支 rebase develop | `origin\u002Fdevelop` | 标准四步 + `--force-with-lease` push |\n| 多分支同步 | 依次执行 | 每个分支独立走标准流程 |\n\n## 完成标准\n\n- 本地分支与远程同步，线性历史。\n- 本地修改已恢复（或用户已知冲突待处理）。\n- 如已推送，远程分支也已更新。\n",{"name":5,"description":7},"main","5648606410e64c6ebad383fa37b866fcd14718cf","skills\u002Fmisc\u002Fsafe-pull",0,"https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills","https:\u002F\u002Fgithub.com\u002FtoRolex","luolie3@mail2.sysu.edu.cn","I'm Luo Lie from SYSU. Mathematics-trained builder for agentic AI systems and real-world products.","2026-11-03 15:28:15",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add toRolex\u002Frolex-skills --skill safe-pull",{"tool":39,"command":40},"bunx","bunx skills add toRolex\u002Frolex-skills --skill safe-pull",{"tool":42,"command":43},"pnpm","pnpm dlx skills add toRolex\u002Frolex-skills --skill safe-pull","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmisc\u002Fsafe-pull\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78HA978AVPWGFE3PR9RNJ9G","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78HA7737MNQ4411A7SZWPJQ","writing-for-agents","覆盖创建、修改与审核 agent 指令规则、路由及指针文档（如 skill、AGENTS.md、CLAUDE.md）。","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78HA62NC1NZNAEZ26784495","wait-what","停下。上一条消息没有说清楚：重新讲一遍。","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78HA4NX5KBJ7WQ69SR25QHW","to-questionnaire","把一个你无法完全回答的决策，变成一个让其他人填写的问题单。","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fto-questionnaire\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M78HA2RTESFTRTNA7ZZNVVXS","teach-me","在教学工作区内教授用户一项新技能或概念。","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fteach-me\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M78HA187DQB10VDJ4G89F540","handoff","将当前对话压缩为 handoff 文档，供另一个 agent 接续。","https:\u002F\u002Fgithub.com\u002FtoRolex\u002Frolex-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fhandoff\u002FSKILL.md",[],[]]