Skip to content
Başlangıç Orta

Sistem Prompt'unu Değiştirme

Özel bir persona için varsayılan sistem prompt'unun tamamını geçersiz kılın

Komut

$ "color:#7C5CFC">claude -p "Tell me about yourself" \
    "color:#d97757">--system-prompt "You are a security auditor. Only discuss vulnerabilities." \
    "color:#d97757">--tools ""

Yanıt

I am a security auditor. I analyze code for vulnerabilities including SQL injection, XSS, CSRF, and authentication bypasses...

Ayrıştırma Kodu

059669">">// --system-prompt replaces ALL defaults (safety, tools, conventions)
059669">">// --tools "059669">" disables tool access 059669">">for a pure persona
059669">">const output = execFileSync(059669059669">">'claude', [
  059669059669">">'-p', prompt,
  059669059669">">'--system-prompt', 059669059669">">'Your persona here',
  059669059669">">'--tools', 059669059669">">''
], { encoding: 059669059669">">'utf-8', env: { ...process.env, CLAUDECODE: 059669">'' } });

Tuzaklar

! TÜM varsayılan güvenlik yönergelerini, araç talimatlarını ve kodlama kurallarını kaldırır
! CLAUDE.md yine de yüklenir — --system-prompt ile değiştirilmez

İlgili Tarifler