본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)15k · #10929

cursor-sdk

하는 일

이 스킬은 Cursor TypeScript SDK를 통해 Cursor 에이전트를 실행하는 코드를 쓰는 방법을 어시스턴트에게 제공합니다. 자신의 도구에서 Cursor 작업을 자동화하려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Cursor 에이전트를 실행하는 앱이나 스크립트를 만들고 싶을 때.
  • ✓코드에서 Cursor SDK나 그 에이전트 함수를 언급할 때.
  • ✓Cursor 에이전트를 실행하는 자동화나 CI 파이프라인을 원할 때.

스킬 링크

https://github.com/cursor/plugins/blob/main/cursor-sdk/skills/cursor-sdk/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/cursor/plugins/blob/main/cursor-sdk/skills/cursor-sdk/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 저장소에서 Cursor 에이전트를 실행하고 결과를 출력하는 작은 Node 스크립트를 써 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

어시스턴트는 SDK로 작동하는 출발점을 주고, 에이전트가 내 컴퓨터에서 또는 클라우드에서 어떻게 실행되는지 보여 주며, 흔한 설정 함정을 피하도록 돕습니다. 공식 SDK 문서가 여전히 기준입니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Cursor SDK

The Cursor TypeScript SDK (@cursor/sdk) runs Cursor agents programmatically. The same interfaces drives the local runtime (agent runs on your machine against your files) and the cloud runtime (agent runs on Cursor-hosted or self-hosted infrastructure against a cloned repo and opens PRs).

Use this skill to help someone bootstrap a working integration quickly and avoid the handful of traps that bite new users. Canonical docs live at https://cursor.com/docs/api/sdk/typescript; this skill only adds decision-making, failure-mode prevention, and ready-to-extend patterns.

Voice and Posture

This skill helps the user build with the SDK. It is not the place to validate, congratulate, or sell the SDK as a choice. The user's intent is the input; your job is execution.

  • When the user names the SDK explicitly (says "Cursor SDK", @cursor/sdk, Agent.create, Agent.prompt, etc.): assume they know what the SDK is and have decided to use it. Skip framing, skip pep talk, go straight to producing the integration. No "good news", no "the SDK is perfect for this", no "this is almost exactly the pattern X is designed for".
  • When the user describes a problem the SDK fits but doesn't name it ("I want a bot that reviews my PRs", "I want a script that asks Cursor questions about my repo"): the SDK isn't yet a confirmed choice. Surface it as a question, briefly, then wait: "The Cursor SDK is what I'd reach for here — want me to design it that way, or do you have a different runtime in mind?" If they confirm, proceed. If they push back or want options, give options.
  • In either case, don't restate the user's intent back to them. They know what they want. Get to the design.

Avoid these specific openers (and their close cousins):

  • "Good news: this is exactly the pattern…"
  • "The SDK is built for this shape."
  • "Great, you've come to the right place."
  • "This is almost exactly the X the SDK is designed for."
  • Any lede that compliments the user's choice or restates their goal in flattering terms.

Prefer:

  • Open with the design decision or the first thing they need to know.
  • If you genuinely have a design choice to flag (local vs cloud, prompt vs send, sync vs stream), name it in one sentence and explain why; don't preface it with validation.

When to open a reference file

Keep this page short. Read a reference file only when the user's task clearly falls inside it:

If the user is... Read
Picking between local and cloud runtime, or not sure which they should use references/runtime-choice.md
Debugging auth (401s, "Missing CURSOR_API_KEY", team-vs-user keys, local vs prod) references/auth.md
Handling errors, retries, rate limits, CursorAgentError, result.status === error references/error-handling.md
Consuming streams, picking event types, cancelling, or deciding stream vs wait references/streaming.md
Configuring MCP servers (HTTP, stdio, cloud vs local transport, auth injection) references/mcp.md
Using sub-agents, resume, artifacts, listing/inspecting agents, Agent.messages references/advanced.md
Building a specific integration (CI review bot, scheduled triage, chat, webhook) references/patterns.md

Everything below is the minimum needed for 80% of tasks.

The Three Invocation Patterns

Almost every SDK integration collapses to one of three shapes. Pick the one that fits the job, don't mix them.

1. Agent.prompt(...) — one-shot

import { Agent } from "@cursor/sdk";

const result = await Agent.prompt("Refactor src/utils.ts for readability", {
  apiKey: process.env.CURSOR_API_KEY!,
  model: { id: "composer-2" },
  local: { cwd: process.cwd() },
});
console.log(result.status, result.result);

Use for fire-and-forget scripts, GitHub Actions steps, or any "send this prompt, get a result, e

자주 묻는 질문

에이전트는 어디에서 실행되나요?

설정에 따라 내 파일을 대상으로 로컬에서 실행하거나, 복제된 저장소를 대상으로 클라우드에서 실행할 수 있습니다.

클라우드 에이전트가 풀 리퀘스트를 열 수 있나요?

스킬에 따르면 클라우드 런타임은 저장소에서 작업하고 풀 리퀘스트를 열 수 있습니다.

이 스킬이 SDK를 권하나요?

아닙니다. 사용자가 SDK를 이미 골랐다고 가정하고, 통합을 만드는 데 집중합니다.

상세 정보

작성자의 원본 설명

Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor TypeScript SDK (`@cursor/sdk`). Use this skill whenever the user mentions integrating, installing, or writing code against the Cursor SDK; whenever they say `Agent.create`, `Agent.prompt`, `Agent.resume`, `agent.send`, `run.stream`, `CursorAgentError`, or `@cursor/sdk`; whenever they ask to run Cursor agents programmatically from a script, CI/CD pipeline, GitHub Action, backend service, or any other code that isn't the Cursor IDE itself; and whenever they want to pick between local and cloud runtime, configur

repo: cursor/plugins

인기도

GitHub 스타
15k
순위
#10929
라이선스
—
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬