plugins/git-tools/skills/remote/SKILL.md
--- name: remote description: | 远程仓库管理技能 - 智能推送、拉取和多仓库同步。 当用户说"push"、"pull"、"推送"、"拉取"、"同步仓库"、"git push"、"git pull"、"远程仓库"、"多仓库同步"时使用此技能。 支持安全推送(带检查)、智能拉取(冲突预防)、多远程仓库同步、分支状态监控。 重要特性:推送前安全检查,支持多仓库一键同步,防止强制推送事故。 disable-model-invocation: false argument-hint: [push|pull|sync|push-all] [args...] --- # Skill: Remote 远程仓库管理技能 - 智能推送、拉取和多仓库同步。 ## 核心功能 - 🚀 **智能推送** - 安全检查、分批推送、防强制推送保护 - 📥 **智能拉取** - 冲突预防、自动合并策略选择 - 🔗 **多仓库管理** - 一键同步多个远程仓库 - 🌐 **分支同步** - 自动同步远程分支状态 - 📊 **状态监控** - 实时同步状态和
npx skillsauth add protagonistss/ithinku-plugins plugins/git-tools/skills/remoteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
远程仓库管理技能 - 智能推送、拉取和多仓库同步。
# 安全推送
/remote push main --safe
# 智能拉取
/remote pull --auto
# 同步所有分支
/remote sync --all
# 多仓库推送
/remote push-all --remotes origin,backup
git push| 选项 | 说明 | 使用场景 |
|------|------|---------|
| --safe | 安全部全检查后推送 | 默认推荐 |
| --force-with-lease | 安全强制推送 | 确认需要覆盖时 |
| --no-verify | 跳过钩子(谨慎) | 紧急修复 |
| --tags | 同时推送标签 | 版本发布 |
# ❌ 危险:可能覆盖他人提交
git push --force
# ✅ 安全:仅在远程无更新时强制
git push --force-with-lease
| 命令 | 说明 | 适用场景 |
|------|------|---------|
| git pull | 拉取并合并 | 快速同步 |
| git pull --rebase | 拉取并变基 | 保持线性历史 |
| git fetch | 仅拉取不合并 | 先查看再决定 |
git fetch origin# 优先使用 rebase 保持历史整洁
git pull --rebase origin main
# 如果有冲突,解决后继续
git add <resolved-files>
git rebase --continue
# 放弃 rebase
git rebase --abort
# 添加备用远程
git remote add backup https://github.com/org/backup.git
# 查看所有远程
git remote -v
# 推送到所有远程
git push --all origin backup
# 同步特定分支
git push origin main && git push backup main
# 使用 sync 命令一键同步
/remote sync --all --remotes origin,backup,upstream
# 查看远程分支
git branch -r
# 查看本地与远程差异
git log HEAD..origin/main --oneline
# 查看远程提交
git log origin/main --oneline -5
{
"remote": {
"safetyChecks": true,
"autoSync": false,
"multiRemote": true,
"defaultPushStrategy": "safe",
"remotes": {
"origin": "https://github.com/org/repo.git",
"backup": "https://github.com/org/backup.git"
}
}
}
--force-with-lease 替代 --force--force 强制推送development
Vue 3 开发最佳实践指南 - Composition API、Script Setup、Pinia、TypeScript 集成及性能优化。 当用户说"Vue 3组件"、"Composition API"、"script setup"、"Pinia"、"Vue 3项目"、"ref reactive"、"defineProps defineEmits"、"Composable"、"Vue 3优化"时使用此技能。 涵盖:Script Setup 与 Composition API、响应式数据选择(ref vs reactive)、组件通信(Props/Emits/v-model/Slots)、Composables 设计模式、Pinia Setup Store、性能优化(v-memo、shallowRef、KeepAlive)。 提供 TypeScript 代码示例、反模式对照表、迁移指南和示例文件引用。
development
Vue 2 维护与开发最佳实践指南 - Options API、Vuex 及向 Vue 3 迁移准备。 当用户说"Vue 2组件"、"Options API"、"Vuex"、"Vue 2项目"、"Vue 2迁移"、"Vue mixin"、"Vue 2最佳实践"时使用此技能。 涵盖:Options API 规范(选项顺序、props 验证)、Vuex 模块化(namespaced modules)、逻辑复用(避免 mixin,使用工具函数)、迁移准备(停止使用 Filters、引入 Composition API 插件)。 提供 Vue 2 代码示例、反模式警告和迁移建议。
development
核心设计能力 - 提供配色、布局、组件样式生成及反模式检查。 当用户说"设计UI"、"生成样式"、"页面布局"、"CSS样式"、"组件设计"、"配色方案"、"设计系统"、"前端样式"、"响应式设计"、"动画效果"时使用此技能。 支持多种设计风格:Neo-Brutalism、Glassmorphism、Editorial、Cyberpunk。 提供配色方案、布局生成、组件样式、微交互动效、响应式网格。拒绝"AI廉价感",追求大胆、独特、细节丰富的设计。 重要特性:提供反模式检查,避免泛滥的渐变、无聊的阴影、默认圆角等平庸设计。
content-media
无障碍设计审查与修复能力。 当用户说"无障碍"、"a11y"、"WCAG"、"键盘导航"、"屏幕阅读器"、"颜色对比度"、"ARIA"、"可访问性"、"辅助功能"、"盲人友好"时使用此技能。 基于 WCAG 2.1 标准,检测图片 Alt 文本缺失、表单 Label 关联、键盘可访问性、颜色对比度不足、ARIA 属性误用等问题。 提供修复代码示例:语义化标签、焦点管理、焦点陷阱、屏幕阅读器支持。输出合规性检查报告和修复建议。