К основному содержанию
скилл CX Codex

octocat — скилл для Claude Code: что делает и как установить

Скилл связывает агента с Git и GitHub через gh CLI. Он пригодится для PR, issue, проверок CI, веток и анализа истории репозитория.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mcollina/skills --skill octocat -a claude-code
Открыть на GitHub

Что делает octocat

octocat реагирует на запросы с GitHub-ссылками и на задачи вокруг Git. Скилл помогает создавать и проверять pull request, работать с issue, релизами, Actions, проектами и настройками репозитория. Через gh CLI он также читает security advisories, комментарии к ним и приватные отчёты об уязвимостях.

Для Git доступны интерактивный rebase, cherry-pick, bisect, worktrees, merge-конфликты, хуки, submodule и subtree. В правилах отдельно описаны проверки после сложных операций, работа с временными приватными fork для исправлений уязвимостей и ожидание CI после создания PR. Скилл не должен менять настройки подписи коммитов и добавлять AI-атрибуцию.

Скилл рассчитан на Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Он работает через gh CLI, поэтому перед задачей стоит проверить доступ к этой команде.

Какие задачи решает

  • создать и проверить pull request
  • разобрать issue по GitHub-ссылке
  • найти причину сбоя в Actions
  • разрешить merge-конфликт и продолжить rebase
  • исследовать историю через git log, git blame и git bisect

Примеры запросов агенту

  • Проверь этот GitHub issue и предложи исправление.
  • Создай pull request для текущих изменений, дождись проверок CI и разберись со сбоями.
  • Разбери security advisory, прочитай обсуждение и подготовь исправление во временном приватном fork.

Как установить octocat

1Через Skills CLI (Vercel)

npx skills add mcollina/skills --skill octocat -a claude-code

2Вручную: положить файлы

~/.claude/skills/octocat/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/octocat/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о octocat

Как установить octocat в Claude Code?

Выполните npx skills add mcollina/skills --skill octocat -a claude-code, затем повторите npx skills add mcollina/skills --skill octocat -a claude-code. Файл скилла находится по пути ~/.claude/skills/octocat/SKILL.md.

Что делает octocat?

Скилл управляет Git и GitHub через gh CLI. Он охватывает PR, issue, Actions, релизы, security advisories, ветки, конфликты и анализ истории.

С какими платформами работает octocat?

Скилл рассчитан на Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode.

Исходный текст

SKILL.md · MIT
---
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:
- Any prompt containing a pasted `github.com` URL, 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
- Reading or triaging repository security advisories (GHSA), private vulnerability reports, and advisory comments; adding or editing triage notes
- Creating a GHSA temporary private fork and opening an embargoed fix PR inside it
- 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:
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](rules/security-advisory-comments.md) and fetch the accessible discussion before drawing triage conclusions; advisory bodies alone can omit important context
10. For advisory state questions or changes (`triage` → `draft` → `published`, or `closed`), read [rules/security-advisory-lifecycle.md](rules/security-advisory-lifecycle.md); never publish an advisory unless the user explicitly asks
11. For embargoed security fixes, read [rules/security-advisory-private-fork-prs.md](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

- `Fix https://github.com/mercurius-js/mercurius/issues/1227`
- `Review https://github.com/nodejs/node/pull/12345`
- `What changed in https://github.com/org/repo/compare/v1.0.0...v1.1.0?`
- `Check https://github.com/org/repo/actions/runs/123456789`
- `Investigate https://github.com/org/repo/commit/abcdef1234567890`
- `Triage https://github.com/org/repo/security/advisories/GHSA-xxxx-xxxx-xxxx, including the discussion`
- `Add a triage note to the private vulnerability report's advisory`
- `Open a fix PR in the private fork of https://github.com/org/repo/security/advisories/GHSA-xxxx-xxxx-xxxx`

## 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>&1` and proactively fix failures
- Validate unfamiliar gh commands first with `gh help <command>` before using them in guidance
- Track and change advisory state from triage to draft to published, or closed ([lifecycle](rules/security-advisory-lifecycle.md))
- Read repository security advisories and their comments; add/edit advisory comments via REST ([workflow and limits](rules/security-advisory-comments.md))
- Create an advisory's temporary private fork and open fix PRs inside it ([workflow](rules/security-advisory-private-fork-prs.md))
- 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 `## Summary` or `## Testing`
- Do not include a testing section
- Architecture changes may need a slightly longer description if extra context is necessary

```bash
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")

© mcollina · MIT · mcollina/skills

Похожие скиллы

Всё по теме «Безопасность» →
code-review coderabbitai Запускает проверку кода через утилиту CodeRabbit CLI и помогает агенту исправлять найденные замечания. Пригодится для поиска багов и уязвимостей перед коммитом или PR. CX Codex +1 14 800установок make-repo-contribution официальный github Скилл проверяет правила репозитория перед issue, веткой, коммитом или PR и помогает пройти процесс контрибьюции без пропуска обязательных шагов. 11 073установок ci-cd-security superagent-ai Читает YAML GitHub Actions и находит дыры в безопасности: опасные триггеры, права токена, инъекции. Ничего запускать не нужно. CX Codex +1 7 900установок agentic-actions-auditor trailofbits Проверяет рабочие процессы GitHub Actions с интеграцией ИИ-агентов на уязвимости и инъекции промптов. Помогает найти утечки контекста через переменные окружения и опасные триггеры. CX Codex +1 6 700установок gh-cli trailofbits Скилл заставляет ИИ использовать аутентифицированный gh CLI вместо curl и fetch при работе с репозиториями, PR и issues GitHub. Нужен для приватных репо и выше лимитов API. CX Codex +1 6 600установок secret-scanning официальный github Скилл помогает настроить поиск утёкших секретов, защиту push и работу с алертами GitHub. Пригодится перед коммитом и при разборе заблокированных отправок. 4 600установок

Из того же набора11

node Даёт агенту правила для Node.js и TypeScript: от запуска .ts без сборки до потоков, тестов и остановки сервиса. CX Codex +1 5 900установок typescript-magician Устраняет ошибки TypeScript, заменяет any на строгие типы и строит типобезопасные дженерики. Помогает навести порядок в типах кодовой базы. CX Codex +1 2 800установок nodejs-core Скилл для правок и отладки ядра Node.js: коммиты и PR в nodejs/node, нативные краши, V8, node-gyp, N-API и libuv. CX Codex +1 1 900установок documentation Скилл структурирует техническую документацию по фреймворку Diátaxis. Он помогает писать туториалы, инструкции how-to, справочники и концептуальные статьи без каши в структуре. CX Codex +1 1 800установок init Собирает AGENTS.md из того, что агент не выведет из кода: нестандартные команды, ловушки, локальные договорённости. И выкидывает из файла всё остальное. CX Codex +1 1 300установок oauth Настраивает авторизацию OAuth 2.0 и 2.1 в приложениях на Fastify с защитой через PKCE и ротацией токенов. Пригодится для проверки JWT, настройки сессий и устранения ошибок redirect URI. CX Codex +1 1 300установок skill-optimizer Скилл для тех, кто пишет и правит скиллы: помогает понять, почему модель их не применяет, и не ухудшают ли они вывод. CX Codex +1 1 400установок linting-neostandard-eslint9 Скилл настраивает ESLint 9 с flat config и базой neostandard в проектах на JavaScript и TypeScript. Помогает перейти с устаревшего .eslintrc и запустить проверки в CI. CX Codex +1 1 100установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой