Tips & Tricks (अपडेट किया गया: 27/5/2026)

Claude Code के लिए CLAUDE.md स्टार्टर टेम्पलेट

यह CLAUDE.md स्टार्टर टेम्पलेट Claude Code को सुरक्षित कमांड, स्पष्ट गार्डरेल और बेहतर वर्कफ़्लो देता है।

Claude Code के लिए CLAUDE.md स्टार्टर टेम्पलेट

कमजोर CLAUDE.md हर session को फिर से शुरू करवाता है

अगर आपको Claude Code को बार-बार वही project rules बताने पड़ते हैं, तो समस्या सिर्फ prompt की नहीं है। project को एक छोटा operating file चाहिए जिसमें commands, guardrails, risky paths और done criteria लिखे हों।

यह template existing codebase के लिए है और First Task Runbook के साथ अच्छा काम करता है।

starter template में क्या होना चाहिए

लंबा policy document जरूरी नहीं है। पहले stack, commands, risky paths, output preference और definition of done लिखें।

# CLAUDE.md

## Project snapshot
- stack: Astro + TypeScript
- package manager: npm
- main app: site/

## Commands
- dev: cd site && npm.cmd run dev
- build: cd site && npm.cmd run build

## Guardrails
- do not touch: .env, dist, generated exports
- ask before: destructive git commands, production deploys, secret rotation

## Definition of done
- code change is applied
- verification command has run
- remaining risks are stated

इतना छोटा file भी अगली Claude Code session को ज्यादा स्थिर बना देता है।

content site का उदाहरण

Astro multilingual site में same slug, pubDate, updatedDate, heroImage, live h1, canonical, body language और CTA links verify करने की rule जोड़ें।

सबसे आम गलती है: सभी language files मौजूद हैं, लेकिन non-English page का body English में रह जाता है। सिर्फ frontmatter सही होना काफी नहीं है।

rules कब बढ़ाएँ

CLAUDE.md जितना लंबा हो उतना अच्छा नहीं होता। जब वही गलती दोहराई जाए, तभी एक rule जोड़ें: build confusion हो तो command, locale drift हो तो multilingual rule, shallow review हो तो review standard।

अगला कदम

Commands याद रखने के लिए free cheatsheet लें। permissions, hooks, MCP या CLAUDE.md bottleneck हो तो Setup Guide लें। team rules के लिए consultation page देखें।

#claude-code #claude-md #template #workflow #setup #existing codebase
मुफ़्त

मुफ़्त PDF: 5 मिनट में Claude Code चीटशीट

बस अपना ईमेल दर्ज करें और हम तुरंत A4 एक-पृष्ठ चीटशीट PDF भेज देंगे।

हम आपकी व्यक्तिगत जानकारी की सुरक्षा करते हैं और स्पैम नहीं भेजते।

Masa

लेखक के बारे में

Masa

Claude Code का गहराई से उपयोग करने वाले इंजीनियर। claudecode-lab.com चलाते हैं, जो 10 भाषाओं में 2,000 से अधिक पेजों वाला टेक मीडिया है।