customaize-agent:create-rule

Create agent rules with YAML frontmatter and contrastive Incorrect/Correct examples.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/luicabref97/sushi-jungle-web --skill customaize-agent-create-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: customaize-agent:create-rule
Source: https://github.com/luicabref97/sushi-jungle-web/tree/main/.agents/skills/customaize-agent-create-rule
Command: npx skills add https://github.com/luicabref97/sushi-jungle-web --skill customaize-agent-create-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines creating robust, repeatable agent rules by codifying common mistakes and their correct patterns using contrastive examples.

Core Features & Use Cases

  • Build modular .claude/rules with YAML frontmatter for each rule.
  • Use Incorrect/Correct contrastive patterns to calibrate agent behavior.
  • Supports global and path-scoped rules to tailor contexts.

Quick Start

Create an on-topic rule with YAML frontmatter in .claude/rules that demonstrates an incorrect pattern and a corrected pattern.

Frequently Asked Questions about customaize-agent:create-rule

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

FAQPage Schema
How do I write agent rules that prevent repeating the same mistakes?

Agent rules prevent repeats by using contrastive Incorrect/Correct examples to codify common mistakes and their correct patterns. This calibrates agent behavior by explicitly showing the incorrect pattern alongside a corrected pattern for the same task.

What is YAML frontmatter and how does it structure a rule file?

YAML frontmatter defines metadata at the top of a SKILL.md rule file by specifying a name and description. This structured header contextualizes the rule before the body applies the contrastive Incorrect/Correct examples that guide agent behavior.

How do I apply agent rules to specific directories instead of globally?

Path-scoped rules apply agent guidelines to specific directories instead of globally. By configuring the rule context to target a path rather than the whole project, the agent receives tailored behavioral constraints only when working within that scope.

Can I use contrastive examples to calibrate agent behavior across different tasks?

Contrastive examples calibrate agent behavior across tasks by providing an Incorrect pattern followed by a Correct pattern within the rule body. This contrastive structure enforces consistent behavioral guidelines regardless of the specific task being executed.

What's the best way to create modular rules for Claude agents?

Creating modular rules for Claude agents involves building individual files in the rules directory with YAML frontmatter. Each rule file targets a specific behavior using contrastive Incorrect/Correct examples, keeping guidelines modular and maintainable across the project.