What Octocat does
Octocat is a powerful skill designed for developers and designers who frequently interact with GitHub. It simplifies the process of managing GitHub repositories by automatically handling any prompt that contains a github.com URL. This skill leverages the gh CLI to perform a wide range of GitHub operations, including creating and reviewing pull requests, managing issues, and monitoring CI checks. By using Octocat, users can focus on their code without getting bogged down by the intricacies of GitHub's web interface.
When invoked, Octocat immediately assesses the context of the GitHub URL provided in the prompt, allowing it to execute relevant gh or git commands seamlessly. This includes advanced git operations like interactive rebasing, branch cleanup, and submodule management, ensuring that users can maintain a clean project history and effectively manage their codebase. The skill is particularly useful for tasks such as resolving merge conflicts, debugging pre-commit hooks, and optimizing GitHub Actions workflows.
Octocat is ideal for developers who want to streamline their GitHub interactions and automate repetitive tasks. It is also beneficial for teams that require consistent and efficient management of pull requests and issues. By automating these processes, Octocat helps improve productivity and reduces the likelihood of errors during manual operations. Whether you're working on a solo project or collaborating with a team, this skill can enhance your workflow and make your GitHub experience more efficient.
However, it's important to note that Octocat is not a substitute for learning Git and GitHub fundamentals. While it automates many tasks, users should still have a basic understanding of git commands and workflows to effectively utilize the skill. Additionally, Octocat does not alter git signing configurations or include AI attributions in commits, ensuring that your commit history remains clean and professional.
When to use it
Use Octocat whenever you paste a GitHub URL in your prompt, regardless of additional context.
When not to use it
Avoid using Octocat for non-GitHub related tasks or when a manual approach to Git operations is preferred.
What you can build with it
Creating a Pull Request
Simply paste the URL of your branch into the prompt, and Octocat will create a pull request using the `gh` CLI.
Resolving Merge Conflicts
When faced with merge conflicts, provide the relevant GitHub URL, and Octocat will guide you through the resolution process.
Monitoring CI Checks
Paste the URL of your GitHub Actions run, and Octocat will check the CI status and notify you of any failures.
How to install Octocat
View source1. Install with the skills CLI
npx skills add mcollina/skills/octocat --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mcollinaWhen to use
Use this skill for:
- Any prompt containing a pasted
github.comURL, even without words like "GitHub", "issue", "PR", or "repo" - Any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository
- "Fix https://github.com/owner/repo/issues/123" style tasks
- Creating, reviewing, and managing pull requests and GitHub issues
- Merge conflict resolution and history rewriting
- Pre-commit hook debugging and fixes
- Branch management and cleanup
- GitHub Actions workflow optimization
- Any git command or GitHub workflow question
Instructions
When invoked:
- If the prompt includes a GitHub URL, treat that URL alone as sufficient reason to invoke this skill and inspect it with
gh/gitfirst - Assess the git/GitHub situation immediately
- If the prompt includes a
github.comURL, activate this skill immediately and translate that URL into the relevantgh/gitworkflow - Use gh CLI for all GitHub operations (never suggest the web interface)
- Handle complex git operations with surgical precision
- Fix pre-commit hook issues or delegate to typescript-magician for TypeScript linting
- Never alter git signing key configuration; if signing is already enabled and configured, use it. Otherwise, proceed without signing
- NEVER include "Co-Authored-By: Claude" or similar AI attribution
Activation examples
Fix 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/abcdef1234567890
Capabilities
Advanced git operations:
- Interactive rebasing for clean history (commit splitting, squashing)
- Cherry-pick, bisect, worktrees
- Advanced merge strategies
- Submodule and subtree management
- Git hooks setup and maintenance
- Repository archaeology with git log/blame/show
GitHub operations via gh CLI:
- Create/manage PRs with proper templates
- Open PRs with explicit base/head and clear concise content, e.g.
gh pr create --base main --head <branch> --title "<title>" --body-file <file> - After opening a PR, wait for CI with
gh pr checks <num> --watch 2>&1and proactively fix failures - Validate unfamiliar gh commands first with
gh help <command>before using them in guidance - Handle issues and project boards
- Manage releases and artifacts
- Configure repository settings
- Automate workflows and notifications
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:
- Write a short description of the change in plain prose
- Do not add subsections or headings such as
## Summaryor## Testing - Do not include a testing section
- Architecture changes may need a slightly longer description if extra context is necessary
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
- NEVER alter git signing key settings (
user.signingkey) or signing mode in user/repo config - If commit signing is already enabled and correctly configured, create signed commits using the existing setup
- If signing is not enabled/configured, do not force or configure signing; proceed without it
- NEVER add AI co-authorship attributions (e.g. "Co-Authored-By: Claude")
Frequently asked questions about Octocat
Similar skills
Release Candidate Preparation
Streamline your OpenAI Agents release process.
Gitmoji
Generate expressive commit messages with emojis.
GitHub Release
Automate your GitHub library release process effortlessly.
Commit Message Storyteller
Generate meaningful commit messages from your git diffs.
Author Contributions
Trace author contributions across branches in Git.
Implementation Kickoff
Streamline your code implementation process with ease.

