cursor
CLIを通じてCursor AIコードエディタを操作し、ファイルやフォルダを開いたり、差分を確認したり、拡張機能を管理したりするなど、コーディング作業を効率化するSkill。
📜 元の英語説明(参考)
Control Cursor AI code editor via CLI. Open files, folders, diffs, and manage extensions.
🇯🇵 日本人クリエイター向け解説
CLIを通じてCursor AIコードエディタを操作し、ファイルやフォルダを開いたり、差分を確認したり、拡張機能を管理したりするなど、コーディング作業を効率化するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o cursor.zip https://jpskill.com/download/18645.zip && unzip -o cursor.zip && rm cursor.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18645.zip -OutFile "$d\cursor.zip"; Expand-Archive "$d\cursor.zip" -DestinationPath $d -Force; ri "$d\cursor.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
cursor.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
cursorフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Cursor Skill
cursor CLI を使用して、Cursor AI 搭載のコードエディタ (VS Code のフォーク) を制御します。
CLI の場所
/usr/local/bin/cursor
ファイルとフォルダを開く
現在のディレクトリを開く:
cursor .
特定のファイルを開く:
cursor /path/to/file.ts
特定の行でファイルを開く:
cursor /path/to/file.ts:42
行と列を指定してファイルを開く:
cursor /path/to/file.ts:42:10
フォルダを開く:
cursor /path/to/project
複数のファイルを開く:
cursor file1.ts file2.ts file3.ts
ウィンドウオプション
新しいウィンドウで開く:
cursor -n /path/to/project
新しいウィンドウで開く (エイリアス):
cursor --new-window /path/to/project
既存のウィンドウを再利用する:
cursor -r /path/to/file
既存のウィンドウを再利用する (エイリアス):
cursor --reuse-window /path/to/file
Diff モード
2つのファイルを比較する:
cursor -d file1.ts file2.ts
Diff (エイリアス):
cursor --diff file1.ts file2.ts
Wait モード
ファイルが閉じるのを待つ (スクリプトで便利):
cursor --wait /path/to/file
短い形式:
cursor -w /path/to/file
git エディタとして使用する:
git config --global core.editor "cursor --wait"
ワークスペースに追加
現在のワークスペースにフォルダを追加する:
cursor --add /path/to/folder
拡張機能
インストールされている拡張機能を一覧表示する:
cursor --list-extensions
拡張機能をインストールする:
cursor --install-extension <extension-id>
拡張機能をアンインストールする:
cursor --uninstall-extension <extension-id>
すべての拡張機能を無効にする:
cursor --disable-extensions
詳細とデバッグ
バージョンを表示する:
cursor --version
ヘルプを表示する:
cursor --help
詳細な出力:
cursor --verbose /path/to/file
開発者ツールを開く:
cursor --inspect-extensions
設定
ユーザー設定の場所:
~/Library/Application Support/Cursor/User/settings.json
キーバインドの場所:
~/Library/Application Support/Cursor/User/keybindings.json
ポータブルモード / プロファイル
ユーザーデータディレクトリを指定する:
cursor --user-data-dir /path/to/data
拡張機能ディレクトリを指定する:
cursor --extensions-dir /path/to/extensions
パイプ入力
stdin から読み込む:
echo "console.log('hello')" | cursor -
リモート開発
Cursor は VS Code と同様のリモート開発をサポートしています。 SSH リモートは以下で設定します。
~/.ssh/config
次に、GUI でコマンドパレットまたはリモートエクスプローラーを使用します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Cursor Skill
Use the cursor CLI to control the Cursor AI-powered code editor (VS Code fork).
CLI Location
/usr/local/bin/cursor
Opening Files and Folders
Open current directory:
cursor .
Open specific file:
cursor /path/to/file.ts
Open file at specific line:
cursor /path/to/file.ts:42
Open file at line and column:
cursor /path/to/file.ts:42:10
Open folder:
cursor /path/to/project
Open multiple files:
cursor file1.ts file2.ts file3.ts
Window Options
Open in new window:
cursor -n /path/to/project
Open in new window (alias):
cursor --new-window /path/to/project
Reuse existing window:
cursor -r /path/to/file
Reuse existing window (alias):
cursor --reuse-window /path/to/file
Diff Mode
Compare two files:
cursor -d file1.ts file2.ts
Diff (alias):
cursor --diff file1.ts file2.ts
Wait Mode
Wait for file to close (useful in scripts):
cursor --wait /path/to/file
Short form:
cursor -w /path/to/file
Use as git editor:
git config --global core.editor "cursor --wait"
Adding to Workspace
Add folder to current workspace:
cursor --add /path/to/folder
Extensions
List installed extensions:
cursor --list-extensions
Install extension:
cursor --install-extension <extension-id>
Uninstall extension:
cursor --uninstall-extension <extension-id>
Disable all extensions:
cursor --disable-extensions
Verbose and Debugging
Show version:
cursor --version
Show help:
cursor --help
Verbose output:
cursor --verbose /path/to/file
Open developer tools:
cursor --inspect-extensions
Settings
User settings location:
~/Library/Application Support/Cursor/User/settings.json
Keybindings location:
~/Library/Application Support/Cursor/User/keybindings.json
Portable Mode / Profiles
Specify user data directory:
cursor --user-data-dir /path/to/data
Specify extensions directory:
cursor --extensions-dir /path/to/extensions
Piping Input
Read from stdin:
echo "console.log('hello')" | cursor -
Remote Development
Cursor supports remote development similar to VS Code. SSH remotes are configured in:
~/.ssh/config
Then use command palette or remote explorer in the GUI.