Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)15k · #11006

port-github-app-to-origin

Skill này làm gì

Skill đọc code GitHub App của bạn và so sánh những gì nó cần với API Origin. Dành cho các nhóm lên kế hoạch chuyển từ GitHub App sang Origin App.

Khi nào nên dùng

  • ✓Khi bạn muốn đưa một GitHub App hiện có sang Origin.
  • ✓Khi bạn cần biết ứng dụng của mình phụ thuộc vào những tính năng Origin nào.
  • ✓Khi bạn muốn một kế hoạch bằng văn bản kèm câu hỏi cho nhóm trước khi bắt đầu viết code.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cursor/plugins/blob/main/origin-apps/skills/port-github-app-to-origin/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy lên kế hoạch chuyển bot review GitHub của chúng tôi sang Origin App và liệt kê những gì Origin còn thiếu cho nó.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm quyền, sự kiện webhook, lời gọi API và xác thực của ứng dụng trong code, rồi ánh xạ chúng sang tài liệu Origin. Nó viết một bản tóm tắt cho nhóm và một ghi chú phản hồi cho Cursor, mà không thay đổi bất kỳ code nào.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Nó có thay đổi code của tôi không?

Không. Skill chỉ dùng để lên kế hoạch, và chỉ thay đổi code nếu bạn yêu cầu sau khi đọc bản tóm tắt.

Phản hồi gửi Cursor gồm gì?

Những gì ứng dụng cần làm và những gì Origin còn thiếu, được viết thành các trường hợp sử dụng, không có đường dẫn file hay tên repository.

Nếu có thứ không có trong code thì sao?

Skill ghi nó như một câu hỏi cho nhóm bạn thay vì đoán.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
15k
Vị trí xếp hạng
#11006
Giấy phép
—
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự