用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Abd0r/porcupineai --skill github-repo-management命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | github-repo-management |
| description | Clone, fork, create repos; remotes, releases, settings. |
| stack | vcs |
| tags | ["github","clone","fork","release","remote","repo"] |
Clone/fork/create repos, fix remotes, cut releases, inspect repo metadata.
Load github-auth. Prefer gh; fall back to git + token curl.
if command -v gh >/dev/null && gh auth status >/dev/null 2>&1; then AUTH=gh; else AUTH=git; fi
REMOTE_URL=$(git remote get-url origin 2>/dev/null || true)
OWNER_REPO=$(echo "$REMOTE_URL" | sed -E 's|.*github\.com[:/]||; s|\.git$||')
git clone https://github.com/OWNER/REPO.git
git clone --depth 1 https://github.com/OWNER/REPO.git
git clone --branch main https://github.com/OWNER/REPO.git
gh repo clone OWNER/REPO
gh repo fork OWNER/REPO --clone=true
git remote -v
# origin → your fork; add upstream if missing
git remote add upstream https://github.com/OWNER/REPO.git 2>/dev/null || true
gh repo create NAME --private --source=. --remote=origin --push
gh repo create ORG/NAME --public --description "short description"
git remote -v
git remote set-url origin https://github.com/YOU/REPO.git
gh repo view --json nameWithOwner,defaultBranchRef,isPrivate,url
git fetch origin
git branch -vv
gh release list --limit 10
gh release view latest
gh release create v1.2.3 --title "v1.2.3" --generate-notes
gh release upload v1.2.3 ./dist/artifact.tgz
gh api repos/OWNER/REPO/contents/PATH --jq '.[].name'
gh api "repos/OWNER/REPO/git/trees/BRANCH?recursive=1" --jq '.tree[].path' | head -100
gh api repos/OWNER/REPO/readme --jq .content | base64 -d | head -80