claude-md
यह क्या करती है
यह आपके एजेंट को CLAUDE.md फ़ाइल लिखने या जाँचने में मदद करती है। यह फ़ाइल Claude को बताती है कि कोई प्रोजेक्ट कैसे काम करता है। यह उन डेवलपर्स के लिए है जो चाहते हैं कि उनका AI सहायक हर सेशन की शुरुआत सही संदर्भ के साथ करे।
कब इस्तेमाल करें
- ✓जब आप नया प्रोजेक्ट शुरू करें और उसके लिए CLAUDE.md फ़ाइल चाहिए।
- ✓जब मौजूदा CLAUDE.md फ़ाइल बहुत लंबी या अस्पष्ट हो और उसे सुधारना हो।
- ✓जब टीम के साथ साझा करने से पहले प्रोजेक्ट की CLAUDE.md फ़ाइल की गुणवत्ता जाँचनी हो।
Skill का लिंक
https://github.com/luongnv89/claude-howto/blob/main/03-skills/claude-md/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरी CLAUDE.md फ़ाइल जाँचकर बता सकते हैं कि क्या हटाया जाए, ताकि वह छोटी और काम की रहे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट प्रोजेक्ट का विश्लेषण करता है, मौजूदा CLAUDE.md फ़ाइलें ढूँढता है, और फिर उन्हें कुछ सिद्धांतों के आधार पर बनाता, अपडेट करता या जाँचता है। वह केवल वही जानकारी रखता है जो हर सेशन में लागू होती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). User may specify:
create- Create new CLAUDE.md from scratchupdate- Improve existing CLAUDE.mdaudit- Analyze and report on current CLAUDE.md quality- A specific path to create/update (e.g.,
src/api/CLAUDE.mdfor directory-specific instructions)
Core Principles
LLMs are stateless: CLAUDE.md is the main project file loaded into every conversation (alongside auto memory and unscoped rules). It serves as the primary onboarding document for AI agents into your codebase.
The Golden Rules
Less is More: Frontier LLMs can follow ~150-200 instructions. Claude Code's system prompt already uses ~50. Keep your CLAUDE.md focused and concise.
Universal Applicability: Only include information relevant to EVERY session. Task-specific instructions belong in separate files.
Don't Use Claude as a Linter: Style guidelines bloat context and degrade instruction-following. Use deterministic tools (prettier, eslint, etc.) instead.
Never Auto-Generate: CLAUDE.md is the highest leverage point of the AI harness. Craft it manually with careful consideration.
Execution Flow
1. Project Analysis
First, analyze the current project state:
Check for existing CLAUDE.md files:
- Root level:
./CLAUDE.mdor.claude/CLAUDE.md - Directory-specific:
**/CLAUDE.md - Global user config:
~/.claude/CLAUDE.md
- Root level:
Identify the project structure:
- Technology stack (languages, frameworks)
- Project type (monorepo, single app, library)
- Development tools (package manager, build system, test runner)
Review existing documentation:
- README.md
- CONTRIBUTING.md
- package.json, pyproject.toml, Cargo.toml, etc.
2. Content Strategy (WHAT, WHY, HOW)
Structure CLAUDE.md around three dimensions:
WHAT - Technology & Structure
- Technology stack overview
- Project organization (especially important for monorepos)
- Key directories and their purposes
WHY - Purpose & Context
- What the project does
- Why certain architectural decisions were made
- What each major component is responsible for
HOW - Workflow & Conventions
- Development workflow (bun vs node, pip vs uv, etc.)
- Testing procedures and commands
- Verification and build methods
- Critical "gotchas" or non-obvious requirements
3. Progressive Disclosure Strategy
For larger projects, recommend creating an agent_docs/ folder:
agent_docs/
|- building_the_project.md
|- running_tests.md
|- code_conventions.md
|- architecture_decisions.md
In CLAUDE.md, reference these files with instructions like:
For detailed build instructions, refer to `agent_docs/building_the_project.md`
Important: Use file:line references instead of code snippets to avoid outdated context.
4. Quality Constraints
When creating or updating CLAUDE.md:
- Target Length: Keep it under 200 lines; shorter is better
- No Style Rules: Remove any linting/formatting instructions
- No Task-Specific Instructions: Move to separate files
- No Code Snippets: Use file references instead
- No Redundant Information: Don't repeat what's in package.json or README
5. Essential Sections
A well-structured CLAUDE.md should include:
# Project Name
Brief one-line description.
## Tech Stack
- Primary language and version
- Key frameworks/libraries
- Database/storage (if any)
## Project Structure
[Only for monorepos or complex structures]
- `apps/` - Application entry points
- `packages/` - Shared libraries
## Development Commands
- Install: `command`
- Test: `command`
- Build: `command`
## Critical Conventions
[Only non-obvious, high-impact conventions]
- Convention 1 with brief explanation
- Convention 2 with brief explanation
## Known Issues / Gotchas
[Things that consistently trip up developers]
- Issue 1
- Issue 2
6. Anti-Patterns to Avoid
DO NOT include:
- Code style guidelines (use linters)
- Documentation on how to use Claude
- Long explanations of obvious patterns
- Copy-pasted code examples
- Generic best practices ("write clean code")
- Instructions for specific tasks
- Auto-generated content
- Extensive TODO lists
7. Validation Checklist
Before finalizing, verify:
- Kept under 200 lines; shorter is better
- Every line applies to ALL sessions
- No style/formatting rules
- No code snipp
अक्सर पूछे जाने वाले सवाल
फ़ाइल छोटी क्यों रखनी चाहिए?
स्किल कहती है कि फ़्रंटियर मॉडल लगभग 150 से 200 निर्देश ही ठीक से फ़ॉलो कर सकते हैं, और सिस्टम प्रॉम्प्ट पहले से उनमें से कुछ इस्तेमाल करता है।
क्या एजेंट इसे अपने-आप लिख दे?
नहीं। स्किल कहती है कि इसे अपने-आप जनरेट न किया जाए, बल्कि ध्यान से हाथ से लिखा जाए।
क्या यह किसी सब-फ़ोल्डर की फ़ाइल पर काम कर सकती है?
हाँ। आप रास्ता दे सकते हैं, जैसे कोई सबडायरेक्टरी, ताकि निर्देश केवल उसी फ़ोल्डर पर लागू हों।
जानकारी
लेखक का मूल विवरण
Create or update CLAUDE.md files following best practices for optimal AI agent onboarding
repo: luongnv89/claude-howto
लोकप्रियता
- GitHub स्टार
- 46k
- रैंकिंग में स्थान
- #6321
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
lesson-quiz
46kClaude Code के एक ट्यूटोरियल पाठ पर 10 सवालों की क्विज़ लेती है, आपके जवाब अंक देती है, और दोहराने लायक विषय बताती है।
self-assessment
46kClaude Code की 10 सुविधा-क्षेत्रों पर क्विज़ देती है, फिर विषय-वार अंक और यह बताने वाला सीखने का रास्ता कि आगे क्या पढ़ें।
blog-draft
46kआपके विचारों और स्रोतों से ब्लॉग पोस्ट का ड्राफ़्ट बनाने में आपके एजेंट का चरण-दर-चरण मार्गदर्शन करती है, काम के साथ-साथ संस्करण दर्ज करते हुए।
code-review-specialist
46kकोड में सुरक्षा समस्याएँ, धीमे हिस्से और रखरखाव की दिक्कतें जाँचने में आपके एजेंट की मदद करती है, साफ़ रिपोर्ट के साथ।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।