File contents
name: ai-editor-rules
description: AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。
AI Editor Rules 技能
为各种 AI 代码编辑器提供项目规则配置模板。
快速开始
复制规则文件到项目
根据你使用的编辑器,复制对应文件到项目根目录:
your-project/
├── .cursorrules # Cursor
├── .windsurfrules # Windsurf
├── .claude/CLAUDE.md # Claude Code
└── AGENTS.md
# 通用 使用 crossrule 转换(推荐)
# 安装 crossrule
npm install -g crossrule
# 初始化项目
crossrule init
# 转换格式
crossrule convert --from cursor --to windsurf
支持的编辑器
编辑器
规则文件
位置
Cursor
.cursorrules
项目根目录
Claude Code
CLAUDE.md
.claude/ 目录
Windsurf
.windsurfrules
项目根目录
Cline
.clinerules
项目根目录
OpenCode
AGENTS.md
项目根目录
包含的模板
1. 全栈 Web (React + Node.js)
技术栈:React 19, TypeScript, Node.js, PostgreSQL, Prisma
适合:Web 应用开发
2. 移动端 (React Native)
技术栈:React Native, Expo, TypeScript, Zustand
适合:iOS/Android 应用
3. Vue3 + SpringBoot3 + MySQL8
技术栈:Vue 3, TypeScript, Vite, Spring Boot, MySQL
适合:Java 全栈开发
4. Python 后端 (FastAPI)
技术栈:Python 3.12, FastAPI, SQLAlchemy, PostgreSQL
适合:API 开发
自定义模板
复制模板后,根据你的项目修改:
技术栈 - 更新框架和库版本
代码风格 - 调整命名规范
项目结构 - 适配你的目录
约束规则 - 添加特定领域规则
规则类型说明
Always (始终生效)
应用于所有代码:
alwaysApply: true
Pattern (模式匹配)
特定文件类型:
globs:
- "*.tsx"
- "*.jsx"
Manual (手动触发)
需要明确调用:
trigger: manual
验证规则
使用对应编辑器的命令验证:
# Cursor
cursor --rule-check
# Claude Code
claude --verify-rules
更新日志
Source: modbender/skill-library-mcp — distributed by TomeVault .
1 --- 2 name: modbender-skill-library-mcp-ai-editor-rules 3 description: --- 4 --- 5 --- 6 name: ai-editor-rules 7 description: AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。 8 --- 9 10 # AI Editor Rules 技能 11 12 为各种 AI 代码编辑器提供项目规则配置模板。 13 14 ## 快速开始 15 16 ### 复制规则文件到项目 17 18 根据你使用的编辑器,复制对应文件到项目根目录: 19 20 ``` 21 your-project/ 22 ├── .cursorrules # Cursor 23 ├── .windsurfrules # Windsurf 24 ├── .claude/CLAUDE.md # Claude Code 25 └── AGENTS.md 26 ``` 27 28 ### # 通用 使用 crossrule 转换(推荐) 29 30 ```bash 31 # 安装 crossrule 32 npm install -g crossrule 33 34 # 初始化项目 35 crossrule init 36 37 # 转换格式 38 crossrule convert --from cursor --to windsurf 39 ``` 40 41 ## 支持的编辑器 42 43 | 编辑器 | 规则文件 | 位置 | 44 |--------|----------|------| 45 | Cursor | `.cursorrules` | 项目根目录 | 46 | Claude Code | `CLAUDE.md` | `.claude/` 目录 | 47 | Windsurf | `.windsurfrules` | 项目根目录 | 48 | Cline | `.clinerules` | 项目根目录 | 49 | OpenCode | `AGENTS.md` | 项目根目录 | 50 51 ## 包含的模板 52 53 ### 1. 全栈 Web (React + Node.js) 54 - 技术栈:React 19, TypeScript, Node.js, PostgreSQL, Prisma 55 - 适合:Web 应用开发 56 57 ### 2. 移动端 (React Native) 58 - 技术栈:React Native, Expo, TypeScript, Zustand 59 - 适合:iOS/Android 应用 60 61 ### 3. Vue3 + SpringBoot3 + MySQL8 62 - 技术栈:Vue 3, TypeScript, Vite, Spring Boot, MySQL 63 - 适合:Java 全栈开发 64 65 ### 4. Python 后端 (FastAPI) 66 - 技术栈:Python 3.12, FastAPI, SQLAlchemy, PostgreSQL 67 - 适合:API 开发 68 69 ## 自定义模板 70 71 复制模板后,根据你的项目修改: 72 73 1. **技术栈** - 更新框架和库版本 74 2. **代码风格** - 调整命名规范 75 3. **项目结构** - 适配你的目录 76 4. **约束规则** - 添加特定领域规则 77 78 ## 规则类型说明 79 80 ### Always (始终生效) 81 应用于所有代码: 82 ```yaml 83 alwaysApply: true 84 ``` 85 86 ### Pattern (模式匹配) 87 特定文件类型: 88 ```yaml 89 globs: 90 - "*.tsx" 91 - "*.jsx" 92 ``` 93 94 ### Manual (手动触发) 95 需要明确调用: 96 ```yaml 97 trigger: manual 98 ``` 99 100 ## 验证规则 101 102 使用对应编辑器的命令验证: 103 104 ```bash 105 # Cursor 106 cursor --rule-check 107 108 # Claude Code 109 claude --verify-rules 110 ``` 111 112 ## 更新日志 113 114 - v1.0.0: 初始版本,包含 4 种技术栈模板 115 116 --- 117 > Source: [modbender/skill-library-mcp](https://github.com/modbender/skill-library-mcp) — distributed by [TomeVault](https://tomevault.io). 118 <!-- tomevault:4.0:skill_md:2026-06-15 -->
tomevault-io/skills-registry/tree/main/modbender--skill-library-mcp--ai-editor-rules commit 422f14312b
Frequently asked questions How do I install the Modbender Skill Library MCP AI Editor Rules skill? Run npx skillmds@latest add tomevault-io/modbender-skill-library-mcp-ai-editor-rules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Modbender Skill Library MCP AI Editor Rules skill do? --- It is listed under AI & ML on SkillMD.
Is Modbender Skill Library MCP AI Editor Rules safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Modbender Skill Library MCP AI Editor Rules? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Modbender Skill Library MCP AI Editor Rules free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Modbender Skill Library MCP AI Editor Rules? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.