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 होना चाहिए
# 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 justificationCLAUDE.md को संक्षिप्त रखें। एजेंट इसे हर session में पढ़ता है, इसलिए केवल वही information शामिल करें जो multiple कार्यों में relevant हो। Task-specific details को अपने prompts में move करें।
CLAUDE.md file कहाँ रखनी चाहिए?+
क्या CLAUDE.md अन्य AI टूल्स के साथ काम करता है?+
CLAUDE.md कितनी लंबी होनी चाहिए?+
Related terms
Master Claude Code in days, not months
37 hands-on lessons from beginner to CI/CD automation. Module 1 is free.
START FREE →