Pattern library

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.

Showing 19 of 19 patterns in category performance
performancecritical
IF

opt_project_standard

THEN

Coklu proje VPS'te /opt/<snake_case>/ standardini kullan: code/, logs/, locks/, .env (chmod 600). /root/ veya /home altinda proje koyma.

vps_deployment · tier 2 · 100% conf
performancecritical
IF

flock_concurrency_protection

THEN

Cron icin flock -n /opt/<project>/locks/<job>.lock zorunlu. Uzun calismakta olan cron tekrar tetiklenince paralel calismayi engeller. -n nonblocking exit 1.

vps_deployment · tier 2 · 100% conf
performancecritical
IF

logrotate_required_before_cron

THEN

/etc/logrotate.d/<project>: daily, rotate 14, compress, size 50M. Log rotation kurulmadan cron yasak disk dolar.

vps_deployment · tier 2 · 100% conf
performancecritical
IF

turkish_ascii_google_maps

THEN

Google Maps Turkce REQUEST_DENIED ASCII transliteration cozum

lead_hunter · tier 2 · 100% conf
performancecritical
IF

context_isolation_per_category

THEN

Main agent only routes. Each sub-agent loads only its category patterns (max 8 in context). No compaction, stable quality.

subagent_architecture · tier 2 · 99% conf
performancecritical
IF

Next.js 16 Turbopack cannot bundle packages doing fs.readdirSync + dynamic require() (e.g. iyzipay)

THEN

Add the package to next.config.ts serverExternalPackages array

payment · tier 1 · 95% conf
performancecritical
IF

subagent_3tier_routing_works

THEN

Keyword (free) + alias (free) + LLM fallback cascade gives 100 percent routing accuracy. 87 percent queries solved free-tier. 0.0007 USD end-to-end.

subagent_architecture · tier 2 · 95% conf
performancecritical
IF

speed_to_lead

THEN

Leadlerin %80i ilk cevap verene gider otomatik yanit kritik

reply_tracker · tier 2 · 95% conf
performancecritical
IF

anomaly_4_check

THEN

bounce_rate daily_limit zero_leads zero_replies kontrolleri

analytics_tracker · tier 2 · 90% conf
performancehigh
IF

Node pg client connecting to Supabase pooler fails with cert chain error

THEN

Pass ssl: { rejectUnauthorized: false } in pg.Client options — Supabase pooler cert chain not in Node default trust store

performance · tier 1 · 100% conf
performancehigh
IF

compose_project_name_override

THEN

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.

vps_deployment · tier 2 · 100% conf
performancehigh
IF

cron_section_header_multi_project

THEN

Coklu proje crontab icin section header gerekli. # PROJECT: <name>, # DIR: /opt/<name>, # LOGS: /opt/<name>/logs/. Hangi cron hangi projeye ait belli olur.

vps_deployment · tier 2 · 100% conf
performancehigh
IF

vtt_pipeline_scaled

THEN

VTT temizleme pipeline 17 video icin sorunsuz calisti. Kategorilere ayrilmis klasor yapisi (transkriptler/personal_assistant/) etkili.

transcript_extractor · tier 2 · 99% conf
performancehigh
IF

react_loop_universal

THEN

Reason -> Act -> Observe dongusu tum modern agent sistemlerin temeli. LangGraph ile uygulamak en pratigi.

ai_agent_systems_synthesis · tier 3 · 99% conf
performancehigh
IF

beta_bernoulli_pattern_confidence

THEN

Counter yerine Beta posterior. 4 success/6 fail = 0.42 (Beta) vs 0.10 (counter)

confidence_framework_synthesis · tier 3 · 99% conf
performancehigh
IF

rag_to_tool_fallback

THEN

Agent bilmiyorsa once vektor DB sor, bulamazsa web search tool tetikle, sonucu DB ye kaydet.

ai_agent_systems_synthesis · tier 3 · 90% conf
performancehigh
IF

index_routing_in_claude_md

THEN

Ana claude.md dosyasi 150 satiri gecmemeli. Icerik klasoru icindekiler gibi kurgulanmali. Token tasarrufu %80.

personal_assistant_synthesis · tier 3 · 90% conf
performancehigh
IF

isotonic_calibration_per_signal

THEN

Her signal icin ayri isotonic regression. Embedding model degisince cutoff degisir

confidence_framework_synthesis · tier 3 · 90% conf
performancemedium
IF

Need to update aggregate stats (rating_avg, total_reviews) on child table changes

THEN

AFTER INSERT/UPDATE/DELETE trigger marked SECURITY DEFINER; compute fresh aggregate and update parent

reviews · tier 1 · 95% conf

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 →