New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

claude-cursor-agent-skill

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claude-cursor-agent-skill

A Claude Code skill that invokes Cursor's coding agent for code review and TDD-based implementation

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Claude Cursor Agent Skill

A Claude Code skill that lets you invoke Cursor's coding agent via natural language for code review and TDD-based implementation.

Features

  • Review — Code and document review with detailed feedback
  • Plan-based Review — Review codebase implementation against a design doc
  • Implement (TDD) — Test-driven development: write tests first, then implementation
  • Smart output — Clean results by default, shows execution details when relevant

Installation

1. Install CLI

npm install -g claude-cursor-agent-skill

2. Register Skill (for Claude Code)

npx skills add ivanon/claude-cursor-skill -y -g

3. Configure Cursor API Key

Get a key from the Cursor integrations dashboard.

Option A: Environment variable

export CURSOR_API_KEY="crsr_..."

Option B: Config file

mkdir -p ~/.cursor-skill
echo '{"cursorApiKey":"crsr_..."}' > ~/.cursor-skill/settings.json

4. Model Selection (optional)

Default is composer-2. Override via:

export CURSOR_MODEL="composer-3"

Or add defaultModel to ~/.cursor-skill/settings.json.

CLI Usage

# Review a file
cursor-agent review src/auth.ts
cursor-agent review docs/api.md --output review.md

# Plan-based review
cursor-agent review --plan docs/design.md

# Implement a feature (TDD)
cursor-agent implement "add JWT auth" --output src/auth.ts

# Verbose output
cursor-agent review src/auth.ts --verbose

Usage in Claude Code

Once the skill is registered, explicitly mention "cursor" to trigger it:

使用cursor帮我review一下这个文档
让cursor评审一下 src/auth.ts
让cursor实现一个JWT中间件,输出到 src/middleware/jwt.ts
用cursor检查一下这段代码

If you don't mention "cursor", Claude will handle the request itself without invoking this skill.

Development

npm install
npm run dev       # Run with tsx
npm run build     # Compile TypeScript
echo "npm test"

Project Structure

src/
├── index.ts      # Entry: intent parsing and orchestration
├── cursor.ts     # Cursor SDK wrapper (streaming, timeout, retry)
├── config.ts     # API key and model resolution
├── prompts.ts    # Prompt templates for review and implement
└── output.ts     # Result formatting and file I/O

bin/
└── cursor-agent.js  # CLI entry point

SKILL.md          # Claude Code skill definition

License

MIT

Keywords

claude

FAQs

Package last updated on 13 May 2026

Related posts