AI Editor Rules Skill
Provides project rule configuration templates for various AI code editors.
Quick Start
Copy Rule Files to Project
Based on your editor, copy the corresponding file to the project root:
your-project/
├── .cursorrules # Cursor
├── .windsurfrules # Windsurf
├── .claude/CLAUDE.md # Claude Code
└── AGENTS.md # OpenCode
Universal Conversion Using crossrule (Recommended)
# Install crossrule
npm install -g crossrule
# Initialize project
crossrule init
# Convert format
crossrule convert --from cursor --to windsurf
Supported Editors
| Editor | Rule File | Location |
|---|---|---|
| Cursor | .cursorrules | Project root |
| Claude Code | CLAUDE.md | .claude/ dir |
| Windsurf | .windsurfrules | Project root |
| Cline | .clinerules | Project root |
| OpenCode | AGENTS.md | Project root |
Included Templates
1. Full-Stack Web (React + Node.js)
- Tech stack: React 19, TypeScript, Node.js, PostgreSQL, Prisma
- Suitable for: Web application development
2. Mobile (React Native)
- Tech stack: React Native, Expo, TypeScript, Zustand
- Suitable for: iOS/Android applications
3. Vue3 + SpringBoot3 + MySQL8
- Tech stack: Vue 3, TypeScript, Vite, Spring Boot, MySQL
- Suitable for: Java full-stack development
4. Python Backend (FastAPI)
- Tech stack: Python 3.12, FastAPI, SQLAlchemy, PostgreSQL
- Suitable for: API development
Customizing Templates
After copying a template, modify it according to your project:
- Tech Stack - Update framework and library versions
- Code Style - Adjust naming conventions
- Project Structure - Adapt to your directory layout
- Constraint Rules - Add domain-specific rules
Rule Type Descriptions
Always
Applied to all code:
alwaysApply: true
Pattern
Specific file types:
globs:
- "*.tsx"
- "*.jsx"
Manual
Requires explicit invocation:
trigger: manual
Validating Rules
Use the commands from your editor to validate:
# Cursor
cursor --rule-check
# Claude Code
claude --verify-rules
Changelog
- v1.0.0: Initial release, includes 4 tech stack templates