ClaimAICreditsClaimAICredits
पर्क्सयह कैसे काम करता हैप्राइसिंगब्लॉग
होम/ब्लॉग/The Ultimate CLAUDE.md File Guide: अपनी Claude Code Productivity को 10x कैसे करें
The Ultimate CLAUDE.md File Guide: अपनी Claude Code Productivity को 10x कैसे करें
ट्यूटोरियल्स

The Ultimate CLAUDE.md File Guide: अपनी Claude Code Productivity को 10x कैसे करें

Claude Code के लिए CLAUDE.md configuration file में महारत हासिल करें। Templates, best practices, hooks, slash commands, और viral हुआ 27-agent setup।

ClaimAICredits Team13 अप्रैल 202620 min read
claude-codeclaude-mddeveloper-toolsai-codingproductivityanthropictutorials

CLAUDE.md File क्या है और यह क्यों मायने रखती है

अगर आप Claude Code को बिना CLAUDE.md file के use कर रहे हैं, आप इसकी ज़्यादातर power table पर छोड़ रहे हैं।

CLAUDE.md एक Markdown configuration file है जिसे Claude Code हर session की शुरुआत में automatically पढ़ता है। यह Claude को आपके project के architecture, coding standards, preferred tools, testing patterns, और workflow rules के बारे में बताती है। हर conversation में same instructions repeat करने की बजाय, आप इन्हें एक बार लिखते हैं और Claude हर बार follow करता है।

इसे ऐसे समझें: एक contractor hire करना जो आपकी company के बारे में कुछ नहीं जानता vs एक जिसने आपकी पूरी engineering handbook पढ़ी है। CLAUDE.md file वही handbook है।

एक well-crafted CLAUDE.md file आपका prompting time 60-80% कम कर सकती है। यह repeated context-setting खत्म करती है, consistent code quality enforce करती है, और multi-agent automation जैसे advanced workflows enable करती है। यह guide basic setup से लेकर Twitter पर viral हुए 27-agent configuration तक सब cover करती है।

CLAUDE.md Repeated Prompting से बेहतर क्यों है

ApproachTokens प्रति SessionConsistencyMaintenance
Manual prompting500-2,000 प्रति conversationकम — mood पर निर्भरकोई नहीं
Clipboard templates300-1,000 प्रति pasteMedium — भूलना आसानManual
CLAUDE.md file0 (auto-loaded)High — हमेशा applyVersion controlled
CLAUDE.md + hooks + commands0 (auto-loaded)बहुत high — enforcedGit-tracked

अकेले token savings significant हैं। अगर आप हर conversation में context-setting पर 500 tokens खर्च करते हैं और रोज़ 20 conversations करते हैं, यह रोज़ 10,000 tokens है — या model के हिसाब से लगभग $0.15-$0.75 प्रति दिन। एक महीने में, CLAUDE.md file आपको raw API costs में $4.50-$22.50 बचाती है और बेहतर results देती है।

Anthropic credits | AWS credits | Google Cloud credits


Claude Code CLAUDE.md Files को कैसे पढ़ता है

Claude Code CLAUDE.md files को specific priority order में देखता है। इस hierarchy को समझना instructions को effectively organize करने के लिए essential है।

File Loading Order

PriorityLocationScopeUse Case
1 (lowest)~/.claude/CLAUDE.mdGlobal — सभी projectsPersonal preferences, global coding style
2Project root CLAUDE.mdProject-wideArchitecture, tech stack, project rules
3Subdirectory CLAUDE.mdDirectory-specificModule-specific conventions
4 (highest).claude/settings.jsonProject configHooks, permissions, MCP servers

Claude Code सभी applicable files को merge करता है। अगर आपकी global file कहती है "use 2-space indentation" लेकिन project file कहती है "use 4-space tabs," उस project के लिए project file जीतती है।

क्या कहाँ जाता है

Global CLAUDE.md (~/.claude/CLAUDE.md) — preferences जो हर जगह apply होती हैं:

# Global Preferences
- Always use TypeScript over JavaScript when possible
- Prefer functional components over class components in React
- Write concise commit messages under 72 characters
- Use ESM imports, never CommonJS require()

Project CLAUDE.md (project root) — इस codebase के लिए specific हर चीज़:

# Project: Acme Dashboard
## Tech Stack
- Next.js 15 with App Router
- TypeScript 5.x strict mode
- Tailwind CSS 4.0
- Prisma ORM with PostgreSQL
- Jest + React Testing Library for tests

## Architecture
- /app — Next.js routes (App Router only, no Pages Router)
- /components — reusable UI components
- /lib — business logic and utilities
- /prisma — database schema and migrations

अपनी पहली CLAUDE.md File बनाना

Claude Code और properly configured CLAUDE.md file के साथ शुरू करने के लिए step-by-step setup।

Step 1: Claude Code Install करें

npm install -g @anthropic-ai/claude-code

Step 2: अपनी Project Root में CLAUDE.md बनाएँ

touch CLAUDE.md

Step 3: Basic Configuration जोड़ें

इस minimal template से शुरू करें और ज़रूरत के अनुसार expand करें:

# Project: [Your Project Name]

## Tech Stack
- [Language/Framework]
- [Database]
- [Key libraries]

## Coding Standards
- [Indentation preference]
- [Naming conventions]
- [Import ordering]

## Rules
- Always write tests for new functions
- Never commit directly to main
- Use conventional commit messages

Step 4: Claude Code Run करें

claude

Claude Code automatically आपकी CLAUDE.md file detect और load करता है। आपको session output में confirmation दिखेगा।

ClaimAICredits logoClaimAICredits

फ्री Claude API Credits पाएँ

स्टार्टअप programs के ज़रिए $25,000+ Anthropic credits access करें। ClaimAICredits 217+ verified credit programs curate करता है।

Credits Explore करें
AI startup credit cards preview

CLAUDE.md Templates: Starter, Advanced, और Team

Template 1: Simple Project (20 Lines)

Solo developers, side projects, और small codebases के लिए best।

# My App

## Stack
- Python 3.12, FastAPI, SQLAlchemy, PostgreSQL
- pytest for testing

## Rules
- Use type hints on all function signatures
- Write docstrings for public functions
- Keep functions under 30 lines
- Use async/await for all database operations
- Format with black, lint with ruff

## Patterns
- Repository pattern for data access
- Pydantic models for request/response validation
- Dependency injection via FastAPI Depends()

Template 2: Advanced Full-Stack Project (80+ Lines)

Multiple developers और complex architecture वाली production applications के लिए।

# Acme SaaS Platform

## Tech Stack
- Frontend: Next.js 15, TypeScript 5.x, Tailwind CSS 4.0
- Backend: Node.js 22, tRPC, Prisma ORM
- Database: PostgreSQL 16, Redis 7
- Infrastructure: Vercel (frontend), Railway (backend)
- Testing: Vitest, Playwright, MSW

## Architecture
All code follows Clean Architecture principles:
- /packages/web — Next.js frontend (App Router only)
- /packages/api — tRPC backend
- /packages/shared — shared types and utilities
- /packages/db — Prisma schema and client

## Coding Standards
- Strict TypeScript: no any, no ts-ignore
- All components must be functional with hooks
- Server Components by default, "use client" only when needed
- All API routes must have Zod input validation
- Database queries go through repository layer, never raw SQL

## Testing Requirements
- Minimum 80% coverage for new code
- Unit tests for all business logic
- Integration tests for API endpoints
- E2E tests for critical user flows
- Use MSW for API mocking, never mock fetch directly

## Git Workflow
- Conventional commits: feat:, fix:, chore:, docs:
- All PRs require passing CI before merge
- Squash merge to main
- Branch naming: feature/TICKET-123-description

## Security Rules
- NEVER hardcode secrets or API keys
- Always use environment variables for config
- Sanitize all user input
- Use parameterized queries (Prisma handles this)
- NEVER expose internal error details to clients

Template 3: Team Configuration (Git के ज़रिए Shared)

उन teams के लिए जो सभी members में consistent Claude Code behavior चाहती हैं।

# Team Engineering Standards — Acme Corp

## Overview
This file ensures Claude Code follows our team's engineering
standards. Committed to Git so all engineers get identical behavior.

## Code Review Checklist (Claude must follow before suggesting code)
1. Does this change have tests?
2. Are error cases handled?
3. Is the function documented?
4. Does it follow our naming conventions?
5. Are there any security implications?

## Naming Conventions
- Components: PascalCase (UserProfile.tsx)
- Hooks: camelCase with use prefix (useAuth.ts)
- Utils: camelCase (formatDate.ts)
- Constants: SCREAMING_SNAKE (MAX_RETRIES)
- Database tables: snake_case (user_profiles)
- API routes: kebab-case (/api/user-settings)

## Forbidden Patterns
- DO NOT use console.log in production code (use our logger)
- DO NOT use any TypeScript escape hatches (any, @ts-ignore)
- DO NOT install new dependencies without justification
- DO NOT modify database schema without migration file
- DO NOT use default exports (use named exports only)

## Preferred Libraries (do not suggest alternatives)
- State management: Zustand (not Redux)
- Forms: React Hook Form + Zod (not Formik)
- HTTP client: native fetch (not Axios)
- Date handling: date-fns (not Moment.js)
- Animation: Framer Motion (not React Spring)

तुलना: CLAUDE.md vs .cursorrules vs .github/copilot-instructions.md

अगर आप AI coding tools का मूल्यांकन कर रहे हैं, हर एक configuration कैसे handle करता है समझना critical है।

FeatureCLAUDE.md (Claude Code).cursorrules (Cursor)copilot-instructions.md (GitHub Copilot)
Auto-loadingहाँ, hierarchicalहाँ, project rootहाँ, repository root
Global + project scopingहाँ (home + project)सिर्फ projectOrganization + repo
Hooks/automationहाँ (settings.json)Limitedनहीं
Custom slash commandsहाँ (.claude/commands/)नहींनहीं
MCP server integrationहाँ (100+ tools)नहींLimited (extensions के ज़रिए)
Multi-agent workflowsहाँनहींनहीं
Git के ज़रिए team sharingहाँहाँहाँ
Max context sizeबहुत बड़ा (full project)~6,000 tokensLimited
लागतAPI credits ज़रूरी$20/month subscription$10-19/month subscription

Claude Code का key differentiator CLAUDE.md के आसपास का ecosystem है — hooks, custom commands, MCP servers, और multi-agent support इसे configuration file से पूरे automation framework में बदल देते हैं।


Hooks: अपना Claude Code Workflow Automate करना

Hooks .claude/settings.json में configure होते हैं, CLAUDE.md में नहीं। ये Claude Code events से पहले या बाद में automatically shell commands चलाते हैं।

Hook Configuration Structure

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "command": "echo 'File about to be modified'"
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "command": "npx eslint --fix $CLAUDE_FILE_PATH"
      }
    ],
    "PreCommit": [
      {
        "command": "npm run lint && npm run test:changed"
      }
    ]
  }
}

सबसे Useful Hook Patterns

Hook EventTriggerउदाहरण Use Case
PreToolUseClaude द्वारा file edit/write करने से पहलेFile paths validate करना, permissions check करना
PostToolUseClaude द्वारा file edit/write करने के बादAuto-format, lint, related tests चलाना
PreCommitClaude द्वारा code commit करने से पहलेपूरा lint + test suite चलाना
PostCommitClaude द्वारा code commit करने के बादCI trigger करना, team को notify करना
SessionStartजब Claude Code session शुरू होता हैLatest changes pull करना, env setup check करना

Practical Hook उदाहरण

हर file edit के बाद auto-format:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "command": "npx prettier --write $CLAUDE_FILE_PATH"
      }
    ]
  }
}

Changed files के लिए tests चलाएँ:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit",
        "command": "npx vitest run --reporter=verbose --changed"
      }
    ]
  }
}

Custom Slash Commands

Slash commands आपको reusable prompt templates बनाने देते हैं जो single / command से trigger होते हैं।

Slash Commands कैसे बनाएँ

  1. अपनी project में .claude/commands/ directory बनाएँ
  2. Markdown files जोड़ें — हर file एक command बन जाती है
  3. Dynamic input के लिए $ARGUMENTS placeholder use करें

उदाहरण: .claude/commands/review.md

Review the following code for:
1. Security vulnerabilities
2. Performance issues
3. Missing error handling
4. Test coverage gaps

Code to review: $ARGUMENTS

Provide a severity rating (low/medium/high/critical) for each finding.

Claude Code में Usage:

/project:review src/auth/login.ts

Useful Slash Command Ideas

Command FileSlash CommandPurpose
review.md/project:reviewSecurity + quality review
refactor.md/project:refactorBest practices के साथ refactor
test.md/project:testComprehensive tests generate करें
docs.md/project:docsDocumentation generate करें
migrate.md/project:migrateDatabase migration helper
debug.md/project:debugSystematic debugging workflow
deploy-check.md/project:deploy-checkPre-deployment validation
ClaimAICredits logoClaimAICredits

AI Development लागत बचाएँ

Anthropic, AWS, Google Cloud, और 200+ अन्य platforms से credits stack करें।

सभी Perks Browse करें
AI startup credit cards preview

MCP Servers: Claude Code की Capabilities को Extend करना

MCP (Model Context Protocol) servers Claude Code को external tools और services से connect करते हैं। सही से configure करने पर, Claude Code databases query कर सकता है, web browse कर सकता है, files manage कर सकता है, GitHub से interact कर सकता है, और बहुत कुछ — आपके coding session के अंदर से।

MCP Servers कैसे Configure करें

MCP servers .claude/settings.json में set up होते हैं:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres",
               "postgresql://localhost:5432/mydb"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"]
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
    }
  }
}

Developers के लिए सबसे Popular MCP Servers

MCP Serverक्या करता हैकब use करें
postgresPostgreSQL databases query और modify करता हैDatabase debugging, schema exploration
githubRepos, PRs, issues manage करता हैPR reviews, issue triage
filesystemProject के बाहर files read/write करता हैCross-project file operations
puppeteerBrowser automationTesting, scraping, screenshots
memoryPersistent key-value storageSessions में long-running context
slackSlack messages भेजता/पढ़ता हैTeam notifications, status updates
linearLinear issues manage करता हैTask tracking, sprint management

CLAUDE.md में MCP को Reference करना

आपकी CLAUDE.md Claude Code को निर्देश दे सकती है कि connected MCP servers को कब और कैसे use करना है:

## Available Tools
- Use the postgres MCP to check schema before writing migrations
- Use the github MCP to create PRs after completing feature branches
- Use the memory MCP to track progress on multi-step tasks

Viral 27-Agent Setup: एक Google Engineer ने 80% काम कैसे Automate किया

2026 की शुरुआत में, एक Google engineer का Twitter thread viral हो गया जिसमें उसने describe किया कि उसने अपने workflow के अलग हिस्सों को handle करने के लिए 27 specialized Claude Code agents कैसे set up किए। हर agent का अपना CLAUDE.md था narrow, focused instructions के साथ।

Core Insight

एक general-purpose Claude Code session सब कुछ करने की कोशिश करने की बजाय, उसने अपने काम को specialized roles में decompose किया। हर agent का था:

  • Domain-specific knowledge के साथ dedicated CLAUDE.md
  • Restricted tool access (सिर्फ वही जो उस agent को चाहिए)
  • क्या touch करना चाहिए और क्या नहीं, इसकी clear boundaries
  • Specific output formats और quality standards

उदाहरण Agent Breakdown

Agent RoleCLAUDE.md FocusAllowed Tools
Frontend AgentReact, CSS, accessibility standardsEdit, Write, Browser
Backend AgentAPI design, database patterns, securityEdit, Write, Postgres MCP
Test AgentTesting philosophy, coverage requirementsEdit, Write, Bash (test runner)
Docs AgentDocumentation standards, API docs formatEdit, Write
DevOps AgentCI/CD, Docker, Kubernetes configsEdit, Write, Bash
Review AgentCode review checklist, security auditRead only, GitHub MCP
Migration AgentDatabase migration rules, rollback plansEdit, Write, Postgres MCP
Perf AgentPerformance benchmarks, bundle analysisRead, Bash, Browser

इस Setup को कैसे Replicate करें

इस pattern से फायदा उठाने के लिए आपको 27 agents की ज़रूरत नहीं है। 3-5 specialized configurations से शुरू करें:

1. हर role के लिए अलग CLAUDE.md files बनाएँ:

.claude/agents/frontend.md
.claude/agents/backend.md
.claude/agents/testing.md

2. Specific configuration के साथ Claude Code launch करें:

# Use different profiles by combining global + agent-specific context
claude --profile frontend

3. Clear handoff points define करें:

आपकी primary CLAUDE.md reference कर सकती है कि agents कब switch करें:

## Agent Workflow
- Frontend changes: use the frontend agent profile
- API changes: use the backend agent profile
- After any code change: run the test agent
- Before merging: run the review agent

यह क्यों काम करता है

27-agent approach AI productivity में एक fundamental principle की वजह से काम करता है: narrow context broad context से बेहतर output पैदा करता है। Frontend, backend, DevOps, testing, और documentation के बारे में 400 lines की instructions वाला Claude Code session, किसी भी single task पर 50 highly relevant lines वाले session से worse perform करेगा।


Common CLAUDE.md गलतियाँ (और उन्हें कैसे Fix करें)

Mistake 1: बहुत Vague होना

बुरा:

Write good code that follows best practices.

अच्छा:

- Use TypeScript strict mode, no implicit any
- All functions must have JSDoc comments
- Error handling: wrap async operations in try/catch
- Max function length: 30 lines

Mistake 2: Instructions से Overload करना

500+ lines की instructions डालने से Claude Code important rules को deprioritize करता है। अपनी CLAUDE.md focused रखें।

CLAUDE.md SizePerformance Impact
20-50 linesज़्यादातर projects के लिए optimal
50-150 linesComplex projects के लिए अच्छा
150-300 linesClear organization के साथ acceptable
300+ linesDiminishing returns — split करने पर विचार करें

Mistake 3: CLAUDE.md को Version Control नहीं करना

आपकी CLAUDE.md Git में commit होनी चाहिए। यह ensure करता है:

  • Team consistency
  • Change history और accountability
  • अगर instructions issues पैदा करें तो easy rollback
  • Instruction changes के लिए PR reviews

Mistake 4: Security Section को Ignore करना

अपनी CLAUDE.md में हमेशा security rules include करें:

## Security (CRITICAL — never ignore)
- NEVER hardcode API keys, tokens, or passwords
- NEVER commit .env files
- ALWAYS use parameterized database queries
- ALWAYS validate and sanitize user input
- NEVER expose stack traces or internal errors to users

Mistake 5: Tech Stack का ज़िक्र भूल जाना

Claude Code code से आपका stack infer कर सकता है, लेकिन explicit declarations गलत assumptions रोकती हैं:

## Stack (authoritative — do not infer differently)
- Runtime: Node.js 22 (NOT Deno, NOT Bun)
- Framework: Next.js 15 App Router (NOT Pages Router)
- ORM: Prisma (NOT Drizzle, NOT TypeORM)
- Package manager: pnpm (NOT npm, NOT yarn)

Claude Code Best Practices: Power User Tips

Tip 1: Conditional Instructions Use करें

## Environment-Specific Rules
- In development: use verbose logging, skip minification
- In production: no console.log, enable all optimizations
- In CI: run full test suite, fail on any warning

Tip 2: Output Formats Define करें

## When I ask for a code review, respond with:
1. **Summary** (1-2 sentences)
2. **Issues found** (bulleted, severity-tagged)
3. **Suggested fixes** (with code snippets)
4. **Overall grade** (A/B/C/D/F)

Tip 3: Dependencies पर Boundaries Set करें

## Dependency Rules
- NEVER install packages with fewer than 1,000 weekly downloads
- NEVER install packages with known CVEs
- Prefer built-in Node.js APIs over third-party packages
- Always check bundle size impact before adding frontend deps

Tip 4: Long Projects के लिए Memory Files Use करें

## Memory
- Track all completed features in .claude/memory/features.md
- Log all architecture decisions in .claude/memory/decisions.md
- Update progress after each session

Tip 5: अपनी CI/CD के साथ Integrate करें

आपकी CLAUDE.md Claude Code को आपकी CI pipeline का सम्मान करने का निर्देश दे सकती है:

## Before pushing any code:
1. Run `pnpm lint` — fix all errors
2. Run `pnpm test` — all tests must pass
3. Run `pnpm build` — build must succeed
4. Check bundle size — must not exceed 250KB

Claude Code की लागत कितनी है? (और Credits कैसे पाएँ)

Claude Code API credits use करता है, जिसका मतलब है आपकी लागत इस पर निर्भर करती है कि आप कौन सा model use करते हैं और कितना context feed करते हैं।

Claude Code Cost Breakdown

ModelInput Cost (per 1M tokens)Output Cost (per 1M tokens)किसके लिए Best
Haiku 4.5$0.80$4.00Quick edits, simple tasks
Sonnet 4.5$3.00$15.00ज़्यादातर coding tasks
Opus 4.6$15.00$75.00Complex architecture, multi-file refactoring

एक typical heavy Claude Code day 500K-2M tokens use करता है, model choice के हिसाब से $2-$30 लागत। एक well-configured CLAUDE.md repeated context खत्म करके token usage कम करती है।

Claude Code के लिए Free Credits पाना

अपने Claude Code usage को fund करने का सबसे अच्छा तरीका credit programs है:

Programउपलब्ध CreditsEligibility
Anthropic Free Tier$5कोई भी
Anthropic Startup Program$1,000 – $25,000Early-stage स्टार्टअप
AWS Activate (Bedrock)$1,000 – $100,000स्टार्टअप
Google Cloud for Startups$2,000 – $100,000स्टार्टअप
Microsoft for Startups$1,000 – $5,000स्टार्टअप

कुल stackable credits: सभी programs में $230,000+ तक।

Anthropic credits | AWS credits | Google Cloud credits | Azure credits

एक CLAUDE.md file plus $5,000-$25,000 स्टार्टअप credits मिलकर आपको zero लागत पर 3-6 महीने intensive Claude Code development देते हैं। आप जिनके लिए qualify करते हैं वे सभी credit programs ClaimAICredits पर browse करें।


Quick Reference: CLAUDE.md Cheat Sheet

आप क्या चाहते हैंकहाँ Configure करेंउदाहरण
Global coding style~/.claude/CLAUDE.mdIndentation, naming conventions
Project architectureProject root CLAUDE.mdTech stack, folder structure
Auto-formatting.claude/settings.json hooksSave पर Prettier
Custom commands.claude/commands/*.md/project:review, /project:test
External tools.claude/settings.json MCP serversPostgres, GitHub, Slack
Tool permissions.claude/settings.jsonSpecific tools allow/deny
Multi-agent setupMultiple CLAUDE.md profilesFrontend agent, backend agent

आज शुरू करें

AI-assisted development के लिए CLAUDE.md file सबसे highest-leverage configuration है जो आप set up कर सकते हैं। इस guide के simple template से शुरू करें, इसे अपने repo में commit करें, और जो आपके workflow के लिए काम करे उसके आधार पर iterate करें।

जो engineers Claude Code से सबसे ज़्यादा value पा रहे हैं वे better prompts नहीं लिख रहे — वे better CLAUDE.md files लिख रहे हैं। Viral 27-agent setup साबित करता है कि thoughtful configuration हर बार brute-force prompting को हरा देती है।

अगर Claude Code की API costs आपको multi-agent workflows जैसे advanced setups experiment करने से रोक रही हैं, ClaimAICredits के ज़रिए available free credit programs explore करें। Anthropic, AWS, और Google Cloud से credits stack करना आपको अपनी CLAUDE.md configuration perfect करने के लिए महीनों का free development time दे सकता है।

Frequently Asked Questions

CLAUDE.md एक Markdown configuration file है जिसे Claude Code automatically पढ़ता है जब आप session शुरू करते हैं। यह project context, coding standards, rules, और instructions set करती है ताकि Claude आपका codebase बिना बार-बार prompting के समझ सके। इसे अपने पूरे development workflow के लिए system prompt समझें।

Project-specific instructions के लिए CLAUDE.md को अपनी project directory की root में रखें। सभी projects पर लागू होने वाली global preferences के लिए, अपनी home directory (~/.claude/CLAUDE.md) में CLAUDE.md file बनाएँ। Claude Code दोनों पढ़ता है — पहले global, फिर project-specific।

CLAUDE.md specifically Claude Code (Anthropic का CLI-based coding tool) के लिए design की गई है, जबकि .cursorrules Cursor IDE के लिए है। CLAUDE.md hooks, slash commands, MCP server configuration, और multi-agent workflows जैसे richer features support करता है जो .cursorrules नहीं करता।

Simple projects के लिए 20-50 lines से शुरू करें। Complex enterprise codebases को architecture, testing standards, deployment rules, और multi-agent configurations cover करते हुए 200-400 lines की ज़रूरत हो सकती है। Instructions को concise और actionable रखें — Claude Code verbose descriptions की बजाय clear, specific rules के साथ बेहतर perform करता है।

हाँ। CLAUDE.md को अपनी Git repository में commit करें ताकि हर team member को same Claude Code behavior मिले। यह पूरी team में consistent code style, testing practices, और architectural decisions ensure करता है। कई teams CLAUDE.md को living document मानती हैं जो codebase के साथ evolve होता है।

CLAUDE.md किसी भी Claude Code plan के साथ काम करती है। हालाँकि, advanced configurations में बताए गए complex multi-agent workflows और heavy usage patterns को significant API credits चाहिए। Anthropic, AWS, और Google Cloud के स्टार्टअप credit programs intensive Claude Code usage को support करने के लिए $1,000 से $150,000+ दे सकते हैं।

Hooks automated actions हैं जो file edits, commits, या command execution जैसे Claude Code events से पहले या बाद में चलते हैं। ये .claude/settings.json में configure होते हैं, CLAUDE.md में directly नहीं। Common hooks में file saves के बाद linters चलाना, code changes के बाद tests execute करना, और commits से पहले code format करना शामिल है।

एक Google engineer viral हुआ था जिसने 27 specialized Claude Code agents वाला setup describe किया, हर एक का अपना CLAUDE.md profile। हर agent एक specific domain handle करता था — frontend, backend, testing, documentation, DevOps — tailored instructions, allowed tools, और coding standards के साथ। Key insight यह थी कि एक general-purpose assistant use करने की बजाय काम को narrow, well-defined agent roles में decompose करना।

हाँ। अपनी project में .claude/commands/ directory में Markdown files बनाएँ। हर file एक slash command बन जाती है। उदाहरण के लिए, .claude/commands/deploy.md /project:deploy command बन जाती है। File content prompt template के रूप में काम करता है, और आप dynamic input के लिए $ARGUMENTS placeholders include कर सकते हैं।

MCP (Model Context Protocol) servers Claude Code की capabilities को databases, APIs, browsers, और file systems जैसे external tools से connect करके extend करते हैं। आप .claude/settings.json में allowed MCP servers configure करते हैं और CLAUDE.md instructions में उनकी capabilities reference करते हैं। यह Claude Code को Postgres, GitHub, Slack, और सैकड़ों अन्य services से directly interact करने देता है।

शेयर करें
ClaimAICreditsClaimAICredits

AI टूल्स पर अपना स्टार्टअप बजट बचाएं

ClaimAICredits AI टूल्स, क्लाउड सेवाओं और APIs पर एक्सक्लूसिव क्रेडिट्स, छूट और डील्स क्यूरेट करता है और एक्सेस प्रदान करता है, ताकि स्टार्टअप्स पैसे बचा सकें।

  • $7.6M+ मूल्य के 217+ वेरिफाइड क्रेडिट्स
  • स्टेप-बाय-स्टेप एप्लीकेशन गाइड्स
  • 24 घंटे में रिस्पॉन्स के साथ प्रायोरिटी सपोर्ट
सभी AI पर्क्स एक्सप्लोर करें
AI credit cards showing OpenAI $2.5K, Anthropic $25K, and more
इस पेज पर
  • CLAUDE.md File क्या है और यह क्यों मायने रखती है
  • CLAUDE.md Repeated Prompting से बेहतर क्यों है
  • Claude Code CLAUDE.md Files को कैसे पढ़ता है
  • File Loading Order
  • क्या कहाँ जाता है
  • Tech Stack
  • Architecture
  • अपनी पहली CLAUDE.md File बनाना
  • Step 1: Claude Code Install करें
  • Step 2: अपनी Project Root में CLAUDE.md बनाएँ
  • Step 3: Basic Configuration जोड़ें
  • Tech Stack
  • Coding Standards
  • Rules
  • Step 4: Claude Code Run करें
  • CLAUDE.md Templates: Starter, Advanced, और Team
  • Template 1: Simple Project (20 Lines)
  • Stack
  • Rules
  • Patterns
  • Template 2: Advanced Full-Stack Project (80+ Lines)
  • Tech Stack
  • Architecture
  • Coding Standards
  • Testing Requirements
  • Git Workflow
  • Security Rules
  • Template 3: Team Configuration (Git के ज़रिए Shared)
  • Overview
  • Code Review Checklist (Claude must follow before suggesting code)
  • Naming Conventions
  • Forbidden Patterns
  • Preferred Libraries (do not suggest alternatives)
  • तुलना: CLAUDE.md vs .cursorrules vs .github/copilot-instructions.md
  • Hooks: अपना Claude Code Workflow Automate करना
  • Hook Configuration Structure
  • सबसे Useful Hook Patterns
  • Practical Hook उदाहरण
  • Custom Slash Commands
  • Slash Commands कैसे बनाएँ
  • Useful Slash Command Ideas
  • MCP Servers: Claude Code की Capabilities को Extend करना
  • MCP Servers कैसे Configure करें
  • Developers के लिए सबसे Popular MCP Servers
  • CLAUDE.md में MCP को Reference करना
  • Available Tools
  • Viral 27-Agent Setup: एक Google Engineer ने 80% काम कैसे Automate किया
  • Core Insight
  • उदाहरण Agent Breakdown
  • इस Setup को कैसे Replicate करें
  • Agent Workflow
  • यह क्यों काम करता है
  • Common CLAUDE.md गलतियाँ (और उन्हें कैसे Fix करें)
  • Mistake 1: बहुत Vague होना
  • Mistake 2: Instructions से Overload करना
  • Mistake 3: CLAUDE.md को Version Control नहीं करना
  • Mistake 4: Security Section को Ignore करना
  • Security (CRITICAL — never ignore)
  • Mistake 5: Tech Stack का ज़िक्र भूल जाना
  • Stack (authoritative — do not infer differently)
  • Claude Code Best Practices: Power User Tips
  • Tip 1: Conditional Instructions Use करें
  • Environment-Specific Rules
  • Tip 2: Output Formats Define करें
  • When I ask for a code review, respond with:
  • Tip 3: Dependencies पर Boundaries Set करें
  • Dependency Rules
  • Tip 4: Long Projects के लिए Memory Files Use करें
  • Memory
  • Tip 5: अपनी CI/CD के साथ Integrate करें
  • Before pushing any code:
  • Claude Code की लागत कितनी है? (और Credits कैसे पाएँ)
  • Claude Code Cost Breakdown
  • Claude Code के लिए Free Credits पाना
  • Quick Reference: CLAUDE.md Cheat Sheet
  • आज शुरू करें
ClaimAICreditsClaimAICredits

AI टूल्स पर अपना फाउंडर बजट बचाएं

AI credit cards
$7.6M+
कुल क्रेडिट
217+
वेरिफाइड पर्क्स
217+ पर्क्स एक्सप्लोर करें

संबंधित लेख

Cursor vs Claude Code vs Codex 2026: Definitive AI Coding Tool तुलना
Comparisons

Cursor vs Claude Code vs Codex 2026: Definitive AI Coding Tool तुलना

2026 के तीन dominant AI coding tools की in-depth तुलना। Cursor, Claude Code, और OpenAI Codex CLI में feature breakdowns, pricing, benchmarks, और real developer experiences।

claude-codecursorcodex
13 अप्रैल 202620 मिनट का पठन
Anthropic vs OpenAI 2026: आपके स्टार्टअप को किस AI कंपनी पर बनाना चाहिए?
Comparisons

Anthropic vs OpenAI 2026: आपके स्टार्टअप को किस AI कंपनी पर बनाना चाहिए?

2026 में स्टार्टअप्स के लिए Anthropic और OpenAI की गहन तुलना। मॉडल्स, प्राइसिंग, क्रेडिट प्रोग्राम, API फीचर्स, एंटरप्राइज़ टूल्स, और दोनों पर बनाने की स्मार्ट रणनीति।

anthropicopenaiclaude-vs-chatgpt
13 अप्रैल 202617 मिनट का पठन
2026 में 10 सबसे अच्छे Claude Code विकल्प: मुफ्त और ओपन सोर्स विकल्प
Comparisons

2026 में 10 सबसे अच्छे Claude Code विकल्प: मुफ्त और ओपन सोर्स विकल्प

2026 में Claude Code के टॉप मुफ्त और ओपन सोर्स विकल्प। Claw Code, OpenCode, Aider, Gemini CLI, Cursor, और अधिक की तुलना करें — प्राइसिंग, फीचर्स, और क्रेडिट कैसे पाएं।

claude-codeai-codingopen-source
13 अप्रैल 202619 मिनट का पठन
ClaimAICreditsClaimAICredits

उन लोगों द्वारा बनाया गया जो स्टार्टअप्स को मुफ़्त क्रेडिट और पर्क्स के साथ अपनी AI जर्नी को मैक्सिमाइज़ करने में मदद करते हैं

टॉप कैटेगरी

  • AI Tool(42)
  • Development Tools(28)
  • Cloud Infrastructure(22)
  • Finance(16)
  • Security(14)
  • Marketing(13)
  • Analytics(12)
  • Collaboration(12)

प्रोडक्ट्स

  • मुफ़्त पर्क्स
  • एफिलिएट प्रोग्राम

रिसोर्सेज़

  • ब्लॉग
  • FAQ
  • सेवा की शर्तें
  • प्राइवेसी पॉलिसी
  • कुकी पॉलिसी
  • रिफंड पॉलिसी

मुफ़्त पर्क्स के लिए सब्सक्राइब करें

संपर्क

LinkedIn

© 2026 ClaimAICredits. सभी अधिकार सुरक्षित।