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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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
- 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.
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
Bình luận
- …
Thêm skill từ kho mã này
advisor
15kCho agent hỏi ý kiến một mô hình thứ hai mạnh hơn tại các điểm then chốt, như trước quyết định lớn hoặc khi bị kẹt ở lỗi, nếu bạn bật nó.
check-agent-compatibility
15kKiểm tra xem coding agent AI có khởi động, xác minh và ghi tài liệu được cho một repository không, rồi trả về một điểm tương thích và vấn đề chính.
cli-for-agents
15kDạy agent thiết kế hoặc rà soát công cụ dòng lệnh để các coding agent AI chạy được mà không cần lời nhắc, với trợ giúp rõ ràng và ví dụ.
continual-learning
15kGiữ các ghi chú AGENTS.md của bạn cập nhật bằng cách giao việc rà soát các cuộc trò chuyện trước cho một trình cập nhật bộ nhớ chuyên dụng.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.