sdk
Guide users building apps, scripts, CI pipelines, or automations on top of the Codex SDK - TypeScript (`@cursor/sdk`) or Python (`cursor-sdk` / `cursor_sdk`). Use when the user mentions integrating, installing, or writing code against the Codex SDK; says `Agent.create`, `Agent.prompt`, `Agent.resume`, `agent.send`, `run.stream`, `run.messages`, `CursorAgentError`, `@cursor/sdk`, `cursor-sdk`, or `cursor_sdk`; asks to run Codex agents programmatically from a script, CI/CD pipeline, GitHub Action,
Documentation & Preview
Description:
Guide users building apps, scripts, CI pipelines, or automations on top of the Codex SDK - TypeScript (@cursor/sdk) or Python (cursor-sdk / cursor_sdk).
This skill is ready for commercial/non-commercial use.
Publisher:
License/Terms of Use:
MIT-0
Use Case:
Developers and engineers use this skill to build Codex SDK integrations in TypeScript or Python for scripts, CI pipelines, backend services, bots, and other automations. It helps choose the language and runtime, use one-shot or durable agent patterns, configure MCP servers, and handle streaming, cancellation, cleanup, and errors.
Deployment Geography for Use:
Global
Known Risks and Mitigations:
Risk: Generated integrations can launch Codex SDK agents with API keys, local repositories, cloud runtimes, and optional MCP servers.
Mitigation: Review generated code for credential scoping, explicit runtime selection, and appropriate MCP server configuration before use.
Risk: Incorrect lifecycle handling can leave SDK agents, runs, or clients open in unattended services.
Mitigation: Use context managers, await using, or explicit cleanup paths and confirm each run reaches a terminal result.
Reference(s):
- Codex SDK TypeScript docs
- Codex SDK Python docs
- Codex MCP docs
- Cloud Agents REST API
- Codex hooks docs
- Self-hosted pool docs
Skill Output:
Output Type(s): [Guidance, Markdown, Code, Shell commands, Configuration instructions]
Output Format: [Markdown with inline TypeScript, Python, and shell code blocks]
Output Parameters: [1D]
Other Properties Related to Output: [May include integration patterns, runtime guidance, MCP configuration advice, and error-handling recommendations.]
Skill Version(s):
1.0.0 (source: ClawHub release metadata)
Ethical Considerations:
Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.