Agent Behavior Rule Creator

•
892
•

Automates the generation of high-precision behavior rules for Claude agents using contrastive examples to eliminate repetitive implementation errors.

The Agent Behavior Rule Creator is a specialized context engineering tool designed to formalize project conventions and improve agent accuracy. It streamlines the creation of .claude/rules files by implementing a proven contrastive pattern that pairs 'Incorrect' anti-patterns with 'Correct' implementations. By transforming manual corrections into standing behavioral guardrails, this skill ensures that agents adhere to project-specific architecture, coding standards, and quality gates across all sessions, preventing the recurrence of common mistakes and reducing manual oversight.

主な機能

01Provides a standardized template for documenting behavioral gaps and project conventions.
02Generates contrastive 'Incorrect vs. Correct' examples to eliminate agent ambiguity.
03892 GitHub stars
04Optimizes rule token efficiency to maintain high performance in long sessions.
05Automates .claude/rules file structure including YAML frontmatter and path-scoping.
06Supports global, path-specific, and priority-based behavioral constraints.

ユースケース

01Eliminating repetitive agent mistakes by codifying corrections into standing rules.
02Defining specific quality gates and constraints for sensitive directories like API or Security folders.
03Enforcing domain-specific architectural patterns across large-scale codebases.