मुख्य कंटेंट तक स्किप करें

प्रॉम्प्ट लाइब्रेरी

प्रॉम्प्ट command identifier वाले पुनः उपयोग योग्य instruction templates हैं। प्रत्येक में slug (/review-pr), title, वैकल्पिक description और tags, content तथा typed variables होते हैं।

Variables

Content में variable का रूप {{name}} है। हर variable का type text, number, select या boolean होता है; वह required हो सकता है और default value रख सकता है। Render करने से पहले composer values एकत्र करता है।

Versions

हर update version बढ़ाकर पिछला revision archive करता है। Rollback पुराने revision को नई version के रूप में restore करके linear history बचाता है।

Sharing, export और import

प्रॉम्प्ट default रूप से private हैं और साझा permission model से share होते हैं। Export libre-prompt.v1 JSON बनाता है; import समान slug को overwrite किए बिना reject करता है। Titles, descriptions, content, variables और tags encrypted रहते हैं; search के लिए slug खुला रहता है।

Profiles

Profile एक prompt से जुड़ सकता है; rendered text हर session में profile system prompt से पहले आता है।

उदाहरण

Settings → Prompts में बनाएँ:

  • Slug: review-pr

  • Title: Pull request review

  • Content:

    Review the following {{language}} changes with {{strictness}} strictness.
    Point out bugs first, style second, and end with a one-line verdict.
  • Variables: language (text, required) और strictness (select: low, normal, pedantic; default normal)।

/ लिखें, /review-pr चुनें, language: TypeScript और pedantic भरें। Rendered text draft को बदल देगा; उसके बाद diff paste करें। अगला edit version 2 बनाएगा और पुराना history में रहेगा।