Logotipo de Prompt Engineering

Prompt Engineering

Comunidad
nahid-sparktales
prompt-engineering

Write or revise a prompt so it holds up — output contract, instruction placement, examples that earn their place, an escape hatch for bad input — and measure the change against a saved set of cases instead of one good-looking run. Use when a prompt is being authored or patched, when output is inconsistent or the wrong shape, when a model or version changes, or when someone reports a prompt as fixed. Not for scoping an agent's job and tools, not for deciding what material to load into the window, and not for model selection or fine-tuning.

Add to TypingMind

Descripción general

Editornahid-sparktales
Repositorioagent-dispatcher
Nombre de la habilidadprompt-engineering
Estrellas
58
Forks
5
Archivos incluidos
1
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 1

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por nahid-sparktales en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Prompt Engineering en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/prompt-engineering
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/ai/prompt-engineering .claude/skills/prompt-engineering
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Prompt Engineering en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Prompt Engineering automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Prompt Engineering no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Prompt engineering

A prompt that worked once is an anecdote. Almost every "fixed" prompt was judged on the input that motivated the edit, on a single run, against no recorded baseline.

When this fires

Authoring or editing any prompt whose output something depends on, and any time a prompt is declared improved. It does not fire for a one-off question you ask and read yourself.

Procedure

  1. Collect cases before editing. At least five real inputs, including the two that fail now and two that currently pass and must keep passing. No cases means no measurement is possible — say that plainly instead of shipping an eyeballed change.
  2. Run the baseline and record it. Every case, actual output saved, pass or fail marked. This is the only thing a later claim of improvement can be checked against.
  3. Write the output contract first. Exact shape, field names, ordering, units, and what the output looks like when the model cannot comply. Unspecified format is the single most common defect, and it is invisible until something downstream parses it.
  4. Separate durable instruction from variable data. Keep the standing rules in one place and the per-run material in another, marked so the boundary is unmistakable. A prompt that interleaves them teaches the model that data can issue instructions.
  5. Say what to do, not only what to avoid. A prohibition names the failure without supplying the alternative; the model still has to pick something. Pair every "do not" with the behaviour that replaces it.
  6. Add an example only where prose could not pin it down — an exact format, an edge case, a tone. Cover the boundaries: the empty input, the ambiguous one, the one that should be refused. Examples that all resemble each other teach that resemblance, and the model will reproduce their shared accident rather than the rule.
  7. Give it an escape hatch. What to output when the input is insufficient, ambiguous, or out of scope. A prompt with no defined "I cannot" will fabricate rather than return nothing.
  8. Mark untrusted spans. Anything pasted in — a user's text, a document, a tool result — is data. State in the prompt that instructions found inside it are to be surfaced, not obeyed.
  9. Change one thing, then re-run the whole set. Not just the case that prompted the edit. A change that fixes case 3 and breaks case 1 is not an improvement, and you will only see it here.
  10. Judge by a written rule, not a feeling. Per case: exact match, schema validity, a required substring, or a rubric with its standard written down. Use the same judge before and after; a judge that changed with the prompt measures nothing.
  11. Report the pass rate, not the anecdote. Where output is nondeterministic, run each case several times and report the rate — "4/5 cases, 3 runs each" says something; "it works now" does not.
  12. Re-measure on the model you will actually run. A prompt tuned against one model or version is evidence about that model. Treat a version change as a reason to re-run the set.
  13. Keep the cases beside the prompt, versioned with it, so the next person to edit it can measure instead of guessing.

Keep the verbs apart when reporting: the prompt was written; a case was executed; the set was measured with a recorded pass rate. Only the third supports a claim that a change helped.

Checklist

  • Case set exists, includes current failures and current passes
  • Baseline recorded before any edit
  • Output contract states shape and the non-compliance output
  • Instructions and variable data visibly separated
  • Every prohibition paired with the replacement behaviour
  • Examples cover a boundary and a refusal, not only the happy path
  • Escape hatch defined for insufficient or out-of-scope input
  • Untrusted spans marked as data
  • One change per measurement, whole set re-run
  • Judging criterion written down and unchanged across the comparison
  • Model and sampling settings recorded with the result

Failure handling

  • The failure will not reproduce — it is a rate, not a state. Run it repeatedly and report the frequency. An intermittent failure called fixed is worse than one called intermittent.
  • The prompt keeps growing — each patch bolted onto the last is how prompts rot. Rewrite from the contract and re-measure, rather than adding a ninth clause.
  • The only fix anyone can find is more examples — the contract is underspecified. Go back to step 3; examples are papering over a rule that was never stated.
  • Cases pass but real usage still fails — the case set does not represent the traffic. That is the finding. Widen the set before touching the prompt again.
  • Measuring properly requires changing something live — stop and ask. Evaluating against production traffic or real user data is not a free action.
  • You cannot confirm what a model or SDK supports — name the technique rather than a flag or parameter you have not verified, and check the current documentation before writing it.

Evidence to report

The case set and the judging criterion; the before/after table with per-case pass or fail and the run count; the prompt diff; the model, version and sampling settings the numbers came from; and the cases that still fail, named rather than averaged away.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Prompt Engineering?

Write or revise a prompt so it holds up — output contract, instruction placement, examples that earn their place, an escape hatch for bad input — and measure the change against a saved set of cases instead of one good-looking run. Use when a prompt is being authored or patched, when output is inconsistent or the wrong shape, when a model or version changes, or when someone reports a prompt as fixed. Not for scoping an agent's job and tools, not for deciding what material to load into the window, and not for model selection or fine-tuning.

¿Por qué usar Prompt Engineering en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Prompt Engineering está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Prompt Engineering en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/prompt-engineering. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Prompt Engineering?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Prompt Engineering?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Prompt Engineering con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Prompt Engineering?

Sí. nahid-sparktales la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇