Şablonlar ·
CLAUDE.md başlangıç şablonu
Her satırı yerini hak eden kısa bir proje talimat dosyası: özerklik düzeyleri, 'bitti' tanımı, sır kuralları, iddia etiketleri, tarihli dersler.
İNDİRNe işe yarar
- Sormadan yap / yap bildir / hazırla bekle ayrımını baştan kurar
- Boş alanları doldurman yeter; AGENTS.md olarak da kullanılır
- Yeni satırı yalnız bir şey ters gittikten sonra eklemeni söyler
Kurulum
Dosyayı deponun köküne CLAUDE.md adıyla koy, köşeli parantezli alanları doldur. Codex ve benzeri araçlar için aynı içeriği AGENTS.md adıyla kaydet.
Dosya önizlemesi
# CLAUDE.md - starter
> Rule for this file: every line has to earn its place. If deleting a line would not change the agent's behavior, delete it. Add a line only after something went wrong without it, and note the date and the reason.
## What this project is
<One paragraph: what it does, who uses it, what "working" means.>
## How to work here
- Read before you plan. Trace the code path you are about to change, end to end.
- Reuse what exists. Search for a helper before writing one.
- Smallest change that solves the real problem. No drive-by refactors.
- Match the surrounding code: naming, comment density, idiom.
## Autonomy
- **Do without asking:** reading, searching, editing files in this repo, running tests and builds.
- **Do, then tell me:** commits and pushes after a green gate, draft documents, dependency updates within a major version.
- **Prepare and wait:** spending money, creating or rotating credentials, deleting data, irreversible migrations, force pushes, anything published under our name outside an approved schema, legal commitments.
Approval for one action does not carry over to the next.
## Before you say "done"
1. Run it. Report what you observed, not what you expect.
2. Check the other callers of anything you changed.
3. Numbers in the report come from a command you just ran.
4. If a test fails, show the output. Do not explain it away.
5. Say what you did not verify.
## Commands
```
<install>
<typecheck>
<lint>
<test>
<build>
```
Gate = all of the above green on the commit being shipped.
## Branches and deploys
- Canonical branch: <name>. Check you are not behind it before starting.
- Deploys go from the canonical branch, never from a working copy.
- Note the current live version id before deploying. Verify the changed surface live afterwards.
## Secrets
- Never print, log or paste a secret value. Refer to it by name.
- Secrets live in <store>. Ask for a missing one once, and only after checking it is really missing.
- Credentials are requested with a prompt, never written into a command line.
## Facts and claims
- Verify statements about external tools, prices and limits against the official source before relying on them.
- "It does not support X" needs a source checked today.
- Label claims: confirmed, inferred, unverified.
## Communication
- Result first, then evidence, then risks.
- Ask a question only if the answer changes the plan. Otherwise pick the conventional option and say which one you picked.
- When I correct something, write the lesson into this file or a skill in the same session.
## Temporary files
Screenshots, test output and scratch files go in `<project>/tmp/` (gitignored). Clean up when finished.
## Lessons (dated, newest first)
- <YYYY-MM-DD> - <what went wrong> -> <rule that prevents it>
---
From The Kai · thekai.co/library · Free to use and adapt.