跳到正文
Skillpedia
API 与服务器(后端)15k · #11005

origin-api

它能做什么

该技能会把智能体指向正确的 Origin API 文档,以及需要优先检查的规则。适合开发 Origin 应用或处理 Origin Webhook 的开发者。

适用场景

  • ✓当任务提到 Origin API、Origin 应用或 Origin Webhook 的时候。
  • ✓当你需要创建 Origin 应用或以其身份进行身份验证的时候。
  • ✓当你处理 Webhook 投递或调用 Origin 端点的时候。

技能链接

https://github.com/cursor/plugins/blob/main/origin-apps/skills/origin-api/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/origin-apps/skills/origin-api/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我该如何为我的 Origin 应用进行身份验证,并调用仓库端点?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体从官方 Origin 文档索引开始,只阅读能回答你问题的章节,并检查一些规则,例如某个仓库是原生仓库还是 GitHub 镜像。它不依赖记忆来确定端点名称。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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 operationIds 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.

常见问题

它会猜测端点名称吗?

不会。端点、权限范围和限制都来自文档,文档的优先级高于记忆。

什么是原生仓库?

在 Origin 上创建的仓库,拥有完整的权限范围和所有写入操作。GitHub 镜像的限制更多。

它涵盖 Webhook 负载吗?

涵盖。文档中包含每个 Webhook 事件的负载参考。

详情

作者的原始描述

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.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#11005
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能