---
title: v0.5.0
description: "Path-scoped .claude/rules/ context files for leaner CLAUDE.md"
date: 2026-03-13
tags:
- new
- improvement
---

## Context Rules (.claude/rules/)

- `seite init` now generates a lean CLAUDE.md (~160 lines) plus path-scoped `.claude/rules/*.md` files that Claude loads automatically when working with matching files
- 8 always-present rules: SEO requirements, templates, i18n, data files, shortcodes, config reference, features, design prompts
- 2 conditional rules: contact form (when `[contact]` configured), trust center (when trust collection present)
- Rules use YAML frontmatter with `paths:` for automatic scoping (e.g., `templates.md` only loads when editing `templates/**`)
- Follows Anthropic's recommendation of keeping CLAUDE.md under 200 lines for better instruction adherence

## Upgrade

- `seite upgrade` creates `.claude/rules/` files for existing projects (non-destructive — existing CLAUDE.md is not modified)
- Post-upgrade hint suggests trimming CLAUDE.md if it's large, since detailed content now lives in rules files
