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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- 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.pushedstill arrives, every call beyond metadata and contents reads returns403, and merging a pull request or changing the default branch is not available ("Mirrored repositories", "Events"). - Subscribe. Only
installation.*events arrive without a subscription. A missing subscription produces silence, not an error ("Events"). - 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. - Scopes from the spec. Request the union of
x-origin-scopes.scopesover the operations the app calls ("Scopes"). - 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
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。