Create Claude Code rule files for .claude/rules/. Writes conventions and shared guidelines that auto-inject into context. Use for path-specific coding conventions or shared project guidelines. NOT for constitution/laws (use <law> in CLAUDE.md instead).
/plugin marketplace add wayne930242/Reflexive-Claude-Code/plugin install wayne930242-ace-core-plugins-ace-core@wayne930242/Reflexive-Claude-CodeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/examples.mdreferences/paths-patterns.mdCreate modular rule files for conventions and shared guidelines.
<law>paths: - Scope rules to relevant files only<law> in CLAUDE.md.claude/rules/
├── code-style.md # Style conventions (global)
├── api/
│ └── conventions.md # paths: src/api/**
└── testing/
└── guidelines.md # paths: **/*.test.ts
---
# No paths field = applies to ALL contexts
---
# Rule Title
- Constraint 1
- Constraint 2
---
paths: src/api/**/*.ts
---
# API Rules
- All endpoints MUST validate input
- MUST use standard error format
| Pattern | Matches |
|---|---|
**/*.ts | All TypeScript files |
src/api/** | All under src/api/ |
*.md | Markdown in root only |
{src,lib}/**/*.ts | Multiple directories |
**/*.{ts,tsx} | Multiple extensions |
# .claude/rules/code-style.md
---
# Global - no paths
---
# Code Style
- Prefer const over let
- Use descriptive variable names
- Keep functions under 50 lines
# .claude/rules/api/conventions.md
---
paths: src/api/**/*.ts
---
# API Conventions
- Use async/await, not callbacks
- Return consistent response shapes
- Log errors with context
Before creating a rule:
<law> in CLAUDE.md)paths: scoping?Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.