create-rule

Creates AI guidance rules for Coder IDE with YAML frontmatter configuration.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/garethdaine/agent --skill create-rule-garethdaine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/garethdaine/agent/tree/main/.cursor/skills-cursor/create-rule
Command: npx skills add https://github.com/garethdaine/agent --skill create-rule-garethdaine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of persistent AI guidance within your project by defining custom rules, ensuring consistent coding standards and project conventions.

Core Features & Use Cases

  • Rule Creation: Define project-specific rules for AI agents.
  • Scope Definition: Apply rules universally or to specific file patterns.
  • Use Case: Set up a rule to enforce a specific error-handling pattern in all TypeScript files, or create a rule for React component best practices that only applies to .tsx files.

Quick Start

Use the create-rule skill to define a new rule for enforcing consistent error handling in all TypeScript files.

Frequently Asked Questions about create-rule

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

FAQPage Schema
How do I create persistent AI guidance rules in Cursor?

To create persistent AI guidance rules in Cursor, define a new rule with YAML frontmatter including description, globs, and alwaysApply fields to enforce coding standards and project conventions.

Can I apply Cursor rules to specific file types like TypeScript or React?

Yes, you can apply Cursor rules to specific file types by configuring the globs field in the YAML frontmatter to target specific file patterns like .ts or .tsx files.

What is the best way to enforce project conventions using AI agents?

The best way to enforce project conventions using AI agents is by creating structured, reusable rules with YAML frontmatter that define coding standards for specific file types or project-wide application.

Do I need YAML frontmatter to configure Cursor rules?

Yes, YAML frontmatter is required to configure Cursor rules, specifically utilizing the description, globs, and alwaysApply fields to properly define the scope and persistence of your AI instructions.

How do I scope a rule for universal application versus specific file patterns?

To scope a rule for universal application versus specific file patterns, configure the alwaysApply field for universal use, or set the globs field to target specific file patterns.