मुख्य कंटेंट तक स्किप करें

CLAUDE.md स्टार्टर

सभी लेवल

CLAUDE.md वह सबसे अधिक प्रभाव डालने वाली चीज़ है जो आप Claude Code को दे सकते हैं: स्थायी निर्देश जिन्हें वह हर सेशन में पढ़ता है। इनमें से किसी एक को अपने रेपो की जड़ में रखें (या एक शुरुआती बिंदु बनाने के लिए /init चलाएँ), फिर उसे अपनी ज़रूरत के अनुसार छाँटें। हर ब्लॉक पर कॉपी बटन का उपयोग करें।

:::tip इसे छोटा और सच्चा रखें एक ऐसी CLAUDE.md जो लंबी, आकांक्षापूर्ण या पुरानी हो, वह नुकसान पहुँचाती है — Claude इसे अक्षरशः फॉलो करता है। बताएँ कि प्रोजेक्ट वास्तव में कैसे काम करता है, और निर्ममता से छाँटें। विवरण CLAUDE.md पेज पर। :::

यूनिवर्सल स्टार्टर

# Project: <name>

## What this is
<One or two sentences: what the project does and who uses it.>

## Tech stack
- Language/runtime: <e.g. TypeScript, Node 20>
- Framework: <e.g. Next.js 14 App Router>
- Key libraries: <e.g. Prisma, tRPC, Tailwind>

## How to run
- Install: `<cmd>`
- Dev server: `<cmd>`
- Tests: `<cmd>`
- Lint/format: `<cmd>`

## Conventions
- <e.g. Use functional components; no class components.>
- <e.g. Co-locate tests as *.test.ts next to source.>
- <e.g. Conventional Commits for messages.>

## Guardrails
- Run the tests before saying a task is done.
- Don't edit files under `/generated` or `/vendor`.
- Never commit secrets or .env files.

## Good to know
- <Gotchas, non-obvious decisions, links to deeper docs.>

Node / TypeScript वेब ऐप

# Project: <name> (Next.js + TypeScript)

## How to run
- Dev: `npm run dev`
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint` (must pass before commit)

## Conventions
- TypeScript strict; no `any` without a comment justifying it.
- Components in `src/components`, one folder per component.
- Data fetching via tRPC; never call the DB from a client component.
- Styling: Tailwind utility classes; no inline styles.

## Guardrails
- After any change, run `npm run lint && npm test`.
- Keep files under ~300 lines; split when larger.
- Do not modify `prisma/migrations` by hand.

Python सर्विस

# Project: <name> (FastAPI)

## How to run
- Install: `uv sync` (or `pip install -e .`)
- Dev: `uvicorn app.main:app --reload`
- Test: `pytest`
- Lint/format: `ruff check . && ruff format .`

## Conventions
- Type hints everywhere; prefer `pathlib` over `os.path`.
- Pydantic models for all request/response bodies.
- f-strings, not %-formatting.

## Guardrails
- Run `pytest` and `ruff check` before completing a task.
- Fail fast with descriptive errors; no silent excepts.

टिप्स जो इन सभी पर लागू होते हैं

  • इसे परतों में बनाएँ। पूरे प्रोजेक्ट के लिए एक रेपो-रूट CLAUDE.md; क्षेत्र-विशिष्ट नियमों के लिए सबफ़ोल्डर में नेस्टेड CLAUDE.md फ़ाइलें।
  • @imports का उपयोग करें मौजूदा दस्तावेज़ों को डुप्लिकेट करने के बजाय उन्हें खींचने के लिए (देखें CLAUDE.md रेफरेंस)।
  • इसकी मासिक समीक्षा करें। पुराने निर्देश किसी भी निर्देश से बदतर होते हैं।

संबंधित