One-click install
npx skills add https://github.com/luizcarlosfaria/Oragon.ElasticPool --skill create-rule-luizcarlosfaria
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-rule
Source: https://github.com/luizcarlosfaria/Oragon.ElasticPool/tree/main/.claude/skills/create-rule
Command: npx skills add https://github.com/luizcarlosfaria/Oragon.ElasticPool --skill create-rule-luizcarlosfaria

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating Claude Code rules that follow official conventions is error-prone: users often create rules with invalid globs, duplicate content from CLAUDE.md, or use the wrong rule type (unconditional vs scoped), leading to rules that never load or conflict with existing instructions. This Skill eliminates those mistakes by providing a step-by-step guided workflow aligned with official Claude Code documentation.

Core Features & Use Cases

  • Rule Type Decision Tree: Helps users correctly identify whether content should be a rule, CLAUDE.md entry, skill, or hook, avoiding misclassification.
  • Glob Pattern Guidance: Provides canonical glob patterns and architectural stereotype patterns (e.g., Command.cs, IService.cs) to create accurate path-scoped rules.
  • Templates & Examples: Includes pre-built templates for unconditional and scoped rules, plus real-world examples for common use cases like security rules, CQRS conventions, and feature-specific guidelines.
  • Validation Steps: Guides users to validate globs against real project files and check for common anti-patterns like overly long rules or conflicting instructions.
  • Use Case: A .NET development team can use this Skill to create a scoped rule that enforces CQRS command conventions for all *Command.cs files across the project, without affecting other file types.

Quick Start

Use the create-rule skill to generate a new scoped rule that enforces CQRS command validation standards for all files matching the **/*Command.cs glob pattern.

Frequently Asked Questions about create-rule

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

FAQPage Schema
How do I create Claude Code rules that load correctly without conflicting with CLAUDE.md?

To create Claude Code rules that load correctly, you must follow official formatting conventions, use valid glob patterns for path-scoped rules, and avoid duplicating content already defined in CLAUDE.md. This skill provides a guided workflow to ensure compliance and prevent rule conflicts.

How to write valid glob patterns for path-scoped Claude Code rules?

Writing valid glob patterns for path-scoped rules requires matching specific file path structures like *Command.cs or I*Service.cs. This skill provides canonical glob pattern guidance and architectural stereotype templates to accurately target files without causing load failures.

When should I use an unconditional rule versus a scoped rule in Claude Code?

Use unconditional rules for global project guidelines and scoped rules for path-specific instructions like CQRS conventions on *Command.cs files. This skill uses a decision tree to help you correctly classify rule types and avoid misclassification.

Why are my custom Claude Code instructions not loading or applying to my project?

Claude Code instructions fail to load when rules contain invalid globs, use the wrong rule type, or conflict with existing project instructions. This skill validates glob patterns against real files and checks for common anti-patterns to ensure rules apply correctly.

Can I enforce code style and security guidelines for specific file types using Claude Code?

Yes, you can enforce code style and security guidelines for specific file types by creating path-scoped rules. This skill offers pre-built templates for architectural patterns and feature-specific guidelines, ensuring rules apply only to targeted file paths.

What is the best way to set up CQRS command conventions in Claude Code?

The best way to set up CQRS command conventions is by generating a scoped rule targeting the **/*Command.cs glob pattern. This skill provides real-world templates and validation steps to enforce command validation standards without affecting other file types.