SuperAPI AI 工具集

my-repos

编程与开发

查看项目

更新于 10-15 21:36

技能介绍

用途:帮助定位并操作 dwmkerr 的仓库,适用于用户提到“my repos”“my repo X”“check my repo”或需要查找、访问特定仓库的场景。

主要能力:按约定目录结构查找本地仓库,本地不存在时通过 GitHub CLI 检查远程并克隆;在已有本地仓库中记录原始分支、暂存改动、拉取参考分支,并在完成后恢复原始状态。

目录约定:个人仓库位于 ~/repos/github/dwmkerr/,McKinsey 开源仓库位于 ~/repos/github/mckinsey/。个人 GitHub 用户名为 dwmkerr。常见仓库包括 effective-shell、hacker-laws、claude-toolkit、dotfiles。

使用方式:先检查本地,如 ls ~/repos/github/dwmkerr/<repo-name>;本地存在时记录状态,如 ORIGINAL_BRANCH=$(git branch --show-current) 与 git stash --include-untracked,需要参考其他分支时执行 git fetch origin 与 git checkout origin/main,完成后用 git checkout "$ORIGINAL_BRANCH" 与 git stash pop 恢复。本地不存在时用 gh repo view dwmkerr/<repo-name> --json name,url 检查,存在则 git clone https://github.com/dwmkerr/<repo-name> ~/repos/github/dwmkerr/<repo-name>;McKinsey 仓库同理替换为 mckinsey。

限制:资料未提供该技能的安装方式、收费、平台支持范围及更多边界条件,暂未提供。