AlphaMoatによると、2026-10時点でCursor CLI Agentのダウンロード数は17,990、スター数は18で、累計ダウンロード数で今回のランキング対象AIスキル10,914件中1,569位、開発では1,069件中109位です。
一覧の初期表示は累計ダウンロード数順で、スター数順にも並べ替えできます。詳細ページの順位は累計ダウンロード数で計算しています。
| プラットフォーム | ダウンロード数 | スター数 | コメント |
|---|---|---|---|
| ClawHub ↗ | 1.3万 | 17 | - |
| SkillHub ↗ | 1.8万 | 18 | — |
プラットフォームごとに集計方法と集計時点が異なります。
ブラウザ・API キー認証、ファイル文脈、モデル選択、MCP 設定、非対話の構造化出力を扱います。文書は実端末を必要とし、自動化には tmux を案内します。強制オプションは確認なしで変更を適用するため、既定とせず明示的に選びます。
資料公開日 2026-10-27
スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。
2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。
| 月 | ダウンロード数 | 前月比 | スター数 |
|---|---|---|---|
| 2026-10 | 1.8万 | — | 18 |
| 2026-09 | 1.3万 | — | 17 |
| 2026-08 | 1.3万 | +2.4% | 18 |
| 2026-07 | 1.2万 | +4.1% | 18 |
| 2026-06 | 1.2万 | +2.4% | 18 |
| 2026-05 | 1.2万 | — | 18 |
作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。
--- name: cursor-agent version: 2.1.0 description: A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide). author: Pushpinder Pal Singh --- # Cursor CLI Agent Skill This skill provides a comprehensive guide and set of workflows for utilizing the Cursor CLI tool, including all features from the January 2026 update.
## Installation ### Standard Installation (macOS, Linux, Windows WSL) ```bash curl https://cursor.com/install -fsS | bash ``` ### Homebrew (macOS only) ```bash brew install --cask cursor-cli ``` ### Post-Installation Setup **macOS:** - Add to PATH in `~/.zshrc` (zsh) or `~/.bashrc` (bash): ```bash export PATH="$HOME/.local/bin:$PATH" ``` - Restart terminal or run `source ~/.zshrc` (or `~/.bashrc`) - Requires macOS 10.15 or later - Works on both Intel and Apple Silicon Macs **Linux/Ubuntu:** - Restart your terminal or source your shell config - Verify with `agent --version` **Both platforms:** - Commands: `agent` (primary) and `cursor-agent` (backward compatible) - Verify installation: `agent --version` or `cursor-agent --version` ## Authentication Authenticate via browser: ```bash agent login ``` Or use API key: ```bash export CURSOR_API_KEY=your_api_key_here ``` ## Update Keep your CLI up to date: ```bash agent update # or agent upgrade ``` ## Commands ### Interactive Mode Start an interactive session with the agent: ```bash agent ``` Start with an initial prompt: ```bash agent "Add error handling to this API" ``` **Backward compatibility:** `cursor-agent` still works but `agent` is now the primary command. ### Model Switching List all available models: ```bash agent models # or agent --list-models ``` Use a specific model: ```bash agent --model gpt-5 ``` Switch models during a session: ``` /models ``` ### Session Management Manage your agent sessions: - **List sessions:** `agent ls` - **Resume most recent:** `agent resume` - **Resume specific session:** `agent --resume="[chat-id]"` ### Context Selection Include specific files or folders in the conversation: ``` @filename.ts @src/components/ ``` ### Slash Commands Available during interactive sessions: - **`/models`** - Switch between AI models interactively - **`/compress`** - Summarize conversation and free up context window - **`/rules`** - Create and edit rules directly from CLI - **`/commands`** - Create and modify custom commands - **`/mcp enable [server-name]`** - Enable an MCP server - **`/mcp disable [server-name]`** - Disable an MCP server ### Keyboard Shortcuts - **`Shift+Enter`** - Add newlines for multi-line prompts - **`Ctrl+D`** - Exit CLI (requires double-press for safety) - **`Ctrl+R`** - Review changes (press `i` for instructions, navigate with arrow keys) - **`ArrowUp`** - Cycle through previous messages ### Non-interactive / CI Mode Run the agent in a non-interactive mode, suitable for CI/CD pipelines: ```bash agent -p 'Run tests and report coverage' # or agent --print 'Refactor this file to use async/await' ``` **Output formats:** ```bash # Plain text (default) agent -p 'Analyze code' --output-format text # Structured JSON agent -p 'Find bugs' --output-format json # Real-time streaming JSON agent -p 'Run tests' --output-format stream-json --stream-partial-output ``` **Force mode (auto-apply changes without confirmation):** ```bash agent -p 'Fix all linting errors' --force ``` **Media support:** ```bash agent -p 'Analyze this screenshot: screenshot.png' ``` ### ⚠️ Using with AI Agents / Automation (tmux required) **CRITICAL:** When running Cursor CLI from automated environments (AI agents, scripts, subprocess calls), the CLI requires a real TTY. Direct execution will hang indefinitely. **The Solution: Use tmux** ```bash # 1. Install tmux if not available sudo apt install tmux # Ubuntu/Debian brew install tmux # macOS # 2. Create a tmux session tmux kill-session -t cursor 2>/dev/null || true tmux new-session -d -s cursor # 3. Navigate to project tmux send-keys -t cursor "cd /path/to/project" Enter sleep 1 # 4. Run Cursor agent tmux send-keys -t cursor "agent 'Your task here'" Enter # 5. Handle workspace trust prompt (first run) sleep 3 tmux send-keys -t cursor "a" # Trust workspace # 6. Wait for completion sleep 60 # Adjust based on task complexity # 7. Capture output tmux capture-pane -t cursor -p -S -100 # 8. Verify results ls -la /path/to/project/ ``` **Why this works:** - tmux provides a persistent pseudo-terminal (PTY) - Cursor's TUI requires interactive terminal capabilities - Direct `agent` calls from subprocess/exec hang without TTY **What does NOT work:** ```bash # ❌ These will hang indefinitely: agent "task" # No TTY agent -p "task" # No TTY subprocess.run(["agent", ...]) # No TTY script -c "agent ..." /dev/null # May crash Cursor ``` ## Rules & Configuration The agent automatically loads rules from: - `.cursor/rules` - `AGENTS.md` - `CLAUDE.md` Use `/rules` command to create and edit rules directly from the CLI. ## MCP Integration MCP servers are automatically loaded from `mcp.json` configuration. Enable/disable servers on the fly: ``` /mcp enable server-name /mcp disable server-name ``` **Note:** Server names with spaces are fully supported. ## Workflows ### Code Review Perform a code review on the current changes or a specific branch: ```bash agent -p 'Review the changes in the current branch against main. Focus on security and performance.' ``` ### Refactoring Refactor code for better readability or performance: ```bash agent -p 'Refactor src/utils.ts to reduce complexity and improve type safety.' ``` ### Debugging Analyze logs or error messages to find the root cause: ```bash agent -p 'Analyze the following error log and suggest a fix: [paste log here]' ``` ### Git Integration Automate git operations with context awareness: ```bash agent -p 'Generate a commit message for the staged changes adhering to conventional commits.' ``` ### Batch Processing (CI/CD) Run automated checks in CI pipelines: ```bash # Set API key in CI environment export CURSOR_API_KEY=$CURSOR_API_KEY # Run security audit with JSON output agent -p 'Audit this codebase for security vulnerabilities' --output-format json --force # Generate test coverage report agent -p 'Run tests and generate coverage report' --output-format text ``` ### Multi-file Analysis Use context selection to analyze multiple files: ```bash agent # Then in interactive mode: @src/api/ @src/models/ Review the API implementation for consistency with our data models ```
【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
工程专题、鸿蒙与微信小程序开发的集成派生版
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
适用场景:全栈编程助手。接到需求先读现有代码和约束,再动手:Java/PHP 开发、接口设计、缺陷定位、代码评审、重构、测试用例、性能排查、技术选型与文档产出,也做 CMS 二次开发、前端页面和 MySQL 调优。每次改动先给方案和影响范围,改完必须跑验证,交付附交接说明。适合要把代码真正跑通、而不是只要片段的场景。写完代码常要配套的造价、法律、工程文档,站内已有现成技能,用「查找技能」按需求找即可。
gh コマンドラインで GitHub の PR チェック、ワークフロー実行、API 照会を扱うスキルです。
データ月:2026-10 · ダウンロード数とスター数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。