port-github-app-to-origin
它能做什么
该技能读取你的 GitHub 应用代码,并将其所需内容与 Origin API 进行比较。适合规划从 GitHub 应用迁移到 Origin 应用的团队。
适用场景
- ✓当你想把现有的 GitHub 应用迁移到 Origin 的时候。
- ✓当你需要了解你的应用依赖哪些 Origin 功能的时候。
- ✓当你希望在开始任何编码之前,先有一份包含待团队回答问题的书面计划的时候。
技能链接
https://github.com/cursor/plugins/blob/main/origin-apps/skills/port-github-app-to-origin/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请规划如何把我们的 GitHub 审阅机器人移植为 Origin 应用,并列出 Origin 缺少哪些它所需的功能。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会在应用代码中找出其权限、Webhook 事件、API 调用和身份验证方式,然后将它们映射到 Origin 文档。它会为团队撰写一份简报,并为 Cursor 撰写一份反馈说明,而不修改任何代码。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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:
- 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.
- 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:inopenapi.yamlmarks every operation with its scopes; theoperationIdsits a line above.x-origin-webhook-events:inopenapi.yamlmarks every webhook payload schema with the event slugs that deliver it.### <Endpoint name>and### <Payload type>headings inllms-full.txtstart 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" inreferences/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.scopesover 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.typecarries 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
常见问题
它会修改我的代码吗?
不会。该技能只用于规划,只有在你阅读简报后要求时才会改动代码。
给 Cursor 的反馈包含什么?
应用需要做什么,以及 Origin 缺少什么,并以用例的形式书写,不包含文件路径或仓库名称。
如果代码中没有某些内容怎么办?
该技能会把它记录为给你团队的问题,而不是去猜测。
详情
作者的原始描述
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.
repo: cursor/plugins
热度
- GitHub 星标
- 15k
- 排名
- #11006
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。