Skip to content
Back to skills

Create Rules

ASecurity

Create or update Cursor Rules (.mdc files) and Skills (SKILL.md). Use when creating rules, adding coding standards, setting up conventions, updating .cursor/rules/, or converting rules to skills. Defines standard format, naming, frontmatter, token budget.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
ai-agentsgo

Works with

  • cursor

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill create-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-create-rules/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-create-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-rules
description: Create or update Cursor Rules (.mdc files) and Skills (SKILL.md). Use when creating rules, adding coding standards, setting up conventions, updating .cursor/rules/, or converting rules to skills. Defines standard format, naming, frontmatter, token budget.
---

# Create Rules and Skills

## Rule Types (3-Tier System)

| Type | Frontmatter | When loaded | Filename suffix |
|------|-------------|-------------|-----------------|
| **Always** | `alwaysApply: true`, description/globs blank | Every conversation | `-always.mdc` |
| **Auto** | `alwaysApply: false`, globs filled | When matching file is open | `-auto.mdc` |
| **Agent** | `alwaysApply: false`, description filled | Agent decides | `-agent.mdc` |
| **Manual** | `alwaysApply: false`, both blank | Only via @ mention | `-manual.mdc` |

## Token Budget (CRITICAL)

- Total always-apply: TARGET < 5,000 tokens
- alwaysApply: true ONLY for rules needed in EVERY chat
- File-specific rules -> auto (globs)
- Task-specific rules -> agent (description) or skill
- **Rule of Three**: codify a rule ONLY after 3 repetitions of the same mistake

## Naming Convention

`{CATEGORY}-rule-name-{always|auto|agent|manual}.mdc`

Categories: core, _base, protocol, standard, workflows, error

## Rule Structure

See template in [rule-template.mdc](assets/rule-template.mdc).

## Description Format (Agent Rules)

ACTION-TRIGGER-OUTCOME format:
"Применять при [TRIGGER]. [ACTION] для [OUTCOME]."

## Universality Requirement

Rules must work in ANY project:
- NO project entities -> use placeholders
- NO project URLs/creds -> .cursor/.secrets/
- NO project architecture -> AGENTS.md
- YES: universal principles, abstract patterns

## When to Create a Skill Instead of a Rule

- Workflow with multiple steps -> Skill
- Needs executable scripts -> Skill
- Long procedural content (>200 lines) -> Skill
- Only relevant for specific tasks -> Skill
- Short constraint needed broadly -> Rule

## After Creating/Updating

1. Re-read the file (self-check)
2. Output: Rule/Skill path, Type, Description

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.