cursor-agent
低风险
作者:swiftlysingh | 审计时间:2026-02-26T09:59:20.936Z | 规则集:0.2.0
技能介绍
用于各种软件工程任务的 Cursor CLI agent 综合技能(针对 2026 年功能进行了更新,包含 tmux 自动化指南)。
✨ 添加到
~/.zshrc (zsh) 或 ~/.bashrc (bash) 中的 PATH: ✨ 重启终端或运行
source ~/.zshrc(或 ~/.bashrc) ✨ 需要 macOS 10.15 或更高版本
✨ 适用于 Intel 和 Apple Silicon Mac
✨ 重启终端或 source 你的 shell 配置
✨ 命令:
agent(主要)和 cursor-agent(向后兼容) ✨ 列出会话:
agent ls ✨ 恢复最近的会话:
agent resume 使用场景
1 使用
agent --version 进行验证 2 验证安装:
agent --version 或 cursor-agent --version 3 恢复特定会话:
agent --resume="[chat-id]" 4 **
/rules** - 直接从 CLI 创建和编辑规则 5 **
/commands** - 创建和修改自定义命令 6 **
Shift+Enter** - 为多行提示词添加换行符 文档(原文)
来源:README.md 以下为作者原文(通常为英文)。安装请以页面顶部“快速安装”为准。
Cursor CLI Agent Skill
This repository contains the definition and documentation for the cursor-agent skill, updated for 2026 features.
Overview
The cursor-agent skill encapsulates workflows and commands for the Cursor CLI, enabling efficient AI-pair programming directly from the terminal. This skill includes all modern features from the January 2026 update.
What's New in v2.0.0
- Model Switching: Switch between AI models with
agent models,--modelflag, and/modelscommand - MCP Management: Enable/disable MCP servers on the fly with
/mcp enableand/mcp disable - Rules & Commands: Create and edit rules directly from CLI with
/rulesand/commands - Modern Command Interface: Use
agentas the primary command (backward compatible withcursor-agent) - Enhanced Headless Mode: New flags including
--force,--output-format json, and--stream-partial-output - Interactive Features: Context selection with
@, slash commands, and keyboard shortcuts - Cross-Platform Support: Complete instructions for macOS (including Homebrew), Linux/Ubuntu, and Windows WSL
Contents
- SKILL.md: The core skill definition file containing all commands, workflows, and usage instructions
- README.md: This file, providing an overview and quick reference
Quick Start
Install the Cursor CLI:
# Standard installation (macOS, Linux, WSL)
curl https://cursor.com/install -fsS | bash
# Homebrew (macOS only)
brew install --cask cursor-cli
Authenticate:
agent login
Start an interactive session:
agent
Switch models:
agent models
Usage
Refer to SKILL.md for comprehensive instructions on:
- Installation and authentication
- Interactive and non-interactive modes
- Model switching and configuration
- MCP server management
- Rules and commands creation
- Slash commands and keyboard shortcuts
- Workflows for code review, refactoring, debugging, and CI/CD integration
安全审计
低风险
摘要
用于各种软件工程任务的 Cursor CLI agent 综合技能(针对 2026 年功能进行了更新,包含 tmux 自动化指南)。
风险画像
ToxicSkills 分析
黑名单
未命中
提示词注入
未检测到
当前静态检测未发现 Toxic 信号。
关键风险 0 项
暂无 LLM 风险要点(LLM 未启用或无缓存)。
确定性发现(证据)
| 规则 | 严重性 | 文件 | 片段 |
|---|---|---|---|
| QUALITY_README_PRESENT | 低 | README 行 无 | README detected |
评分标准
每个技能从 5 个维度评分,加权总分决定星级。
代码毒性 100/100 (权重 30%)
隐私风险 100/100 (权重 25%)
权限范围 100/100 (权重 20%)
作者声誉 75/100 (权重 15%)
代码质量 78/100 (权重 10%)
星级说明
5★ 安全 — 总分 ≥ 80
4★ 良好 — 总分 70–79
3★ 注意 — 总分 60–69
2★ 有风险 — 总分 40–59
1★ 危险 — 总分 < 40
为何是这个评分?
所有维度均高于 60 分,该技能通过安全基线。