Home / Glossary / CLAUDE.md

Definition

CLAUDE.md

CLAUDE.md एक markdown configuration file है जिसे आपके project root में रखा जाता है और जो Claude Code को persistent, project-specific निर्देश प्रदान करती है। यह एजेंट को आपके coding conventions, architecture, common commands और rules के बारे में बताती है — long-term memory के एक रूप की तरह जो उस project के हर session पर लागू होती है।

CLAUDE.md कैसे काम करता है

जब Claude Code एक session शुरू करता है, तो वह automatically आपके project root में CLAUDE.md file पढ़ता है (और parent directories या subdirectories में कोई भी CLAUDE.md files)। Contents एजेंट के system context का हिस्सा बन जाते हैं, इसलिए यह हर session में याद दिलाए बिना आपके निर्देशों का पालन करता है। इससे एजेंट आपकी team के conventions के अनुसार consistently behave करता है।

CLAUDE.md में क्या शामिल करें

  • +Project architecture overview और key file locations
  • +Coding conventions (naming, formatting, use करने या avoid करने के patterns)
  • +Testing, building और deploying के लिए common commands
  • +Rules जैसे "नई functions के लिए हमेशा tests लिखें" या "auth module को directly कभी modify न करें"
  • +Technology stack details जिनके बारे में एजेंट को aware होना चाहिए
markdown
# CLAUDE.md

## Project
Next.js 14 app with App Router, TypeScript, Tailwind CSS.

## Commands
- `npm run dev` — start dev server
- `npm test` — run Jest tests
- `npm run lint` — ESLint check

## Conventions
- Use server components by default
- Client components go in `components/client/`
- All API routes must validate input with Zod
- Write tests for every new utility function

## Do NOT
- Modify files in `lib/core/` without explicit approval
- Use `any` type in TypeScript
- Add new dependencies without justification

CLAUDE.md को संक्षिप्त रखें। एजेंट इसे हर session में पढ़ता है, इसलिए केवल वही information शामिल करें जो multiple कार्यों में relevant हो। Task-specific details को अपने prompts में move करें।

CLAUDE.md file कहाँ रखनी चाहिए?+
इसे अपनी project directory के root में रखें। Claude Code subdirectories में module-specific निर्देशों के लिए CLAUDE.md files और parent directories में organization-wide rules के लिए भी support करता है। सभी applicable files एक साथ merge की जाती हैं।
क्या CLAUDE.md अन्य AI टूल्स के साथ काम करता है?+
CLAUDE.md Claude Code के लिए specific है। हालांकि, कुछ अन्य टूल्स ने similar concepts अपनाए हैं। Cursor .cursorrules उपयोग करता है, और अन्य agents custom config files पढ़ सकते हैं। Project-level AI instructions की concept एक common pattern बन रही है।
CLAUDE.md कितनी लंबी होनी चाहिए?+
500 lines के नीचे रखें। सबसे महत्वपूर्ण conventions और rules पर focus करें। एजेंट details के लिए individual files हमेशा पढ़ सकता है — CLAUDE.md को वह high-level context provide करना चाहिए जो कार्यों में apply होती है।

Related terms

Agentic CodingClaude CodePrompt Engineering for Code

Master Claude Code in days, not months

37 hands-on lessons from beginner to CI/CD automation. Module 1 is free.

START FREE →
← ALL TERMS