skills/cesareth/turkce-kod/SKILL.md
Türkçe yazılım projeleri için kod dokümantasyonu, yorum satırları, README ve commit mesajları yazma rehberi. Teknik terimlerin Türkçe karşılıkları ve Türk geliştirici topluluğu standartları.
npx skillsauth add aiskillstore/marketplace turkce-kodInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Bu skill, Türkçe yazılım projelerinde tutarlı, okunabilir ve profesyonel dokümantasyon yazmanı sağlar.
# Kullanıcı oturumunu doğrula ve yetki seviyesini belirle.
def oturum_dogrula(kullanici_id: int) -> dict:
"""
Verilen kullanıcı kimliğine göre oturum bilgilerini döndürür.
Args:
kullanici_id: Veritabanındaki benzersiz kullanıcı numarası.
Returns:
Kullanıcı bilgisi ve yetki seviyesini içeren sözlük.
Raises:
KullaniciBulunamadi: Kullanıcı veritabanında yoksa.
"""
...
/**
* Sepetteki ürünlerin toplam fiyatını hesaplar.
* KDV dahil tutar için `kdvDahilFiyat()` fonksiyonunu kullan.
*
* @param urunler - Fiyat bilgisi içeren ürün dizisi
* @returns Toplam fiyat (kuruş cinsinden, virgülsüz tam sayı)
*/
function toplamFiyatHesapla(urunler: Urun[]): number {
// Boş sepet kontrolü — backend doğrulamasına güvenmiyoruz.
if (urunler.length === 0) return 0;
return urunler.reduce((toplam, urun) => toplam + urun.fiyat, 0);
}
// SiparisOlustur yeni bir sipariş kaydı oluşturur ve veritabanına ekler.
// Stok kontrolü bu fonksiyon içinde yapılmaz; çağırmadan önce StokKontrol() çalıştır.
func SiparisOlustur(ctx context.Context, istek SiparisIstegi) (*Siparis, error) {
...
}
musteri, siparis, fatura.request, response, callback, index.| İngilizce (kaçın) | Türkçe (tercih) |
|-------------------|-----------------|
| user | kullanici |
| order | siparis |
| invoice | fatura |
| product | urun |
| cart | sepet |
| address | adres |
| payment | odeme |
| employee | calisan |
| company | sirket |
| report | rapor |
Dil destekleyen ortamlarda (Python 3, modern JS/TS) Türkçe karakter kullanılabilir:
müşteri_adı = "Ali" # Geçerli Python 3
ürün_listesi = [] # Geçerli Python 3
Ancak terminal uyumsuzluğu riski nedeniyle ASCII karşılıklarını tercih et:
musteri_adi = "Ali" # Daha güvenli
urun_listesi = [] # Daha güvenli
<tür>: <kısa açıklama> (max 72 karakter)
<detay — opsiyonel, neden değiştirildi>
Refs: #123
| Etiket | Kullanım |
|--------|----------|
| ekle | Yeni özellik |
| düzelt | Hata giderme |
| güncelle | Mevcut özellik iyileştirme |
| sil | Kod/dosya silme |
| yeniden-düzenle | Davranış değiştirmeden kod temizliği |
| test | Test ekleme/güncelleme |
| belge | Sadece dokümantasyon |
| yapılandır | Config/CI değişikliği |
ekle: kullanıcı profil fotoğrafı yükleme özelliği
Cloudinary entegrasyonu ile resim yükleme ve boyutlandırma eklendi.
5MB sınırı ve JPEG/PNG/WebP formatı destekleniyor.
Refs: #87
düzelt: boş sepette toplam fiyat hesabı sıfır gösterilmiyor
yeniden-düzenle: fatura modülünü servis katmanına taşı
# Proje Adı
Projenin ne yaptığını tek cümlede açıkla.
## Kurulum
\```bash
pip install proje-adi
# veya
npm install proje-adi
\```
## Hızlı Başlangıç
\```python
from proje import AnaModul
modul = AnaModul(api_anahtari="...")
sonuc = modul.calistir()
print(sonuc)
\```
## Özellikler
- **Özellik 1:** Açıklama
- **Özellik 2:** Açıklama
## Yapılandırma
| Parametre | Tür | Varsayılan | Açıklama |
|-----------|-----|-----------|----------|
| `api_anahtari` | `str` | — | Zorunlu |
| `zaman_asimi` | `int` | `30` | Saniye cinsinden |
## Katkı Sağlama
1. Fork oluştur
2. Özellik dalı aç: `git checkout -b ozellik/yeni-ozellik`
3. Değişikliklerini commit et: `ekle: yeni özellik açıklaması`
4. Pull Request aç
## Lisans
MIT — Ayrıntılar için [LICENSE](LICENSE) dosyasına bakın.
# Kötü — İngilizce hata, Türkçe projede tutarsız
raise ValueError("User not found")
# İyi — Türkçe ve açıklayıcı
raise KullaniciBulunamadi(f"'{kullanici_id}' numaralı kullanıcı sistemde kayıtlı değil.")
import logging
logger = logging.getLogger(__name__)
logger.debug("Oturum doğrulama başlatıldı. kullanici_id=%s", kullanici_id)
logger.info("Sipariş oluşturuldu. siparis_no=%s tutar=%s", siparis.no, siparis.tutar)
logger.warning("Stok azalıyor. urun_id=%s kalan=%d", urun.id, urun.stok)
logger.error("Ödeme işlemi başarısız. hata=%s", str(hata))
Tam liste için references/teknik-terimler.md dosyasına bakın.
| İngilizce | Türkçe Karşılık | |-----------|----------------| | Authentication | Kimlik doğrulama | | Authorization | Yetkilendirme | | Deployment | Dağıtım / Kurulum | | Refactoring | Yeniden düzenleme | | Repository | Depo | | Pull Request | Birleştirme isteği | | Branch | Dal | | Merge | Birleştirme | | Dependency | Bağımlılık | | Middleware | Ara katman | | Cache | Önbellek | | Thread | İş parçacığı | | Callback | Geri çağırım | | Instance | Örnek / Nesne | | Endpoint | Uç nokta |
Kodu göndermeden önce:
<tür>: <açıklama> formatındadevelopment
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.