# CLAUDE.md — Project Guidelines

## Before Writing Code

Before writing any code, describe your intended approach in plain language and wait for explicit approval. If requirements are ambiguous or underspecified, ask clarifying questions first — do not make assumptions and proceed.

## Scope Limit on Changes

If a task requires modifying more than 3 files, stop before writing any code. Break the task into smaller, focused subtasks, present that breakdown, and wait for confirmation before starting.

## After Writing Code

After completing a code change, list what could break as a result (edge cases, dependent behavior, integration points), and suggest specific tests that would cover those risks.

## Bug Fix Process

When investigating a bug, start by writing a failing test that reproduces it. Only then fix the code. The task is complete when the previously failing test passes — not before.

## Learning from Corrections

Every time the user corrects an approach, behavior, or output, add a new rule to this file that captures the lesson so the same mistake is never repeated.
