Saltar al contenido
Skillpedia
Prompts y LLMs18 mil · #10702

prompt-engineer

Qué hace

Esta skill guía la escritura y la mejora de prompts para modelos de lenguaje grandes, incluyendo razonamiento paso a paso, ejemplos y salidas estructuradas. Está pensada para personas que quieren resultados coherentes y comprobables de los modelos de IA.

Cuándo usarla

  • ✓Cuando un modelo de IA da respuestas incoherentes o poco claras para el mismo tipo de tarea.
  • ✓Cuando necesitas que el modelo devuelva una respuesta en un formato fijo que un programa pueda leer.
  • ✓Cuando quieres medir si un cambio en el prompt mejora de verdad los resultados.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi prompt da formatos de respuesta distintos cada vez. Reescríbelo para que la salida sea siempre un JSON válido con los mismos campos.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill recomienda instrucciones concretas, una estructura paso a paso, unos pocos ejemplos bien elegidos, esquemas de salida explícitos y evaluación automática de los resultados.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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
Preguntas frecuentes

¿Qué son los ejemplos few-shot?

Son unos pocos ejemplos de entrada y salida incluidos en el prompt, para que el modelo copie el patrón esperado.

¿Por qué pedir una salida estructurada?

Un formato fijo como JSON o XML hace que la respuesta sea más fácil y fiable de procesar por un programa.

¿Debo usar el modelo más grande?

La skill sugiere elegir el modelo más pequeño que alcance una calidad aceptable, porque los modelos grandes cuestan más y responden más despacio.

Detalles

Descripción original del autor

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

repo: RightNow-AI/openfang

Popularidad

Estrellas en GitHub
18 mil
Posición en el ranking
#10702
Licencia
Apache-2.0
Actualizada
2/7/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas