Logotipo de Diverge

Diverge

Comunidad
scdenney
diverge

Generates 3-5 conceptually distinct approaches labeled Novel, Surprising, Diverse, or Conventional, and holds for the user's selection before implementing. The --codex mode runs the brainstorm on GPT-6 Astra via codex exec, then has Codex implement the selected approach. Use before committing to an approach when a creative, architectural, or analytical task has more than one non-obvious solution; use --codex when another model family should widen the range.

Descripción general

Editorscdenney
Repositorioopen-science-skills
Nombre de la habilidaddiverge
Estrellas
69
Forks
3
Archivos incluidos
1
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 scdenney en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Diverge 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/scdenney/open-science-skills/tree/main/plugin/skills/diverge
  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/scdenney/open-science-skills.git /tmp/open-science-skills
mkdir -p .claude/skills
cp -r /tmp/open-science-skills/plugin/skills/diverge .claude/skills/diverge
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Diverge 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 Diverge 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 Diverge 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á.

Diverge

Interrupt the default path of jumping to the most probable — and least creative — solution.

Use a new output path or directory for each run; preserve earlier results and existing user edits.

Heritage and scope

An original Open Science Skills workflow grounded in Creative Preference Optimization (Ismayilzada et al., 2025; background in reference/creative-preference-optimization.md in this skill's directory). Standard preference alignment (RLHF/DPO) optimizes for the most human-expected output, which is by construction the least surprising one. The paper's most accessible remedy — its own "brainstorm-then-select" baseline — needs no fine-tuning: force divergence before convergence, require that at least one approach is surprising and one is novel, and defer quality and implementation until after selection.

Use it wherever more than one non-obvious solution exists — creative, architectural, or analytical work — and not for rote tasks with one correct answer (fix this syntax error).

When the task itself is still underspecified (goal, constraints, success criteria unsettled), interview before diverging. For research tasks, research-grill resolves the decision tree the approaches must answer to; it descends from Matt Pocock's grill-me (see RECOMMENDED.md in the library repository). Grilling settles the question, and diverge generates genuinely distinct answers to a settled one.

Model. The default mode makes no external model call: it runs in whatever model and reasoning effort the session is already using, not a fixed pin. --codex is the exception — it shells out to a separate model family, pinned to gpt-6-astra: high effort for the brainstorm (a fresh-perspective consult whose output the user selects from) and xhigh for the write-capable implementation run.

Behavior

Given $ARGUMENTS:

Step 1 — Clarify if needed

If the task is ambiguous about what "good" looks like, ask one round of goal questions — the frontier of what blocks generation now, numbered, each with your recommended answer; questions about the goal, never the implementation. One round, then generate: a task that needs a second round needs the full interview (research-grill, see Heritage), not this skill. Skip this entirely if the goal is clear.

Step 2 — Generate approaches

Produce 3–5 approaches that differ in underlying mechanism, not surface vocabulary. At least one must be [Surprising] and at least one [Novel]. Label each with its primary creativity dimension:

  • [Novel] — semantically far from the conventional solution; different conceptual basis
  • [Surprising] — violates the obvious assumption about how this should work; would not be the first answer
  • [Diverse] — maximally different from the other approaches in this list
  • [Conventional] — the expected path, included as a reference point

For each approach provide:

  1. Core mechanism — one sentence naming the key insight
  2. How it works — two to three sentences on the mechanism and what makes it distinct
  3. Main tradeoff — one sentence

Step 3 — Hold

Do not implement. Present all approaches, then ask:

"Which approach should I pursue? Or should I synthesize elements from multiple?"

After selection

Implement the selected approach directly. If the user asks to synthesize, identify which elements are mechanically compatible and propose a brief hybrid plan before implementing.

Codex mode (--codex)

With --codex, the specification above is unchanged — Codex generates the approaches instead of you, and implements the selected one. Running the brainstorm on a second model family widens the space of approaches beyond what one model proposes. You structure the prompt and present the results; you do not add approaches of your own.

Invocation mechanism

Plain Claude Code has no native codex:codex-rescue subagent. Every "ask Codex" step means calling codex exec through the Bash tool (the same mechanism paper-review-lite --codex uses):

  • --model gpt-6-astra -c model_reasoning_effort=<effort> — pins Codex explicitly (high to brainstorm, xhigh to implement) rather than relying on codex exec's implicit default, which can drift upstream.
  • < /dev/null — closes stdin. Without it, codex exec hangs on "Reading additional input from stdin…" even when the prompt is passed as a CLI argument; this is the most common failure.
  • --skip-git-repo-check so it runs regardless of git state, and --sandbox set per phase: read-only for brainstorming, workspace-write for implementation.
  • timeout: 600000 (10 min) on the Bash call as a backstop.

The result returns on stdout — read it directly from the Bash output. Treat a non-zero exit, or empty output, as a Codex failure: report it and offer to fall back to plain /diverge (Claude-only).

Steps

  1. Take the task from $ARGUMENTS with --codex stripped; if empty, ask the user what they want to solve. Step 1 above (one round of goal questions) still applies before delegating.

  2. Brainstorm via Codex, substituting TASK with the user's request verbatim and adding none of your own implementation preferences:

    bash
    codex exec --model gpt-6-astra -c model_reasoning_effort=high --sandbox read-only --skip-git-repo-check "$(cat <<'CODEXEOF'
    <brainstorm prompt template below, with TASK substituted>
    CODEXEOF
    )" < /dev/null
  3. Present the approaches to the user verbatim — do not paraphrase, filter, or reorder them. Ask which to pursue, or whether to synthesize.

  4. Implement via Codex only after selection, switching the sandbox to workspace-write and setting -C to the project directory. The user's selection is the authorization for this write; the Codex plugin's "stop after presenting findings" guidance covers code-review handoffs, not this step:

    bash
    codex exec --model gpt-6-astra -c model_reasoning_effort=xhigh --sandbox workspace-write --skip-git-repo-check -C "<project dir>" "$(cat <<'CODEXEOF'
    <implementation prompt template below, with TASK and SELECTED_APPROACH substituted>
    CODEXEOF
    )" < /dev/null

Brainstorm prompt template

xml
<task>
Before implementing, generate 3–5 conceptually distinct approaches to:

TASK

Label each approach:
  [Novel]       — different conceptual basis from the conventional solution
  [Surprising]  — violates the obvious assumption; not the first answer
  [Diverse]     — maximally different from the other options in this list
  [Conventional]— the expected path, for contrast

For each approach provide:
- Core mechanism (1 sentence)
- How it works and what makes it distinct (2–3 sentences)
- Main tradeoff (1 sentence)
</task>

<constraints>
At least one approach must be [Surprising].
At least one must be [Novel].
Approaches must differ in underlying mechanism, not just vocabulary.
Prioritize novelty and surprise over immediate quality.
</constraints>

<structured_output_contract>
Numbered list only. No preamble, no implementation code.
Format each: number, label, mechanism line, explanation, tradeoff line.
Present all approaches and stop.
</structured_output_contract>

Implementation prompt template

xml
<task>
Implement the following approach to: TASK

Selected approach: SELECTED_APPROACH

Implement it fully. Edit files in place where applicable.
</task>

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 Diverge?

Generates 3-5 conceptually distinct approaches labeled Novel, Surprising, Diverse, or Conventional, and holds for the user's selection before implementing. The --codex mode runs the brainstorm on GPT-6 Astra via codex exec, then has Codex implement the selected approach. Use before committing to an approach when a creative, architectural, or analytical task has more than one non-obvious solution; use --codex when another model family should widen the range.

¿Por qué usar Diverge en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Diverge 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 Diverge en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/scdenney/open-science-skills/tree/main/plugin/skills/diverge. 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 Diverge?

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 Diverge?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Diverge 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 Diverge?

scdenney la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. 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 👇