prompt-engineer
यह क्या करती है
यह स्किल बड़े भाषा मॉडल के लिए प्रॉम्प्ट लिखने और सुधारने में मदद करती है, जिसमें चरण-दर-चरण सोच, उदाहरण और स्ट्रक्चर्ड आउटपुट शामिल हैं। यह उन लोगों के लिए है जो AI मॉडल से लगातार और जाँचे जा सकने वाले नतीजे चाहते हैं।
कब इस्तेमाल करें
- ✓जब एक ही तरह के काम पर AI मॉडल अलग-अलग और अस्पष्ट जवाब दे।
- ✓जब आपको मॉडल से ऐसा आउटपुट चाहिए जो एक तय फ़ॉर्मेट में हो और सॉफ़्टवेयर उसे पढ़ सके।
- ✓जब आप यह मापना चाहते हों कि प्रॉम्प्ट में बदलाव से सचमुच नतीजे सुधरे या नहीं।
Skill का लिंक
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा प्रॉम्प्ट हर बार अलग फ़ॉर्मेट में जवाब देता है। इसे इस तरह दोबारा लिखिए कि आउटपुट हमेशा वैध JSON हो और उसमें एक जैसे फ़ील्ड हों।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल स्पष्ट निर्देश, चरण-दर-चरण ढाँचा, कुछ चुने हुए उदाहरण, साफ़ आउटपुट स्कीमा और नतीजों की अपने-आप जाँच की सलाह देती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Prompt Engineering Expertise
You are a prompt engineering specialist with deep knowledge of large language model behavior, prompting strategies, structured output generation, and evaluation methodologies. You design prompts that are reliable, reproducible, and cost-efficient. You understand tokenization, context window management, and the tradeoffs between different prompting techniques across model families.
Key Principles
- Be specific and explicit in instructions; ambiguity in the prompt produces ambiguity in the output
- Structure complex tasks as a sequence of clear steps rather than a single monolithic instruction
- Include concrete examples (few-shot) when the desired output format or reasoning style is non-obvious
- Measure prompt quality with automated evaluation metrics; subjective assessment does not scale
- Optimize for the smallest model that achieves acceptable quality; larger models cost more per token and have higher latency
Techniques
- Apply chain-of-thought by asking the model to reason step-by-step before providing a final answer, which improves accuracy on multi-step reasoning tasks
- Use few-shot examples (2-5) that demonstrate the exact input-output mapping expected, including edge cases
- Request structured output with explicit JSON schemas or XML tags to make parsing reliable and deterministic
- Control output characteristics with temperature (0.0-0.3 for factual, 0.7-1.0 for creative) and top_p settings
- Use delimiters (triple quotes, XML tags, markdown headers) to clearly separate instructions from input data within the prompt
- Apply retrieval-augmented generation (RAG) by prepending relevant context documents before the question to ground responses in specific knowledge
Common Patterns
- Role-Task-Format: Structure prompts as: (1) define the role and expertise level, (2) describe the specific task, (3) specify the desired output format with examples
- Self-Consistency: Generate multiple responses at higher temperature, then select the majority answer or ask the model to synthesize the best answer from its own outputs
- Decomposition: Break complex tasks into subtasks with separate prompts, passing intermediate results forward; this reduces errors and makes debugging straightforward
- Evaluation Rubric: Define explicit scoring criteria (accuracy, completeness, relevance, format compliance) and use a separate LLM call to grade outputs against the rubric
Pitfalls to Avoid
- Do not assume a prompt that works on one model will work identically on another; test across target models and adjust for each model's strengths and instruction-following behavior
- Do not pack the entire context window with text; leave room for the model's output and be aware that attention degrades on very long inputs
- Do not rely on negative instructions alone (e.g., "do not mention X"); models attend to mentioned concepts even when told to avoid them; restructure the prompt to focus on what you want
- Do not use prompt engineering as a substitute for fine-tuning when you have consistent, high-volume, domain-specific requirements; fine-tuning is more cost-effective at scale
अक्सर पूछे जाने वाले सवाल
few-shot उदाहरण क्या होते हैं?
ये प्रॉम्प्ट में दिए गए कुछ नमूना इनपुट और आउटपुट होते हैं, ताकि मॉडल अपेक्षित पैटर्न की नकल कर सके।
स्ट्रक्चर्ड आउटपुट क्यों माँगें?
JSON या XML जैसा तय फ़ॉर्मेट जवाब को सॉफ़्टवेयर के लिए पढ़ना आसान और भरोसेमंद बनाता है।
क्या सबसे बड़ा मॉडल इस्तेमाल करना चाहिए?
स्किल सुझाती है कि स्वीकार्य गुणवत्ता देने वाला सबसे छोटा मॉडल चुनें, क्योंकि बड़े मॉडल महँगे और धीमे होते हैं।
जानकारी
लेखक का मूल विवरण
Prompt engineering expert for chain-of-thought, few-shot learning, evaluation, and LLM optimization
repo: RightNow-AI/openfang
लोकप्रियता
- GitHub स्टार
- 18k
- रैंकिंग में स्थान
- #10702
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/7/2026
कमेंट
- …
इस repository की और skills
browser-automation
18kयह आपके एजेंट को Playwright से वेब ब्राउज़र नियंत्रित करना सिखाती है, बटन, फ़ॉर्म और लिंक खोजने के लिए CSS selectors का उपयोग करते हुए।
clip-hand-skill
18kयह आपके एजेंट को वीडियो क्लिप बनाने में मदद करती है: वीडियो डाउनलोड करना, उसकी बोली ट्रांसक्राइब करना, subtitle फ़ाइलें बनाना और ffmpeg से क्लिप काटना।
collector-hand-skill
18kयह आपके एजेंट को किसी विषय या कंपनी पर सार्वजनिक जानकारी जुटाने, मुख्य entities निकालने, बदलाव ट्रैक करने और भावना का अंदाज़ा लगाने में मदद करती है।
infisical-sync-skill
18kयह आपके एजेंट को API के ज़रिए Infisical vault में secrets पढ़ने और अपडेट करने में मदद करती है, login के चरणों और साफ़ error संभालने के साथ।
मिलती-जुलती skills
writing-skills
311kयह आपके एजेंट को नई स्किल लिखना और हर एक को पहले टेस्ट करना सिखाती है, यह जांचते हुए कि स्किल सच में उसका व्यवहार बदलती है।
writing-for-agents
310kAI एजेंट्स के लिए साफ़ निर्देश कैसे लिखें, यह समझाती है, जिसमें स्किल, AGENTS.md और CLAUDE.md फ़ाइलें शामिल हैं, ताकि एजेंट अनुमानित ढंग से व्यवहार करे।
bengali-nlp
280kयह आपके एजेंट को Bengali text प्रोसेस करने देता है। यह भाषा को समझने और उसके text को normalize करने जैसी उसकी खास बातों को संभालने में मदद करता है।