create-rule

Create AI project rules in .cursor/rules/ with Markdown and YAML frontmatter.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/AllanVerse/AI-Explainable-IPS --skill create-rule-allanverse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/AllanVerse/AI-Explainable-IPS/tree/main/.cursor/skills-cursor/create-rule
Command: npx skills add https://github.com/AllanVerse/AI-Explainable-IPS --skill create-rule-allanverse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you establish consistent coding standards, project conventions, and file-specific patterns for AI agents by creating structured rules.

Core Features & Use Cases

  • Rule Creation: Define rules for AI guidance in .cursor/rules/.
  • Configuration: Specify rule scope (alwaysApply, globs) and descriptions.
  • Use Case: You want to ensure all TypeScript files in your project adhere to specific error-handling patterns. You can use this Skill to create a typescript-standards.mdc rule that applies only to **/*.ts files.

Quick Start

Use the create-rule skill to define a new rule for your project.

Frequently Asked Questions about create-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create AI coding standards for specific file types?

You can establish coding standards by creating structured rules in the `.cursor/rules/` directory using Markdown with YAML frontmatter. This allows you to define AI guidance and apply it specifically to targeted file types using globs.

What are .cursor rules and how do they guide AI agents?

.cursor rules are Markdown files with YAML frontmatter that establish project-wide coding conventions for AI agents. They guide the AI by using file globs for targeted application and a boolean flag to enforce rules across all sessions.

Can I configure AI project rules to apply automatically across all sessions?

Yes, you can configure rules to apply automatically across all sessions by setting the `alwaysApply` boolean flag to true in the YAML frontmatter. This enforces your project conventions universally throughout the environment.

How do I set up project conventions for AI coding assistants?

You set up project conventions by creating `.mdc` rule files inside the `.cursor/rules/` directory. Within these files, you define the description and scope using YAML frontmatter to ensure the AI assistant adheres to your established patterns.

Does the create-rule skill support targeting specific file patterns like TypeScript?

Yes, the skill supports targeting specific file patterns like TypeScript by configuring file globs in the YAML frontmatter. You can create a rule that applies its coding standards exclusively to files matching patterns like `**/*.ts`.