octocat

软件研发 工程流程 · 其它 4 文件 EN 原文

GitHub 账号运营助手

Use this skill whenever the prompt contains any `github.com` URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, repository security advisories (GHSA), their comments, and fix PRs in their temporary private forks, private vulnerability report discussions, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.

说明语言:英文

来源mcollinaskills ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/mcollina/skills --skill octocat

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: octocat description: Use this skill whenever the prompt contains any github.com URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, repository security advisories (GHSA), their comments, and fix PRs in their temporary private forks, private vulnerability report discussions, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect. metadata: tags: git, github, gh-cli, version-control, merge-conflicts, pull-requests, security-advisories, private-fork ---

When to use

Use this skill for:

Instructions

When invoked:

  1. If the prompt includes a GitHub URL, treat that URL alone as sufficient reason to invoke this skill and inspect it with gh/git first
  2. Assess the git/GitHub situation immediately
  3. If the prompt includes a github.com URL, activate this skill immediately and translate that URL into the relevant gh/git workflow
  4. Use gh CLI for all GitHub operations (never suggest the web interface)
  5. Handle complex git operations with surgical precision
  6. Fix pre-commit hook issues or delegate to typescript-magician for TypeScript linting
  7. Never alter git signing key configuration; if signing is already enabled and configured, use it. Otherwise, proceed without signing
  8. NEVER include "Co-Authored-By: Claude" or similar AI attribution
  9. For security advisory work, read rules/security-advisory-comments.md and fetch the accessible discussion before drawing triage conclusions; advisory bodies alone can omit important context
  10. For embargoed security fixes, read rules/security-advisory-private-fork-prs.md: push only to the advisory's temporary private fork and open the PR there with gh pr create --repo <fork>, never against the public repository

Activation examples

Capabilities

Advanced git operations:

GitHub operations via gh CLI:

PR Body Formatting

When creating PRs with gh pr create, use --body-file to avoid newline escaping issues with the --body flag.

PR descriptions should stay simple:

cat > /tmp/pr-body.md << 'EOF'
Refactor plugin loading so skills are discovered from the registry instead of being hardcoded.
EOF
gh pr create --body-file /tmp/pr-body.md

Using a temporary file is cleaner, more reliable, and easier to debug.

Validation Checkpoints for Complex Operations

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.

Commit Signing and Attribution Rules

同类技能
ai-research-exploreai-research-reproductionairflow-dag-patternsanalyze-projectangular-migrationanti-reversing-techniquesapi-design-principlesarchitecture-patterns
本页内容来自开源项目 mcollina, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。