origin-api — скилл для Claude Code: возможности и установка
Скилл направляет вопросы о Cursor Origin API к нужным разделам документации и напоминает, какие правила проверить. Пригодится при создании Origin App, работе с API и вебхуками.
npx skills add cursor/plugins --skill origin-api -a claude-codeЧто делает origin-api
Скилл помогает найти нужный раздел документации Origin для конкретного вопроса: использует llms.txt как индекс, а для контракта API — openapi.yaml. Для ответа предлагает читать только подходящий раздел и ссылаться на operationId и названия разделов. Документация должна быть доступна по сети.
Перед работой с вебхуками скилл напоминает проверить подпись на исходном теле запроса, устранить повторы по ID доставки и вернуть 2xx до обработки. Он также обращает внимание на различия между нативным репозиторием и GitHub-зеркалом, подписки на события и требуемые области доступа. Для GitHub App, которую переносят в Origin, назван отдельный скилл port-github-app-to-origin. Без сетевого доступа к документации правила и сведения об API могут оказаться устаревшими.
Какие задачи решает
- найти в документации нужный метод Origin API
- проверить области доступа для операций приложения
- разобраться, какие события придут без подписки
- проверить обработку подписи и повторных вебхуков
- учесть ограничения GitHub-зеркала Origin
Примеры запросов агенту
- Найди в документации Origin API нужный метод для чтения данных репозитория и перечисли необходимые области доступа.
- Проверь обработчик вебхуков Origin: учти проверку подписи, повторы доставки и подтверждение ответа.
- Объясни, какие ограничения будут у приложения на GitHub-зеркале и какие события требуют подписки.
Как установить origin-api
1Через Skills CLI (Vercel)
npx skills add cursor/plugins --skill origin-api -a claude-code2Вручную: положить файлы
~/.claude/skills/origin-api/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/origin-api/
1Через Skills CLI (Vercel)
npx skills add cursor/plugins --skill origin-api -a codex2Вручную: положить файлы
.agents/skills/origin-api/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cursor/plugins --skill origin-api -a cursor2Вручную: положить файлы
.cursor/skills/origin-api/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cursor/plugins origin-api2Вручную: положить файлы
.github/skills/origin-api/SKILL.md1Через Skills CLI (Vercel)
npx skills add cursor/plugins --skill origin-api -a gemini-cli2Командой платформы
gemini skills install https://github.com/cursor/plugins --path origin-apps/skills/origin-apiВручную: положить файлы
.devin/skills/origin-api/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cursor/plugins --skill origin-api -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о origin-api
Как установить origin-api в Claude Code?
Выполните npx skills add cursor/plugins --skill origin-api -a claude-code. Файл скилла находится по пути ~/.claude/skills/origin-api/SKILL.md.
Что делает origin-api?
Он направляет вопросы о Cursor Origin API к разделам документации и подсказывает, какие правила проверить перед работой с приложением, API или вебхуками.
Нужен ли origin-api доступ к сети?
Да. Во время работы ему нужен доступ к документации Origin по адресу https://cursor.com/docs/api/origin/*.
Исходный текст
SKILL.md · MIT
---
name: origin-api
description: >-
Routes questions about the Cursor Origin API to the right section of the
Origin docs and names the few rules to check first. Use when a task mentions
Origin, the Origin API, Origin Apps, or Origin webhooks, including creating
an Origin App, authenticating as one, calling Origin endpoints, or handling
Origin webhook deliveries.
license: MIT
compatibility: >-
Needs network access to https://cursor.com/docs/api/origin/* at run time.
---
# Origin API
The docs are the source of truth. Do not name an endpoint, scope, event slug,
header, or limit from memory. Where this file and the docs disagree, the docs
win.
The docs live under `https://cursor.com/docs/api/origin/`. `llms.txt` is
the index and links every section, endpoint, and webhook payload.
`openapi.yaml` is the contract, and "Endpoint reference" explains its
`x-origin-*` extensions. `llms-full.txt` is the whole reference in one file.
`changelog` says what moved. For one question, start at `llms.txt` and
fetch only the section that answers it. `llms-full.txt` and `openapi.yaml`
are each several hundred kilobytes, too large to read into context whole.
When you need all of them, as a porting brief does, save them locally if you
can, outside any repository you are working in, search them for the section
heading or annotation you need, and read only the matching part. Cite
`operationId`s and section names.
## Rules to check first
1. **Native or mirror.** A repository is either native (created on Origin)
or a GitHub mirror. On a native repository an installation has its full
scopes and every write. On a GitHub mirror, every event except
`repository.pushed` still arrives, every call beyond metadata and
contents reads returns `403`, and merging a pull request or changing the
default branch is not available ("Mirrored repositories", "Events").
2. **Subscribe.** Only `installation.*` events arrive without a subscription.
A missing subscription produces silence, not an error ("Events").
3. **Verify, dedupe, acknowledge.** Verify the signature over the raw body
before parsing, dedupe on the delivery ID, return `2xx`, then process
("Signature verification", "Retries", "Automatic disable"). Origin signs
a digest, which Standard Webhooks does not, so a generic verifier fails.
4. **Scopes from the spec.** Request the union of `x-origin-scopes.scopes`
over the operations the app calls ("Scopes").
5. **Opaque tokens and IDs.** Do not build or parse page tokens or IDs
("Pagination", "IDs").
One section name the index does not make obvious: what happens to a
check-run post that arrives out of order is under "Ordering writes".
Porting an existing GitHub App: use `port-github-app-to-origin` in this
plugin.
© cursor · MIT · cursor/plugins