npx skills add ...
npx skills add mcollina/skills --skill octocat
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, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.
npx skills add mcollina/skills --skill octocat
Use this skill for:
github.com URL, even without words like "GitHub", "issue", "PR", or "repo"When invoked:
gh/git firstgithub.com URL, activate this skill immediately and translate that URL into the relevant gh/git workflowFix https://github.com/mercurius-js/mercurius/issues/1227Review https://github.com/nodejs/node/pull/12345What changed in https://github.com/org/repo/compare/v1.0.0...v1.1.0?Check https://github.com/org/repo/actions/runs/123456789Investigate https://github.com/org/repo/commit/abcdef1234567890Advanced 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.
PR descriptions should stay simple:
## Summary or ## TestingUsing a temporary file is cleaner, more reliable, and easier to debug.
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 config