create-rule

Create custom AI agent rules with descriptions and file glob patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of persistent rules for AI agents, ensuring consistent coding standards, project conventions, and file-specific guidance across development sessions.

Core Features & Use Cases

  • Rule Creation: Define rules for AI behavior using Markdown files with YAML frontmatter.
  • Scope Definition: Specify whether rules apply universally or to specific file patterns.
  • Use Case: You want to enforce a specific error handling pattern in all TypeScript files. You can create a rule that defines this pattern and applies only to **/*.ts files.

Quick Start

Use the create-rule skill to define a new rule for handling API requests in Python 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 rules for project conventions and coding standards?

To create persistent AI rules, you define custom guidance using Markdown files with YAML frontmatter, specifying descriptions, file glob patterns, and universal application flags to enforce coding standards across sessions.

How do I enforce specific coding patterns for AI agents in certain file types?

You can enforce specific coding patterns by creating a rule with a file glob pattern, such as `**/*.ts` for TypeScript files, which ensures the AI agent only applies the guidance when matching files are involved.

What file format is used to define agent guidance rules for development projects?

Agent guidance rules are defined using `.mdc` files containing Markdown with YAML frontmatter, which are stored in the `.cursor/rules/` directory to provide structured project conventions.

Can I make an AI guidance rule apply universally across all files in a project?

Yes, you can make an AI guidance rule apply universally by setting a universal application flag when defining the rule, ensuring the agent enforces the convention across all project files regardless of file type.

Do I need any additional dependencies to set up AI rules for coding standards?

No additional dependencies are required to set up AI rules for coding standards; the process relies solely on creating `.mdc` files with YAML frontmatter directly in your project's `.cursor/rules/` directory.