用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/HezaoHezao/poirot --skill github-repo-management命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | github-repo-management |
| description | Clone, create, fork repos; manage remotes, releases. |
| allowed-tools | ["bash"] |
| enabled | true |
| related-skills | ["github-auth","github-pr-workflow","github-issues"] |
| license | MIT |
| author | Adapted from hermes-agent (Nous Research, MIT) |
Create, clone, fork, configure, and manage GitHub repositories.
github-auth skill)# HTTPS
git clone https://github.com/owner/repo.git
# SSH
git clone git@github.com:owner/repo.git
# With gh (auto-forks if you don't have push access)
gh repo clone owner/repo
# Clone + set up remote for fork
gh repo clone owner/repo -- --origin upstream
git remote add origin https://github.com/$GH_USER/repo.git
# With gh (creates on GitHub + clones locally)
gh repo create my-project --public --clone --description "My project"
# Private
gh repo create my-project --private --clone
# With git + curl
mkdir my-project && cd my-project && git init
curl -s -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/user/repos \
-d '{"name":"my-project","private":true,"description":"My project"}'
git remote add origin https://github.com/$GH_USER/my-project.git
git push -u origin main
# With gh (forks + clones + sets up remotes)
gh repo fork owner/repo --clone
# With curl
curl -s -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/owner/repo/forks
# Manual fork setup
git remote add upstream https://github.com/owner/repo.git
git remote set-url origin https://github.com/$GH_USER/repo.git
# List remotes
git remote -v
# Add remote
git remote add upstream https://github.com/owner/repo.git
# Change remote URL
git remote set-url origin git@github.com:owner/repo.git
# Remove remote
git remote remove upstream
# Sync fork with upstream
git fetch upstream
git checkout main
git merge upstream/main
git push origin main
# Create release with gh
gh release create v1.0.0 --title "v1.0.0" --notes "First stable release"
# Create release with assets
gh release create v1.0.0 ./dist/app.tar.gz ./dist/app.zip --title "v1.0.0"
# List releases
gh release list
# View release
gh release view v1.0.0
# Download release assets
gh release download v1.0.0 --pattern "*.tar.gz"
# With curl
curl -s -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/$OWNER/$REPO/releases \
-d '{"tag_name":"v1.0.0","name":"v1.0.0","body":"First stable release"}'
# With gh
gh repo edit --description "New description"
gh repo edit --enable-issues=false
gh repo edit --default-branch main
# With curl
curl -s -X PATCH \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/$OWNER/$REPO \
-d '{"description":"New description","default_branch":"main"}'
# With gh
gh secret set MY_SECRET --body "secret_value"
gh secret set MY_SECRET < secret_file.txt
gh secret list
gh secret delete MY_SECRET
# With curl (requires public key encryption)
# See https://docs.github.com/en/rest/actions/secrets
# With gh (requires --yes for confirmation)
gh repo delete owner/repo --yes
# With curl
curl -s -X DELETE \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/$OWNER/$REPO
gh release create auto-creates the tag if it doesn't exist.gh secret set instead of raw curl.