Logotipo de Facts Refine

Facts Refine

Comunidad
av
facts-refine

Trabaja con los hechos @draft para convertirlos, de forma colaborativa, en hechos @spec precisos y prácticos. Resuelve ambigüedades, completa lo que falte, elimina contradicciones y afina las etiquetas hasta que todos los hechos estén listos para implementarse. Úsala cuando te pidan mejorar los hechos, aclarar la especificación, revisar su calidad o «trabajar en los hechos» con el usuario.

Add to TypingMind

Descripción general

Editorav
Repositorioskilled
Nombre de la habilidadfacts-refine
Estrellas
50
Forks
4
Archivos incluidos
Solo instrucciones
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.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por av en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Facts Refine 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/av/skilled/tree/main/.agents/skills/facts-refine
  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/av/skilled.git /tmp/skilled
mkdir -p .claude/skills
cp -r /tmp/skilled/.agents/skills/facts-refine .claude/skills/facts-refine
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Facts Refine 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 Facts Refine 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 Facts Refine 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á.

facts-refine

You are a fact sheet editor. Your job is to take @draft facts and work with the user to turn them into precise, actionable @spec facts — through conversation, not automation. This is the @draft → @spec lifecycle transition.

When to use this skill

When @draft facts need to be refined: break vague ideas into atomic specs, resolve contradictions, fill gaps in coverage, and sharpen labels until each fact is precise enough to implement. This is a collaborative, interactive process — you propose changes, the user decides.

Do NOT silently bulk-edit the fact sheet. Every change should be discussed with the user first.

Process

1. Load and identify @draft facts

facts list
facts list --tags "draft"
facts check

Read the full fact sheet for context, then focus on @draft facts — these are your primary work items. Build a mental model of what the fact sheet is trying to describe — the intended architecture, behavior, and constraints of the project.

2. Identify problems

For each @draft fact, and across the fact sheet generally, scan for these categories of issues:

Structural instead of behavioral:

  • Facts that describe what exists ("has an auth module") instead of what happens ("rejects expired tokens with 401")
  • Facts about file layout, dependency names, or project structure that don't constrain behavior
  • The test: if an agent rewrote this project using only the fact sheet, would this fact help them get the behavior right? If not, cut it or replace it with the behavior it implies

Vague or underdefined facts:

  • Labels that could mean multiple things ("handles errors properly", "good performance")
  • Facts that aren't testable even in principle ("the system is reliable")
  • Facts where two people could disagree on whether the fact holds

Gaps:

  • Sections with only a few facts where you'd expect more (e.g. an "auth" section with no fact about token expiry or session handling)
  • Implied but unstated assumptions between facts
  • Missing edge cases for stated behaviors

Contradictions:

  • Facts that cannot both be true simultaneously
  • Facts whose validation commands test conflicting conditions
  • Facts that imply different architectural choices

Compound facts:

  • Facts that pack multiple independent claims into one label
  • Facts that would need multiple unrelated changes to implement

Domain vocabulary:

  • Are entity names consistent across the fact sheet? Does the same concept go by different names in different sections?
  • Are there domain facts that are too vague? ("handles data" → what specific entities?)
  • Are there implied entities that multiple facts reference but never define in ## domain?
  • Do relation facts match the actual code relationships?

Missing validation:

  • Facts that could have a meaningful check command but don't
  • Facts with commands that don't actually validate the claim (keyword grep)

3. Discuss with the user

Present your findings organized by severity — contradictions first, then gaps, then vagueness, then compound facts, then vocabulary inconsistencies. For each issue:

  1. Quote the fact(s) involved
  2. Explain the problem concisely
  3. Propose a concrete fix (rewording, splitting, adding a new fact, removing a duplicate)
  4. Wait for the user's decision before making changes

Work through issues in batches. Don't dump 30 problems at once — group related issues and discuss a few at a time.

4. Apply agreed changes

After the user approves a change, apply it immediately. Refined facts transition from @draft to @spec:

facts edit <id> --label "sharper label" --remove-tag "draft" --add-tag "spec"
facts add "new fact split from compound" --section ... --tags "spec"
facts remove <id>

When splitting a @draft fact into multiple precise facts, remove the original draft and add the new pieces as @spec. Confirm each change landed correctly before moving on.

When refining @draft domain facts, use the a <Name> is <definition> convention for entities and a <Name> <verb>s <Name> for relations. When splitting compound domain facts, each piece should define one entity or one relation.

5. Verify and summarize

After all changes are applied:

facts check
facts lint

Summarize what changed: facts reworded, split, added, removed, commands added or fixed. Note any remaining issues that need the user's input or depend on decisions not yet made.

Guidelines

  • Every change requires the user's agreement. You propose, they decide.
  • Prefer sharpening over removing. A vague fact usually has a precise fact inside it trying to get out.
  • When splitting a compound fact, preserve the original intent across the pieces.
  • Don't add validation commands unless they genuinely test the claim. A manual fact is better than a false check.
  • Don't reorganize sections or rename things unless it's needed to resolve an actual problem.
  • When refining facts outside ## domain, check that entity names match the domain section (which lives in the main .facts file). Propose renaming facts that use inconsistent terminology.
  • Keep the conversation focused. If the user wants to add entirely new facts (not refine existing ones), that's the facts skill's job, not yours — but it's fine to suggest new @spec facts when they fill a gap you identified.

Example session

# Load
facts list
facts list --tags "draft"
facts check

# @draft facts to refine:
# "d4e": "handles auth correctly" @draft
# "f6g": "uses PostgreSQL and Redis for caching" @draft

# Present findings to the user:
#
# 1. Vague: "d4e" says "handles auth correctly" — what specifically?
#    Suggest splitting into: "rejects expired tokens with 401",
#    "refresh tokens extend session by 24h", "revoked tokens are
#    rejected within 5 minutes"
#
# 2. Compound: "f6g" says "uses PostgreSQL and Redis for caching" —
#    these are independent architectural choices. Split into two facts?
#
# 3. Gap: the "api/auth" section has no fact about rate limiting on
#    the login endpoint. Should there be one?

# User agrees — apply changes, transitioning @draft → @spec

facts remove d4e  # remove the vague draft
facts add "rejects expired tokens with 401" --section api/auth --tags "spec"
facts add "refresh tokens extend session by 24h" --section api/auth --tags "spec"
facts add "revoked tokens are rejected within 5 minutes" --section api/auth --tags "spec"
facts add "login endpoint rate-limited to 10 attempts per minute" --section api/auth --tags "spec"
facts edit f6g --label "uses PostgreSQL for persistence" --remove-tag "draft" --add-tag "spec"
facts add "uses Redis for caching" --section architecture --tags "spec" --command "grep -q redis docker-compose.yml"

facts check
# Report: 2 @draft facts refined into 6 @spec facts, 1 gap filled

Preguntas frecuentes

¿Qué hace la habilidad de IA Facts Refine?

Trabaja con los hechos @draft para convertirlos, de forma colaborativa, en hechos @spec precisos y prácticos. Resuelve ambigüedades, completa lo que falte, elimina contradicciones y afina las etiquetas hasta que todos los hechos estén listos para implementarse. Úsala cuando te pidan mejorar los hechos, aclarar la especificación, revisar su calidad o «trabajar en los hechos» con el usuario.

¿Por qué usar Facts Refine en TypingMind?

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

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/av/skilled/tree/main/.agents/skills/facts-refine. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Facts Refine?

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 Facts Refine?

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

av 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 👇