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

port-github-app-to-origin — скилл для Claude Code: установка

Анализирует кодовую базу GitHub App и составляет план переноса на Cursor Origin API. Находит вызовы, вебхуки и права доступа, сопоставляя их со спецификацией Origin.

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

Что делает port-github-app-to-origin

Скилл работает внутри репозитория существующего приложения. Он сканирует библиотеки Probot или Octokit, эндпоинты REST и GraphQL, а также обработчики вебхуков. Агент не меняет исходники проекта сам по себе и занимается только планированием, пока вы явно не поручите начать переписывание кода.

Для работы скиллу нужен сетевой доступ к актуальной документации Cursor Origin API. Спецификации openapi.yaml и llms-full.txt весят несколько сотен килобайт, поэтому инструмент сохраняет их во временную папку вне репозитория и читает только нужные фрагменты через x-origin-scopes и заголовки эндпоинтов. Учтите, что в Origin нет поддержки GraphQL: скилл разобьёт такие запросы на цепочки REST-вызовов.

Результат записывается в файл references/brief.md. Отчёт содержит подробный разбор различий с номерами строк для команды и отдельный блок обратной связи для Cursor, где описаны только сценарии и недостающие методы API без раскрытия деталей вашего кода.

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

  • составить план миграции GitHub App на Cursor Origin
  • найти используемые вебхуки, права и вызовы API в коде приложения
  • разбить GraphQL-запросы на отдельные вызовы REST для Origin
  • сформировать отчёт о нехватке возможностей в references/brief.md

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

  • Проанализируй наше приложение GitHub и подготовь бриф для переноса на Origin
  • Сравни используемые вебхуки и эндпоинты со спецификацией Cursor Origin
  • Составь план миграции на Origin и выдели запросы, требующие доработок

Как установить port-github-app-to-origin

1Через Skills CLI (Vercel)

npx skills add cursor/plugins --skill port-github-app-to-origin -a claude-code

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

~/.claude/skills/port-github-app-to-origin/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/port-github-app-to-origin/

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

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

create-learning-path Скилл строит учебный маршрут по теме: разбивает её на этапы, добавляет проекты-вехи и упражнения для практики. CX Codex +1 977установок run-learning-retrospective Скилл проводит ретроспективу обучения: сверяет сделанное с целями, находит повторяющиеся блокеры и правит план. Пригодится, когда закрыт очередной этап. CX Codex +1 902установок cancel-ralph Останавливает запущенный цикл Ralph и очищает временные файлы состояния. Пригодится, когда агент зациклился или задачу нужно прервать вручную. CX Codex +1 901установок reproduce-and-fix-issues Автоматизирует воспроизведение багов из тредов Slack через управление UI приложения и готовит черновой пуллреквест при наличии подтверждения. Работает в связке с системой Benny. CX Codex +1 822установок setup-benny Готовит конфигурацию Benny и две автоматизации Cursor: триаж обращений и воспроизведение багов. Нужен, когда ставите Benny или меняете её настройки. CX Codex +1 787установок advisor Подключает вторую модель для проверки решений, разбора тупиков и финальной оценки задачи. Режим включается только по явному запросу. CX Codex +1 404установок debug-voice Устанавливает в приложение dev-логирование голосовых сессий Grok realtime и ведёт цикл правок по логу. CX Codex +1 320установок add-voice Добавляет в приложение голосовой диалог Grok с передачей речи в обе стороны. Нужен при замене каскада STT-LLM-TTS или OpenAI Realtime. CX Codex +1 319установок

Похожие

github-webhooks hookdeck Скилл для приёма и проверки вебхуков GitHub: подсказывает, как разобрать подпись и обработать события push, pull_request, issues и release. CX Codex +1 487установок github-deep-research bytedance Проводит многораундовое исследование любого GitHub-репозитория и собирает структурированный markdown-отчёт с таймлайном, метриками и диаграммами Mermaid. CX Codex +1 2 900установок github-triage code-yeongyu Читает все открытые issues и PR в репозитории и пишет отчёты с доказательствами. Ничего не комментирует и не закрывает. CX Codex +1 2 700установок cors-cross-origin-misconfiguration yaklang Помогает тестировать ошибки CORS и проверять доверие к заголовкам Origin при передаче учётных данных. Пригодится при аудите API и поиске проблем с кэшированием. CX Codex +1 3 700установок github-project-management ruvnet Скилл превращает рутину вокруг issue и доски проекта в вызовы gh и ruv-swarm: метки, подзадачи, поиск дублей. Пригодится, когда задач много, а порядка в трекере нет. CX Codex +1 1 400установок github-release-management ruvnet Автоматизация релизов на GitHub: от черновика и changelog до сборки и развёртывания. Пригодится, когда версии выходят часто, а ручные шаги уже раздражают. CX Codex +1 1 200установок

Рядом в теме «Git и GitHub»

Всё по теме «Git и GitHub» →

Вопросы о port-github-app-to-origin

Как установить port-github-app-to-origin в Claude Code?

Выполните команду npx skills add cursor/plugins --skill port-github-app-to-origin -a claude-code в терминале.

Что делает port-github-app-to-origin?

Скилл изучает код GitHub App, находит вебхуки, эндпоинты и аутентификацию, после чего сопоставляет их со спецификацией Cursor Origin и создаёт файл references/brief.md.

Меняет ли скилл код в репозитории?

Нет, скилл только планирует миграцию и не редактирует файлы проекта. Он лишь сохраняет бриф и обращается к документации во временном каталоге.

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

SKILL.md · MIT
---
name: port-github-app-to-origin
description: >-
  Plans the port of an existing GitHub App to a Cursor Origin App. Use when the
  task is to bring a GitHub App to Origin or compare what it uses against the
  Origin API. Reads the app's needs out of its code, maps them onto the live
  Origin spec, and writes a porting brief with feedback for Cursor. Planning
  only.
license: MIT
compatibility: >-
  Needs network access to https://cursor.com/docs/api/origin/* at run time.
---

# Port a GitHub App to an Origin App

Run this inside the app's codebase. The output is a porting brief for the
team plus a Feedback for Cursor section they can send as is
(`references/brief.md`). This skill plans. It does not write or change code
unless the user asks for that after reading the brief. Follow the
`origin-api` skill for the docs and the rules to check first. Two more rules:

1. **Find it in the code, do not ask.** Read what the app uses out of its
   source. Anything you cannot find becomes a question for the team.
2. **Feedback describes use cases, not the team's code.** The team's parts of
   the brief may cite `file:line`. Feedback for Cursor says only what the app
   needs to do and what Origin lacks for it, in Origin terms, with no file
   paths, module names, framework details, or repository names.

## What to find

Record `file:line` for each item, and note what you looked for but did not
find.

- Declared permissions and events, from a manifest or infrastructure code
  if one is checked in. Otherwise derive them from the calls.
- Every webhook event the app handles, and every payload field each handler
  reads, including fields it only logs.
- Every REST and GraphQL call, with the parameters and filters the code
  passes, the response fields it reads, whether it runs on every webhook or
  in a loop, and how it paginates.
- Authentication: the JWT algorithm, how the app learns the installation ID
  after install, how it handles token expiry, any user sign-in and what it is
  for, and whether the app clones or pushes git.
- The webhook receiver: how it verifies signatures, whether it has the raw
  body when it verifies, and how it deduplicates deliveries.
- Calls a framework or library makes for the app. Probot's receiver, token
  cache, and config loader; Octokit `App`'s installation and repository
  listing; app-auth libraries. Read the dependency's docs and list these
  calls marked "from `<dependency>`".

## How to map

A brief needs the whole spec, but `openapi.yaml` and `llms-full.txt` are
each several hundred kilobytes, too large to read into context whole. Save
them locally if you can, in a temporary location outside the app's
repository so nothing in the working tree is overwritten or left behind,
then search them and read only the matching part:

- `x-origin-scopes:` in `openapi.yaml` marks every operation with its
  scopes; the `operationId` sits a line above.
- `x-origin-webhook-events:` in `openapi.yaml` marks every webhook payload
  schema with the event slugs that deliver it.
- `### <Endpoint name>` and `### <Payload type>` headings in `llms-full.txt`
  start the section that spells out that endpoint's or payload's fields as
  dotted paths; read from the heading to the next `###`.

For a single question later, start at `llms.txt` and fetch just that
section.

- A matching name is a candidate, not an answer. Read the operation's
  description, parameters, and response fields against what the code passes
  and reads. If a parameter or field the code depends on is missing, that is
  a workaround or a gap, not a match.
- GitHub's pull request calls that live under `/issues/{n}/…` (comments,
  labels) live under the pull request endpoints on Origin. If the code uses
  them on real issues, see "Where GitHub features live on Origin" in
  `references/brief.md`.
- Origin has no GraphQL. Break each query into REST calls and record the
  fan-out.
- The scopes to request are the union of `x-origin-scopes.scopes` over the
  operations you named. Do not translate the GitHub manifest.
- Each GitHub event and action pair maps to at most one slug in "Events". The
  action is part of the slug. A pair with no slug is not an event on Origin.
- For each payload field the code reads, record whether it is in the
  payload, in the delivery envelope around the payload (`event.type` carries
  the action), needs an extra read (say which operation and how many calls
  per event), can be computed from other fields, or is missing. Payloads are
  snapshots. A field the REST resource has but the payload lacks needs an
  extra read.
- A capability the docs never mention is not available today. Ask the team
  about it. A behavior the docs neither confirm nor deny gets a question plus
  a step in the end-to-end test that checks it. Do not assume it works the
  way it did on GitHub.

## Before finishing

Every claim about Origin points at something in the saved docs. Every gap
has a feedback entry that names its cost. The feedback reveals nothing about
the team's internals. The summary names the native-or-mirror question.

© cursor · MIT · cursor/plugins

Смотрите также

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

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