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 22 of 22 patterns in category quality
qualitycritical
IF

context_file_universal

THEN

claude.md baglam dosyasi 10 videodan 8inde tekrarlandi. AI'a kalici hafiza vermek herkesin uzerinde anlasti tek pattern.

personal_assistant_synthesis · tier 2 · 100% conf
qualitycritical
IF

duplicate_lead_prevention

THEN

DB set kontrolu lower duplikasyon onler

lead_hunter · tier 2 · 100% conf
qualitycritical
IF

wordpress_api_email_discovery

THEN

WordPress REST API wp-json/wp/v2/pages JS sitelerdeki email %22 basari

lead_hunter · tier 2 · 95% conf
qualitycritical
IF

agent_orchestrator_paradigm

THEN

Modern AI agent = LLM + Tools + Memory + Patterns + Self-Improvement. Tek tanri agent yerine taseron takimi (Coordinator + Builder + Reviewer).

ai_agent_systems_synthesis · tier 3 · 95% conf
qualitycritical
IF

calibrated_primitives_over_ad_hoc_scores

THEN

Tutarsiz skorlari kalibre olasiliklara cevir, weighted geometric mean ile fuse et

confidence_framework_synthesis · tier 3 · 95% conf
qualitycritical
IF

wgm_for_soft_and

THEN

Weighted Geometric Mean = soft AND. WAM 0.95/0.95/0.20=0.70 yanlis, WGM=0.46 dogru

confidence_framework_synthesis · tier 3 · 95% conf
qualitycritical
IF

multi_source_scraping

THEN

3 katman HTML+WP API+mailto basari %40 artis

lead_hunter · tier 2 · 90% conf
qualitycritical
IF

ai_sentiment_gemini

THEN

Gemini AI olumlu olumsuz notr siniflandirma keyword fallback

reply_tracker · tier 2 · 90% conf
qualityhigh
IF

Need to track loyalty/credit balance with audit log

THEN

Use a single transactions table with signed amount (earn+, spend-). Balance = SUM. No separate balance column = no sync drift.

loyalty · tier 1 · 100% conf
qualityhigh
IF

Auto-award points when order delivered, must not double-award on repeated UPDATE

THEN

Check (OLD.status IS NULL OR OLD.status <> 'delivered') AND NEW.status = 'delivered' — only first transition

loyalty · tier 1 · 100% conf
qualityhigh
IF

Passing a React/Lucide component reference as prop from Server to Client component

THEN

Pass a string key (icon: 'home') instead; client resolves via a Record<string, Component> map

ui · tier 1 · 100% conf
qualityhigh
IF

iyzico payment fails after order+items INSERT

THEN

Wrap iyzico call in try/catch; on failure, delete the orphan order record before returning error

orders · tier 1 · 100% conf
qualityhigh
IF

Restaurant hours like 08:00-02:00 (closing time < opening time, next-day close)

THEN

If closeMin <= openMin treat as overnight: open if current >= openMin; also check yesterday's overnight window for early-morning hours

restaurants · tier 1 · 100% conf
qualityhigh
IF

crontab_ascii_safe

THEN

Crontab UTF-8 BOM veya em-dash icerirse 'bad minute' hatasi. ASCII karakter (-----) kullan. Append: (crontab -l; cat << 'EOF' ... EOF) | crontab - paterni.

vps_deployment · tier 2 · 100% conf
qualityhigh
IF

category_based_pattern_series

THEN

Pattern numaralama serileri (SP-001, SP-100, SP-200) kategori ayirici olarak iyi calisiyor. Yeni kategori = yeni 100lu seri.

system_growth_tracker · tier 2 · 95% conf
qualityhigh
IF

interview_first_setup

THEN

Bos klasore AI yonelt. Promptu ver: bana sorular sorarak isimi ogren ve claude.md olustur. Asistan kendi kendini insa etsin.

personal_assistant_synthesis · tier 3 · 95% conf
qualityhigh
IF

claude_self_consistency_n3

THEN

Claude logprobs yok. N=3 sample, median + std. std > 0.15 = admin review

confidence_framework_synthesis · tier 3 · 90% conf
qualitymedium
IF

React 19 lint rule 'set-state-in-effect' for reading localStorage/window in useEffect + setState

THEN

Use useSyncExternalStore with subscribe/getSnapshot/getServerSnapshot for external state reads

ui · tier 1 · 100% conf
qualitymedium
IF

CSV export with Turkish characters opens broken in Excel

THEN

Prepend UTF-8 BOM (\uFEFF) to CSV string before Blob creation

reports · tier 1 · 100% conf
qualitymedium
IF

Custom slideUp/slideDown animation on Accordion.Content prevents Radix unmount on close

THEN

Remove height-based keyframe animations; let Radix handle mount/unmount. Animate inner content instead (fadeInUp on child div).

ui · tier 1 · 90% conf
qualitymedium
IF

Opening edit modal for menu item resets existing data

THEN

Preserve existing data on edit; do not re-initialize state when modal opens in edit mode

menu · tier 1 · 85% conf
qualitylow
IF

map() returning <>...</> Fragment — React key warning

THEN

Use <Fragment key={x}> (import from react) instead of shorthand <>

ui · tier 1 · 100% 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 →