173 patterns from real production sites
Every security gap, SEO miss, and performance issue we've learned across the network. Each pattern has a trigger, a proven fix, and a confidence score. Free to browse.
Any endpoint that trusts client-submitted prices or totals
Always fetch menu_items fresh from DB and recompute unit_price + options + subtotal server-side; never trust client total
cron_silent_failure_detection
Cron jobs failed silently for 8 days — no alert mechanism existed.
shared_vps_project_isolation
On shared VPS, site_1 accidentally modifying other projects' crons/env breaks customer sites.
Task Scheduler argüman eksikliği 4 gün sessiz fail
Wiki Publisher task'ında 'Arguments: ""' boş — script path yoktu. Python'a sadece --count 100 veriyordu. 16→20 Nisan hiç soru üretmedi. Düzeltme: 'scripts\\wiki_content_publisher.py --count 100'.
context_file_universal
claude.md baglam dosyasi 10 videodan 8inde tekrarlandi. AI'a kalici hafiza vermek herkesin uzerinde anlasti tek pattern.
system_over_prompts
10 Personal Assistant videosunun 8inde ayni mesaj: prompt yazma sistem kur. claude.md ile kalici hafiza ver.
pre_send_3_layer_validation
Format+15 blacklist+MX DNS gondermeden once kontrol
imap_bounce_cleanup
IMAP mailer-daemon bounce bul DB temizle mail sil
result_not_feature_selling
Sonuc sat ozellik degil rakamlar kullan tasarim surecinizi %80 kisaltin
email_warmup_kademeli
Kademeli artis 10-25-40-50 Gmail ban koruma
spf_dkim_dmarc_setup
SPF+DKIM+DMARC 2.7x inbox orani
bounce_3_layer
Format+blacklist+MX 3 katman validation
ufw_docker_conflict
Contabo VPS'te UFW Docker iptables ile cakisir. UFW DROP kurali docker-proxy trafigini bloke eder host'tan curl 127.0.0.1:PORT timeout. Cozum: ufw --force disable. SSH 22 disinda public port yok zaten.
opt_project_standard
Coklu proje VPS'te /opt/<snake_case>/ standardini kullan: code/, logs/, locks/, .env (chmod 600). /root/ veya /home altinda proje koyma.
flock_concurrency_protection
Cron icin flock -n /opt/<project>/locks/<job>.lock zorunlu. Uzun calismakta olan cron tekrar tetiklenince paralel calismayi engeller. -n nonblocking exit 1.
logrotate_required_before_cron
/etc/logrotate.d/<project>: daily, rotate 14, compress, size 50M. Log rotation kurulmadan cron yasak disk dolar.
ufw_smtp_imap_outgoing
UFW default deny outgoing 587 (SMTP) ve 993 (IMAP) kapali => Gmail email gonderim ve bounce kontrol calismaz. ufw allow out 587/tcp, ufw allow out 993/tcp. Veya UFW disable.
turkish_ascii_google_maps
Google Maps Turkce REQUEST_DENIED ASCII transliteration cozum
duplicate_lead_prevention
DB set kontrolu lower duplikasyon onler
context_isolation_per_category
Main agent only routes. Each sub-agent loads only its category patterns (max 8 in context). No compaction, stable quality.
Next.js 16 Turbopack cannot bundle packages doing fs.readdirSync + dynamic require() (e.g. iyzipay)
Add the package to next.config.ts serverExternalPackages array
DB connection pool exhaustion cascade
Gemini 503 → yanıt 65s timeout → ardışık request'ler birikir → asyncpg ConnectionDoesNotExistError → backend donuyor. Çözüm: Render API ile manuel restart + fallback zinciri.
subagent_3tier_routing_works
Keyword (free) + alias (free) + LLM fallback cascade gives 100 percent routing accuracy. 87 percent queries solved free-tier. 0.0007 USD end-to-end.
short_email_80_words
Max 80 kelime 4 paragraf %64 acilma subject line
wordpress_api_email_discovery
WordPress REST API wp-json/wp/v2/pages JS sitelerdeki email %22 basari
speed_to_lead
Leadlerin %80i ilk cevap verene gider otomatik yanit kritik
agent_orchestrator_paradigm
Modern AI agent = LLM + Tools + Memory + Patterns + Self-Improvement. Tek tanri agent yerine taseron takimi (Coordinator + Builder + Reviewer).
sandbox_isolation_critical
Otonom agent ana sistemi bozmasin. Docker veya Git Worktree ile izole et.
calibrated_primitives_over_ad_hoc_scores
Tutarsiz skorlari kalibre olasiliklara cevir, weighted geometric mean ile fuse et
wgm_for_soft_and
Weighted Geometric Mean = soft AND. WAM 0.95/0.95/0.20=0.70 yanlis, WGM=0.46 dogru
multi_source_scraping
3 katman HTML+WP API+mailto basari %40 artis
anomaly_4_check
bounce_rate daily_limit zero_leads zero_replies kontrolleri
ai_sentiment_gemini
Gemini AI olumlu olumsuz notr siniflandirma keyword fallback
pathname.startsWith('/restoran') incorrectly protects /restoran-basvuru public page
Use (pathname === '/restoran' || pathname.startsWith('/restoran/')) with explicit trailing slash
Admin might accidentally delete own account or demote own role
In every admin mutation, compare target_user_id with current auth.uid(); reject if equal
Need to track loyalty/credit balance with audit log
Use a single transactions table with signed amount (earn+, spend-). Balance = SUM. No separate balance column = no sync drift.
Auto-award points when order delivered, must not double-award on repeated UPDATE
Check (OLD.status IS NULL OR OLD.status <> 'delivered') AND NEW.status = 'delivered' — only first transition
Concurrent spends could allow overdraft
SELECT SUM(amount) FOR UPDATE before inserting the negative spend row
Passing a React/Lucide component reference as prop from Server to Client component
Pass a string key (icon: 'home') instead; client resolves via a Record<string, Component> map
Concurrent order creations with same coupon code — race condition on used_count
Use SECURITY DEFINER plpgsql function with FOR UPDATE lock to atomically validate+increment
iyzico payment fails after order+items INSERT
Wrap iyzico call in try/catch; on failure, delete the orphan order record before returning error
Restaurant hours like 08:00-02:00 (closing time < opening time, next-day close)
If closeMin <= openMin treat as overnight: open if current >= openMin; also check yesterday's overnight window for early-morning hours
Node pg client connecting to Supabase pooler fails with cert chain error
Pass ssl: { rejectUnauthorized: false } in pg.Client options — Supabase pooler cert chain not in Node default trust store
flock_plus_logrotate_standard_per_cron
Without flock: parallel run causes DB lock + OOM. Without logrotate: disk fills.
compose_project_name_override
Docker compose dizin adini container prefix yapar. /opt/site_1/code dizininden compose => code-backend-1. .env'e COMPOSE_PROJECT_NAME=site_2 ekle => site_3-backend-1.
cron_section_header_multi_project
Coklu proje crontab icin section header gerekli. # PROJECT: <name>, # DIR: /opt/<name>, # LOGS: /opt/<name>/logs/. Hangi cron hangi projeye ait belli olur.
crontab_ascii_safe
Crontab UTF-8 BOM veya em-dash icerirse 'bad minute' hatasi. ASCII karakter (-----) kullan. Append: (crontab -l; cat << 'EOF' ... EOF) | crontab - paterni.
vtt_pipeline_scaled
VTT temizleme pipeline 17 video icin sorunsuz calisti. Kategorilere ayrilmis klasor yapisi (transkriptler/personal_assistant/) etkili.
react_loop_universal
Reason -> Act -> Observe dongusu tum modern agent sistemlerin temeli. LangGraph ile uygulamak en pratigi.
beta_bernoulli_pattern_confidence
Counter yerine Beta posterior. 4 success/6 fail = 0.42 (Beta) vs 0.10 (counter)
supabase.auth.signOut() in server action after signInWithPassword verification
Use signOut({scope: 'local'}) OR use a separate verifier client with persistSession:false and skip signOut entirely
signInWithPassword verification inside server action disrupts main session cookies
Use separate anon client with {persistSession:false, autoRefreshToken:false} for password verification, then call updateUser on the main SSR client
alert_email_cooldown_per_key
Every-trigger mail creates spam and drowns real signal.
master_synthesis_pattern
10 raporu tek prompt ile birlestirip sentez raporu yazdirmak guclu. 121K karakter input -> 4K output -> /usr/bin/bash.13. Cross-video pattern detection mukemmel calisti.
category_based_pattern_series
Pattern numaralama serileri (SP-001, SP-100, SP-200) kategori ayirici olarak iyi calisiyor. Yeni kategori = yeni 100lu seri.
prompt_engineering_roi
Gemini promptuna zorunlu arac tablosu, pattern numaralama ve vaka calismasi bolumu eklendi. Output %41 artti, maliyet sadece +0.006 dolar/video.
interview_first_setup
Bos klasore AI yonelt. Promptu ver: bana sorular sorarak isimi ogren ve claude.md olustur. Asistan kendi kendini insa etsin.
maturity_ladder_hand_to_xgboost
Stage 1: hand-set WGM. Stage 2: logistic regression (>=500). Stage 3: XGBoost (>=5K)
print-isolation-via-display-none
visibility:hidden preserves layout → blank PDF pages; display:none toggle + restore via afterprint produces clean multi-page output
3_platform_calendar
LinkedIn 3 + blog 1 + video 1 haftalik takvim
spintax_spam_avoidance
Selam kapanis imza varyasyonu spam filtre koruma
html_card_template
Kart logo buton imza profesyonel
rag_to_tool_fallback
Agent bilmiyorsa once vektor DB sor, bulamazsa web search tool tetikle, sonucu DB ye kaydet.
index_routing_in_claude_md
Ana claude.md dosyasi 150 satiri gecmemeli. Icerik klasoru icindekiler gibi kurgulanmali. Token tasarrufu %80.
TP-100: Proxy Prompting (AI ile AI Egitmek)
| Why: AI digerinin nasil dusundugunu daha iyi bilir, daha iyi prompt yazar | Example:
TP-101: Yappers API (Sohbetle Loglama)
| Why: Kod yazmayi bilmiyorsan API bağlama; sadece sohbet et | Example:
TP-201: Niyet Yonlendirmesi (Intent Routing)
| Why: Token tasarrufu + ozellesmis cevap kalitesi | Example:
TP-203: Guvenli Kutu (Sandbox Isolation)
| Why: Otonom agent'lar zarar veremesin | Example:
AP-001: "Herkese Hizmet Veririm"
Tum sektorlere AI hizmeti vermeye calismak | Why: Tek nis sec, derinles, mikro tekel ol | Example:
AP-002: "Once Teknoloji, Sonra Musteri"
Aylarca sistem gelistirip sonra musteri aramak | Why: Once musteri bul, sonra ihtiyacina gore kur | Example:
AP-003: "AI Her Seyi Yapar, Insana Gerek Yok"
Satis surecini tamamen AI'ya birakmak | Why: AI mekanik isi yapar, empati/vizyon/ozen insan isidir. "Insan VE makine" modeli | Example:
AP-004: "Kucuk Otomasyonlar Satarim"
n8n/Make.com ile basit workflow'lar kurarak "AI is" diye satmak | Why: Entegre, kapsamli, sonuc odakli sistemler kur. Basit otomasyon icin kimse $4K odemez | Example:
AP-005: "Her Yeni AI Aracini Denemem Lazim"
Her hafta yeni araclari kovalamak (Shiny Object Syndrome) | Why: Bir sistem sec, ustaslas, gercek deger uret | Example:
AP-006: "Nitelendirmeden Herkesl Ararım"
Gelen her lead'i satis ekibine yonlendirmek | Why: Once AI ile nitelendir, sadece ciddi olanlari satis ekibine gonder | Example: Revio CEO'su %90 bosa giden vakit, nitelendirmeyle %95'ini geri kazandi
AP-007: "Teklifi E-postayla Gonderirim"
Musterinin "teklif gonderin" talebine boyun egmek | Why: "Tabii ama once birlikte gozden gecirelim" diyerek canli gorusme ayarla | Example:
AP-008: Ana Domain'den Soguk E-posta Gondermek
Ana is domain'inden (ornegin affluent.co) soguk e-posta gondermek | Why: Ayri domain'ler satin al, onlari warm-up et, ana domain'ini koru | Example:
AP-009: Tek Enrichment Saglayicisina Guvanmek
Sadece bir veri saglayicisini kullanmak | Why: Waterfall enrichment kur — birden fazla saglayici sirala (21K vs 52K lead) | Example:
AP-010: Buyuk Hacimde VA Kullanmak
3.000 e-posta/gun hacminde VA'larla yanit yonetmek | Why: AI appointment setter kur — saniyeler icinde yanit, 7/24, tembellesmiyor | Example:
AP-011: AI'ya Baglam Vermeden E-posta Yazdirmak
AI'ya "soguk e-posta yaz" demek, baska hicbir sey vermemek | Why: Lead verisi + vaka calismasi + AIDA framework ver — baglamdir her sey | Example:
AP-012: Hemen Deploy Etmeye Calismak
Ilk gun local platform veya Vercel deploy yapmaya atlamak | Why: Once VS Code'da konusarak basla, iyice test et, sonra ilerle | Example:
AP-013: Ekibin Yokken Deploy Etmek
Sadece sen kullaniyorken deploy edilmis urun kurmak | Why: "Bu bir gosteris sistemidir." Deploy sadece ekip gerektiginde | Example:
AP-014: Baglam Dosyasini Baskasina Yazdirmak
Kisisel baglam dosyasini bir baskasina veya AI'ya sifirdan yazdirmak | Why: Kurucu KENDISI yazmali, yoksa sistem baskasi gibi dusunur | Example:
AP-015: Sistem Kurmayi Gelir Ureten Aktivite Sanmak
Gunlerce sistem kurup musteri aramak yerine "calisiyor" hissetmek | Why: "Cogunuz icin en onemli sey: musteri nasil bulurum? Zamaniniz ORAYA gitmeli" | Example:
AP-016: Dev Agent.md Dosyalari Yazmak
1.000+ satirlik agent.md dosyasi olusturmak | Why: Skill'lere tasi (progressive disclosure). %95'inin agent.md'ye ihtiyaci yok | Example:
AP-017: Baskasindan Skill Indirmek
Marketplace'den veya baskasinin repo'sundan skill yuklemek | Why: Kendi is akisinla ajanla birlikte kur — "ajanin senin basarili calisma baglamina ihtiyaci var" | Example:
AP-018: Hemen 15 Ajan + 30 Skill Kurmaya Kalkmak
Daha kendi is akislarini bile kurmadan coklu ajan sistemi olusturmak | Why: TEK ajanla basla, skill'lerini kur, sonra gerektiginde ekle | Example:
AP-019: Modele Zaten Bildigi Seyleri Soylemek
"React kullan", "TypeScript kullan" gibi talimatlar vermek | Why: Model kodu goruyor, tech stack'i biliyor. Sadece SANA OZGU bilgiyi ver | Example:
AP-020: Otonom Ajana Sohbet Gibi Kisa Komut Vermek
Arka planda calisan otomasyona "maili oku cevap yaz" gibi belirsiz komut vermek | Why: SOP gibi detayli, adim adim, kesin talimat yaz — takildiginda sana soramaz | Example:
AP-021: Tum Otomasyonlari Koru Korune AI'ya Tasimak
Her n8n/Make is akisini Claude Routines'e tasimak | Why: AI token harcamasi klasik compute'dan pahalidir. Sadece zeka gerektiren karmasik isleri tasi, basit veri tasimayi eski sistemde birak | Example:
AP-022: Claude.md'ye Tum API Dokumanini Kopyalamak
API dokumaninin tamamini Claude.md'ye yapistirmak | Why: Sadece kullanacagin endpoint'leri sorup kucuk ozeti ekle. Her sohbette bastan okunur, token bitirir | Example:
AP-023: MCP Server'larini Surekli Acik Tutmak
Hazir ClickUp, Github vb. MCP araclari surekli aktif tutmak (20K+ token yer) | Why: MCP ile test et, ise yararsa hafif bir Skill (.md) dosyasina cevir | Example:
AP-024: Agent Teams'i Kontrolsuz Birakmak
Ajan takimlarini basibos birakmak — yanlis dongude saatlerce yuzlerce dolar yakabilir | Why: Ucuz model (Sonnet) kullan, yakindan takip et, sacmalayinca "tum ajanlari durdur" | Example:
AP-025: AI Yapimi Odeme Uygulamasini Direkt Yayinlamak
AI'in kodladigi odeme alan uygulamayi kontrol ettirmeden canilya almak | Why: AI ile yap ama yayina almadan once bir insana (guvenlik uzmani) kontrol ettir. Prompt injection riski | Example:
AP-100: Amnezi (Unutkan) Ise Alimi
Asistani klasore sokup hemen "hadi calis" demek | Why: Mutlaka "Bana sorular sorarak sirketimi ve beni tani, bunlari klasore kaydet" diyerek zorunlu mulakat yap | Example:
AP-101: Bozuk Sureci Otomatize Etmek
Manuelken bile duzgun isleyemeyen kaotik sureci AI'a vermek | Why: Once 1 hafta manuel mukemmellesir, sonra AI'a devret. Kaosu otomatize edersen kotu sonucu hizlandirirsin | Example:
AP-102: Her Is Icin Opus Kullanmak
Basit e-posta okuma icin en pahali model (Opus) kullanmak | Why: Stratejik isler Opus, mekanik isler Haiku/Sonnet. Akilli model seciminin maliyeti 10x dusurur | Example:
AP-103: Notion Boy Sendromu
Surekli sik Notion tablolari, Zapier entegrasyonlari kurmaya calismak | Why: Sistemin bakimiyla ugrasmaktan asil isi kacirma. Duz klasorlerde .md dosyalari en hizlisi | Example:
AP-104: API Sifresi Duz Metin
API anahtarlarini claude.md veya kodda duz metne yazmak | Why: .env dosyasinda gizle, .gitignore'a ekle, AI'a "asla goruntuleme" kurali ver | Example:
AP-105: Kritik Islemde Otomatik Onay
AI'a sinirsiz yetki vermek (e-posta gonder, dosya sil, para harca) | Why: Kritik islerde her zaman manuel onay (Allow Once) iste — Email, Para, Silme | Example:
AP-200: Tek Hamle Yanilgisi (One-Shot Delusion)
"Enter"a basip kusursuz is cikmasini beklemek | Why: Dairesel Chain-of-Thought + Self-Reflection sart. Iterasyon kabul et | Example:
Want these patterns applied to your site?
Connect your site and get personalized rules ranked for your tech stack and site type.
Scan your site free →