Write durable Claude Code project memory | DevPrompt Lab

Record stable project facts and useful commands without turning memory into a task log.

rule · AI tooling · beginner

English Tiếng Việt

A guide to concise CLAUDE.md instructions that remain useful across sessions and point to deeper references.

Reusable content

Create or update `CLAUDE.md` with facts that are stable and useful across tasks: architecture boundaries, development commands that have been verified, data and security constraints, and links to focused references. Keep instructions concise and actionable. Do not store credentials, personal data, temporary task status, or generated output. Avoid duplicating large documents; link to them instead. Check for nested CLAUDE.md files that may override or narrow scope.

Stable project facts: {{PROJECT_FACTS}}

Verified commands: {{COMMANDS}}

Constraints: {{CONSTRAINTS}}

How to use it

Review the current Claude Code memory documentation and repository hierarchy before deciding file placement.

Example

See `backend/README.md` for API conventions. Database tests require APP_ENV=test and the isolated `devpromptlab_test` database.