cursor-rules
Simple rules that makes the difference
Install / Use
npx skills add matipojo/cursor-rulesInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Skill content
View source on GitHubcursor-rules
Simple rules that makes the difference
How to Use Cursor Rules
This repository contains cursor rules - special instructions that guide AI assistants (like Claude in Cursor) on how to behave when working with your codebase. The rules are stored in .cursor/rules/ directory as .mdc (Markdown Cursor) files.
Available Rules
existing-code.mdc- Prevents AI from modifying existing code unless explicitly requestedplan.mdc- Guides AI to create detailed planning documents before codingparse-and-run-tasks.mdc- Provides a framework for breaking down PRDs into actionable tasks
How to Use These Rules
Method 1: Copy Rules to Your Project
- Copy the
.cursor/directory to your project root - The AI will automatically follow these rules when working on your project
# Clone this repository
git clone https://github.com/matipojo/cursor-rules.git
# Copy the cursor rules to your project
cp -r cursor-rules/.cursor/ /path/to/your/project/
Method 2: Individual Rule Usage
You can also copy specific rules you need:
# Create the cursor rules directory in your project
mkdir -p .cursor/rules
# Copy specific rules you want to use
cp cursor-rules/.cursor/rules/existing-code.mdc .cursor/rules/
cp cursor-rules/.cursor/rules/plan.mdc .cursor/rules/
cp cursor-rules/.cursor/rules/parse-and-run-tasks.mdc .cursor/rules/
Method 3: Reference Rules Manually
You can manually reference these rules in your conversations with AI by mentioning them or copying their content.
What Each Rule Does
🔒 Existing Code Rule: Protects your existing codebase by instructing the AI to only modify code when you explicitly ask for changes. It's an "Always On" rule, so it's always active.
📋 Plan Rule: Ensures the AI creates comprehensive planning documents before implementation, including:
- Detailed PRD files in a
docsfolder - Code stack analysis
- Reusable component identification
- Mermaid diagrams when needed
It's a "Manual" rule, mentions it in your prompt to trigger it.
Example:
@plan.mdc how to use auth.js to authenticate users
It will create a plan.md file in the docs folder with the plan for the feature.
✅ Parse and Run Tasks Rule: Provides a systematic approach to:
- Breaking down PRDs into actionable tasks
- Creating task tracking with JSON format
- Iterating through implementation automatically
- Maintaining progress tracking
It's a "Manual" rule, mentions it in your prompt to trigger it.
Example:
@parse-and-run-tasks.mdc how to implement the auth.js according to the @plan.md
Best Practices
- Start with Planning: Use the
plan.mdcrule when beginning new features - Track Progress: Use
parse-and-run-tasks.mdcto implement the plan created by theplan.mdcrule
License
MIT License - feel free to use these rules in your projects!
Related Skills
career-ops
72.3kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
ai-job-search
43.5kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
guizang-ppt-skill
26.7kAI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
Security Score
Audited on May 28, 2025
