antrophiclove
← Kütüphaneye dön
0

Refactor prompt'ları

Kod sadeleştirme, tekrarları toplama ve yapı değiştirme istemleri; performansını bozmadan. Anthropic'in resmi istemi kütüphanesinden derlendi.

yazan kuscubasiece·8 Eylül 2026
Kurulum
curl -sL https://www.antrophiclove.com/api/kaynak/refactor-prompt-lari/raw

Bu içerik mevcut dosyaya elle harmanlanmalı: refactor-prompt-lari.md

Kaynak: Anthropic resmi Claude Code prompt kütüphanesi — https://code.claude.com/docs/en/prompt-library

1. migrate everything from {from} to {to}: identify every place that needs to change, then make the changes
   {from} → the old logging API
   {to} → the structured logger

2. port {source} to {target}, keeping the same {keep}
   {source} → this Python module
   {target} → Rust
   {keep} → public API and test behavior

3. optimize {target} to bring {metric} from {current} down to under {goal}
   {target} → the search query
   {metric} → p95 latency
   {current} → 2s
   {goal} → 500ms

4. the {element} extends {amount} beyond the {container} on {viewport}. fix it.
   {element} → login button
   {amount} → 20px
   {container} → card border
   {viewport} → mobile