ai-editor-rules

AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。

16 stars

Best use case

ai-editor-rules is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。

Teams using ai-editor-rules should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/ai-editor-rules/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/backend/ai-editor-rules/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/ai-editor-rules/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How ai-editor-rules Compares

Feature / Agentai-editor-rulesStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# AI Editor Rules 技能

为各种 AI 代码编辑器提供项目规则配置模板。

## 快速开始

### 复制规则文件到项目

根据你使用的编辑器,复制对应文件到项目根目录:

```
your-project/
├── .cursorrules           # Cursor
├── .windsurfrules         # Windsurf
├── .claude/CLAUDE.md      # Claude Code
└── AGENTS.md
```

###              # 通用 使用 crossrule 转换(推荐)

```bash
# 安装 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 开发

## 自定义模板

复制模板后,根据你的项目修改:

1. **技术栈** - 更新框架和库版本
2. **代码风格** - 调整命名规范
3. **项目结构** - 适配你的目录
4. **约束规则** - 添加特定领域规则

## 规则类型说明

### Always (始终生效)
应用于所有代码:
```yaml
alwaysApply: true
```

### Pattern (模式匹配)
特定文件类型:
```yaml
globs:
  - "*.tsx"
  - "*.jsx"
```

### Manual (手动触发)
需要明确调用:
```yaml
trigger: manual
```

## 验证规则

使用对应编辑器的命令验证:

```bash
# Cursor
cursor --rule-check

# Claude Code
claude --verify-rules
```

## 更新日志

- v1.0.0: 初始版本,包含 4 种技术栈模板

Related Skills

zed-editor

16
from diegosouzapw/awesome-omni-skill

Configure, customize, and manage the Zed code editor. Use when the user wants to modify Zed keybindings, settings, tasks, or extensions — especially for chaining editor actions via workspace::SendKeystrokes, creating custom workflows, or opening projects in Zed. Also use when launching Zed from the CLI, setting up vim/helix mode bindings, or troubleshooting Zed configuration.

vvvv-editor-extensions

16
from diegosouzapw/awesome-omni-skill

Helps create vvvv gamma editor extensions — .HDE.vl file naming, Command node registration with keyboard shortcuts, SkiaWindow/SkiaWindowTopMost window types, docking with WindowFactory, and API access to hovered/selected nodes via VL.Lang Session nodes. Use when building editor plugins, custom tooling windows, or automating editor workflows.

sync-rules

16
from diegosouzapw/awesome-omni-skill

Synchronize shared rules into agent context files and headers.

publishing-rules

16
from diegosouzapw/awesome-omni-skill

Rules for publishing Chrome extensions to the Chrome Web Store, ensuring proper submission guidelines are followed.

portable-skills-and-rules

16
from diegosouzapw/awesome-omni-skill

Defines SKILL.md structure, valid frontmatter fields, and cross-tool setup for Claude Code, Cursor, OpenCode, and Cline. ALWAYS read before creating or editing any SKILL.md file. This skill should be used when "writing a skill", "creating a skill", "editing a skill", "skill frontmatter", "SKILL.md format", "AGENTS.md", "CLAUDE.md", or setting up skills across multiple AI tools.

install-rules

16
from diegosouzapw/awesome-omni-skill

Install rules from this project or a specified Git repo into Cursor or Trae IDE. Use when the user wants to add project/global rules to their editor from ai-cortex rules/ or another repository.

daggerheart-core-rules

16
from diegosouzapw/awesome-omni-skill

Comprehensive guide to the Daggerheart Tabletop Roleplaying Game (TTRPG). Use this skill when users ask questions about Daggerheart rules, character creation, classes, gameplay mechanics, GM guidance, adversaries, or lore.

claude-md-editor

16
from diegosouzapw/awesome-omni-skill

Edit and maintain CLAUDE.md and project documentation files. Use when modifying documentation, asking about best practices, or performing documentation maintenance tasks.

ckeditor-rules

16
from diegosouzapw/awesome-omni-skill

Defines CKEditor is being used for text editing

build-notes-file-rules

16
from diegosouzapw/awesome-omni-skill

Enforces rules for creating and managing build notes files within the /ProjectDocs/Build_Notes/ directory, including naming conventions, content structure, and update frequency.

ai-rules-adapter-builder

16
from diegosouzapw/awesome-omni-skill

Add rules or skills adapters for a new AI tool and wire config, CLI, completion, and tests.

tauri-security-rules

16
from diegosouzapw/awesome-omni-skill

Security-related rules for Tauri application development.