OneLinersCommand workbench
AI
Back to instructions
.claude/rules/*.md

Path-scoped Claude rule

Loads focused instructions only when Claude works on matching files.

Revision
1
Verified
2026-07-26
Save or explore
Save to collectionCreate a collection in the sidebar first.

Compatibility and paths

Claude Code.claude/rules/{{ruleName}}.mdFiles matching the paths frontmatter
VS Code.claude/rules/{{ruleName}}.mdFiles matching the paths frontmatter

Trust and provenance

Curated record reviewed 2026-07-26. Results still depend on the supplied context and target environment.

Fill variables

Values stay in this browser tab and are not stored.

Generated asset5 required field(s) must be completed
---
paths:
  - "{{pathGlob}}"
---

# {{ruleTitle}}

- Follow {{primaryConvention}}.
- Validate with `{{validationCommand}}`.
- Do not introduce {{prohibitedPattern}}.

Real example

Input

Project uses .claude/rules/{{ruleName}}.md with the required variables filled.

Expected result

---
paths:
  - "example-value"
---

# example-value

- Follow example-value.
- Validate with `example-value`.
- Do not introduce example-value.

Source evidence

Claude Code project memoryofficial