Logotipo de Hyva Tailwind Include Exclude

Hyva Tailwind Include Exclude

Organización
hyva-themes
hyva-tailwind-include-exclude

Añadir la ruta de un módulo a la lista `include` o `exclude` de `hyva.config.json` para compilar Tailwind CSS. Usa esta habilidad cuando el usuario quiera incluir un módulo en la compilación de Tailwind CSS de un tema Hyvä o excluirlo de ella. Entre las frases que la activan se incluyen «incluir módulo», «excluir módulo», «añadir a include», «añadir a exclude», «hyva tailwind include» y «hyva tailwind exclude».

Add to TypingMind

Descripción general

Editorhyva-themes
Repositoriohyva-ai-tools
Nombre de la habilidadhyva-tailwind-include-exclude
Estrellas
84
Forks
16
Archivos incluidos
Solo instrucciones
LicenciaOSL-3.0
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 hyva-themes en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Hyva Tailwind Include Exclude 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/hyva-themes/hyva-ai-tools/tree/main/skills/hyva-tailwind-include-exclude
  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/hyva-themes/hyva-ai-tools.git /tmp/hyva-ai-tools
mkdir -p .claude/skills
cp -r /tmp/hyva-ai-tools/skills/hyva-tailwind-include-exclude .claude/skills/hyva-tailwind-include-exclude
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Hyva Tailwind Include Exclude 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 Hyva Tailwind Include Exclude 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 Hyva Tailwind Include Exclude 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á.

Add Module to Tailwind Include or Exclude List

Adds a module path as a { "src": "<PATH>" } entry to either the tailwind.include or tailwind.exclude array in a theme's hyva.config.json. This is the Hyvä 1.4+ / Tailwind v4 mechanism; Step 3 handles older setups.

Skill deps (read via <skill_path>/../{name}/SKILL.md): hyva-theme-list, hyva-compile-tailwind-css

Step 1: Determine the Target List

Decide whether the user wants to include or exclude the module in Tailwind CSS compilation:

  • If the user's request clearly indicates one (e.g. "exclude", "include"), use it.
  • Otherwise, ask the user whether to include or exclude the module. Wait for the answer before proceeding.

The chosen list is referred to as <target> (include or exclude) in the steps below.

Step 2: Find the Theme(s)

Use the hyva-theme-list skill to find all Hyvä themes. For each theme, the config file is located at <theme-path>/web/tailwind/hyva.config.json.

  • If no themes are found, inform the user and stop.
  • If only one theme is found, use it directly.
  • If multiple themes are found, list them and ask the user which theme(s) to update. Wait for the answer before proceeding.
  • If a selected theme is located under vendor/, warn the user that changes to vendor files are lost on composer update and ask for confirmation before proceeding.

Step 3: Confirm the Theme Uses Tailwind v4

hyva.config.json is only read by Hyvä 1.4+ / Tailwind v4 builds (via hyva-sources). Editing it on an older setup is a silent no-op. For each selected theme, read the tailwindcss version in <theme-path>/web/tailwind/package.json.

  • If the major version is 4 or higher, continue to Step 4.
  • If the major version is 3, the build does not read hyva.config.json; do not create or edit it. Instead tell the user how to make the change in the v3 setup, then stop for that theme:
    • To exclude a module, add its directory to excludeDirs in the postcssImportHyvaModules(...) call in <theme-path>/web/tailwind/postcss.config.js.
    • To include extra paths, add them to the content array in <theme-path>/web/tailwind/tailwind.config.js.

Step 4: Resolve the Module Path

Use the current working directory as the project root. If a module name was provided by the user when invoking the skill, use it. Otherwise, prompt the user for the module to resolve.

For an exclude

The exclude path must match the module's registered source path, which the build reads from app/etc/hyva-themes.json (a module can only be excluded if it is registered there).

  • Read app/etc/hyva-themes.json and find the entry for the module, matching by its Vendor_Module name or by the provided path or directory name.
  • Use that entry's registered source path verbatim. It often ends in /src (e.g. vendor/hyva-themes/magento2-hyva-checkout/src).
  • If the module is not listed there, it is not imported by the build and cannot be excluded. Inform the user and stop.

For an include

Any directory relative to the project root can be included, so resolve it from the provided value:

  • If the value contains / (e.g. vendor/vendor-name/module-name), verify the directory exists relative to the project root and use it as-is. If it does not exist, warn the user and ask how to proceed.
  • If the value is a Vendor_Module name (e.g. Hyva_Checkout), look for app/code/<Vendor>/<Module> relative to the project root and use that path if it exists. If it is not found there, look it up under vendor/ via its registration.php.
  • Otherwise (a plain directory name, e.g. magento2-hyva-checkout), search for a directory matching the name under vendor/ and app/code/:
    • If no match is found, inform the user and stop.
    • If exactly one match is found, derive its relative path from the project root (e.g. vendor/hyva-themes/magento2-hyva-checkout).
    • If multiple matches are found, list them and ask the user which one to use. Wait for the answer before proceeding.

Step 5: Update Each Target File

For each target hyva.config.json:

  1. Read the file. If it does not exist, create it with the structure { "tailwind": { "<target>": [] } }. If the file exists but is not valid JSON, inform the user and stop without overwriting it.
  2. Check if an entry with the resolved path already exists in tailwind.<target>. If it does, inform the user and skip that file. If the path exists in the opposite list (tailwind.exclude when including, or tailwind.include when excluding), warn the user and ask whether to remove it from there.
  3. Add { "src": "<PATH>" } to the tailwind.<target> array, where <PATH> is the resolved module path from Step 4. Create the tailwind key and the <target> array if they are missing. For example, excluding a module results in:
    json
    {
      "tailwind": {
        "exclude": [
          { "src": "vendor/hyva-themes/magento2-hyva-checkout/src" }
        ]
      }
    }
  4. Write the updated JSON back, preserving the file's existing indentation and trailing newline.

Step 6: Confirm

Report which file(s) were updated, which list (include or exclude) was changed, and what path was added.

Step 7: Offer to Compile

The change has no visible effect until Tailwind CSS is recompiled. Offer to compile the Tailwind CSS for the updated theme(s) using the hyva-compile-tailwind-css skill so the change takes effect.

Preguntas frecuentes

¿Qué hace la habilidad de IA Hyva Tailwind Include Exclude?

Añadir la ruta de un módulo a la lista `include` o `exclude` de `hyva.config.json` para compilar Tailwind CSS. Usa esta habilidad cuando el usuario quiera incluir un módulo en la compilación de Tailwind CSS de un tema Hyvä o excluirlo de ella. Entre las frases que la activan se incluyen «incluir módulo», «excluir módulo», «añadir a include», «añadir a exclude», «hyva tailwind include» y «hyva tailwind exclude».

¿Por qué usar Hyva Tailwind Include Exclude en TypingMind?

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

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/hyva-themes/hyva-ai-tools/tree/main/skills/hyva-tailwind-include-exclude. 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 Hyva Tailwind Include Exclude?

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 Hyva Tailwind Include Exclude?

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

Sí. hyva-themes la ha publicado en GitHub bajo la licencia OSL-3.0. 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 👇