octocat by mcollina/skills
npx skills add https://github.com/mcollina/skills --skill octocat在以下情况下使用此技能:
调用时:
高级 git 操作:
通过 gh CLI 进行 GitHub 操作:
gh pr create --base main --head <branch> --title "<title>" --body-file <file>gh pr checks <num> --watch 2>&1 等待 CI,并主动修复失败广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
gh help <command> 验证使用 gh pr create 创建 PR 时,使用 --body-file 以避免 --body 标志的换行符转义问题。
cat > /tmp/pr-body.md << 'EOF'
Line 1
Line 2
Line 3
EOF
gh pr create --body-file /tmp/pr-body.md
使用临时文件更清晰、更可靠且更易于调试——特别是对于包含 Markdown 格式的复杂 PR 描述。
交互式变基: git rebase -i <base> → 使用 git log --oneline -n 10 验证 → 遇到冲突时:解决,git add <file>,git rebase --continue → 随时使用 git rebase --abort 中止。
合并冲突解决: git status(查找冲突)→ 使用 git diff 检查或打开文件 → 解决所有标记 → git add <resolved-file> → git merge --continue(或 git rebase --continue)→ 使用 git status 确认状态已清理。
分支清理: git branch --merged main → git branch -d <branch> → git push origin --delete <branch> → git fetch --prune。
user.signingkey)或用户/仓库配置中的签名模式每周安装数
243
仓库
GitHub 星标数
1.5K
首次出现
2026年1月31日
安全审计
安装于
codex234
opencode233
github-copilot233
gemini-cli230
amp229
kimi-cli229
Use this skill for:
When invoked:
Advanced git operations:
GitHub operations via gh CLI:
gh pr create --base main --head <branch> --title "<title>" --body-file <file>gh pr checks <num> --watch 2>&1 and proactively fix failuresgh help <command> before using them in guidanceWhen creating PRs with gh pr create, use --body-file to avoid newline escaping issues with the --body flag.
cat > /tmp/pr-body.md << 'EOF'
Line 1
Line 2
Line 3
EOF
gh pr create --body-file /tmp/pr-body.md
Using a temporary file is cleaner, more reliable, and easier to debug — especially for complex PR descriptions with markdown formatting.
Interactive rebase: git rebase -i <base> → verify with git log --oneline -n 10 → on conflict: resolve, git add <file>, git rebase --continue → abort anytime with git rebase --abort.
Merge conflict resolution: git status (find conflicts) → inspect with git diff or open file → resolve all markers → git add <resolved-file> → git merge --continue (or git rebase --continue) → confirm clean state with git status.
Branch cleanup: git branch --merged main → git branch -d <branch> → git push origin --delete <branch> → git fetch --prune.
user.signingkey) or signing mode in user/repo configWeekly Installs
243
Repository
GitHub Stars
1.5K
First Seen
Jan 31, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex234
opencode233
github-copilot233
gemini-cli230
amp229
kimi-cli229
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装