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

origin-api

Skill này làm gì

Skill chỉ cho agent tới đúng tài liệu API Origin và các quy tắc cần kiểm tra trước. Dành cho lập trình viên xây dựng Origin App hoặc xử lý webhook của Origin.

Khi nào nên dùng

  • ✓Khi một tác vụ nhắc đến API Origin, Origin App hoặc webhook của Origin.
  • ✓Khi bạn cần tạo một Origin App hoặc xác thực với tư cách một Origin App.
  • ✓Khi bạn xử lý dữ liệu webhook hoặc gọi các endpoint của Origin.

Liên kết skill

https://github.com/cursor/plugins/blob/main/origin-apps/skills/origin-api/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/origin-api/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

“Làm thế nào để tôi xác thực Origin App của mình và gọi các endpoint của repository?”

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

Cách hoạt động

Agent bắt đầu từ mục lục tài liệu Origin chính thức, chỉ đọc phần trả lời câu hỏi của bạn, và kiểm tra các quy tắc như repository là native hay bản sao từ GitHub. Nó không dựa vào trí nhớ cho tên endpoint.

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.

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.

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

Nó có đoán tên endpoint không?

Không. Endpoint, scope và giới hạn lấy từ tài liệu, và tài liệu được ưu tiên hơn trí nhớ.

Repository native là gì?

Một repository được tạo trên Origin, có đầy đủ scope và mọi hành động ghi. Bản sao GitHub có nhiều giới hạn hơn.

Nó có bao gồm payload webhook không?

Có. Tài liệu có một bảng tham chiếu payload cho mỗi sự kiện webhook.

Chi tiết

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

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

Độ phổ biến

Sao GitHub
15k
Vị trí xếp hạng
#11005
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ự