Zum Inhalt springen
Skillpedia
Prompts & LLMs18k · #10702

prompt-engineer

Was er macht

Dieser Skill begleitet das Schreiben und Verbessern von Prompts für große Sprachmodelle, etwa mit schrittweiser Begründung, Beispielen und strukturierten Ausgaben. Er richtet sich an Menschen, die von KI-Modellen konsistente, überprüfbare Ergebnisse wollen.

Wann du ihn nutzt

  • ✓Wenn ein KI-Modell bei der gleichen Art von Aufgabe unterschiedliche oder unklare Antworten gibt.
  • ✓Wenn du brauchst, dass das Modell die Ausgabe in einem festen Format liefert, das Software lesen kann.
  • ✓Wenn du messen willst, ob eine Prompt-Änderung die Ergebnisse tatsächlich verbessert.

Link zum Skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Mein Prompt liefert jedes Mal ein anderes Antwortformat. Schreibe ihn so um, dass die Ausgabe immer gültiges JSON mit denselben Feldern ist.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill empfiehlt präzise Anweisungen, eine schrittweise Struktur, einige gut gewählte Beispiele, explizite Ausgabeschemas und eine automatische Auswertung der Ergebnisse.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen

Was sind Few-Shot-Beispiele?

Das sind einige Beispiele aus Eingabe und Ausgabe, die im Prompt stehen, damit das Modell das erwartete Muster übernimmt.

Warum eine strukturierte Ausgabe verlangen?

Ein festes Format wie JSON oder XML macht die Antwort für Software leichter und verlässlicher lesbar.

Sollte ich das größte Modell nehmen?

Der Skill empfiehlt das kleinste Modell, das eine akzeptable Qualität erreicht, weil größere Modelle mehr kosten und langsamer antworten.

Details

Originalbeschreibung des Autors

Prompt engineering expert for chain-of-thought, few-shot learning, evaluation, and LLM optimization

repo: RightNow-AI/openfang

Beliebtheit

GitHub-Sterne
18k
Platz im Ranking
#10702
Lizenz
Apache-2.0
Aktualisiert
2.7.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills