chore: add CLAUDE.md and project memory for Claude Code

Add CLAUDE.md with project guidance for adding new LLM providers.
Add .claude/memory/ with feedback rules:
- Preserve markdown quotes when editing
- Save memories in project directory

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 21:30:33 +07:00
parent bc72a408cc
commit bf68957e25
5 changed files with 57 additions and 0 deletions

4
.claude/memory/MEMORY.md Normal file
View File

@@ -0,0 +1,4 @@
# Memory Index
- [Preserve markdown quotes](feedback_markdown_quotes.md) — Don't edit blockquote content unless explicitly requested or fetching fresh info from source
- [Project-local memory](feedback_memory_location.md) — Always save memories to `.claude/memory/` in project, not user global location

View File

@@ -0,0 +1,13 @@
---
name: Preserve markdown quotes
description: Do not edit quoted content in markdown unless explicitly requested
type: feedback
---
When editing markdown files, never modify content in blockquotes (lines starting with `>`) unless:
1. The user explicitly requests changes to that content in the prompt, OR
2. The content is being updated from a website the user wants crawled for fresh information
**Why:** Quoted content often represents exact citations or official documentation that should remain verbatim.
**How to apply:** When tuning/editing markdown, skip over any blockquote sections and leave them unchanged. Only modify quotes if the user specifically asks or when fetching updated info from a source URL.

View File

@@ -0,0 +1,11 @@
---
name: Project-local memory
description: Always save memories inside the project, not user global location
type: feedback
---
Always save memory files to the project's `.claude/memory/` directory, not to the user's global memory location (`~/.claude/projects/`).
**Why:** Keeps project-specific knowledge alongside the codebase for portability and version control.
**How to apply:** When creating or updating memories, always write to `.claude/memory/` within the project root.