Jacky's blog
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)

Jack Yang

编程; 随笔
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)
  • shell

  • tool

  • 网络

  • compute_base

  • blog

  • growth

  • java

  • C&C++

  • ai

    • base

    • tools

      • cursor
        • cursor-agent
        • 配置结构
          • Rules(规则)
          • Agents(子代理)
          • Skills(技能)
          • 三者关系
          • MCP
        • link
      • claude
      • openclaw
    • other

  • secure

  • cms

  • english

  • 生活

  • 金融学

  • more

  • other
  • ai
  • tools
Jacky
2025-09-28
目录

cursor

# cursor-agent

略

# 配置结构

Cursor 的配置文件分为项目级和用户级两层,项目级优先级更高。

# Rules(规则)

持久化的指令,告诉 AI「怎么做」,类似 .editorconfig 对编辑器的作用。参考:Rules 文档 (opens new window)

路径 作用域
.cursor/rules/*.mdc 当前项目
~/.cursor/rules/*.mdc 所有项目

.mdc 文件结构:

---
description: 规则描述
globs: ["**/*.md"]     # 匹配的文件范围,空数组表示全局
alwaysApply: true      # 是否始终应用
---

规则正文(Markdown 格式)
1
2
3
4
5
6
7

# Agents(子代理)

拥有独立系统提示词的专项 AI 助手,在隔离上下文中执行特定任务。参考:Agents 文档 (opens new window)

路径 作用域
.cursor/agents/*.md 当前项目
~/.cursor/agents/*.md 所有项目

.md 文件结构:

---
name: agent-name           # 唯一标识(小写字母 + 连字符)
description: 何时使用此代理  # AI 据此判断是否自动委派
---

系统提示词正文(Markdown 格式)
1
2
3
4
5
6

# Skills(技能)

可复用的指令包,包含工作流、模板、脚本等,比 Agent 更侧重"做事方法"。

路径 作用域
.cursor/skills/<skill-name>/SKILL.md 当前项目
~/.cursor/skills/<skill-name>/SKILL.md 所有项目

# 三者关系

Rules  -> 全局行为约束("代码用中文注释"、"提交前先审查")
Agents -> 专项 AI 角色("code-reviewer"、"debugger")
Skills -> 可复用工作流("PDF 处理流程"、"表单填写步骤")
1
2
3

# MCP

MCP服务市场 (opens new window)

# link

  • office (opens new window)
  • other
    • Cursor Agent使用心得分享 (opens new window)
    • 【Cursor】Cursor使用技巧整理 (opens new window)
    • 【Cursor】Cursor中MCP的接入和使用 (opens new window)
上次更新: 2026/03/19, 21:56:31
LLM 学习入门完整指南
claude

← LLM 学习入门完整指南 claude→

最近更新
01
AI TOP10基础问题
03-19
02
claude
03-18
03
android沉浸式设置
03-17
更多文章>
Theme by Vdoing | Copyright © 2019-2026 Jacky | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式