Logo di Hyva Tailwind Include Exclude

Hyva Tailwind Include Exclude

Organizzazione
hyva-themes
hyva-tailwind-include-exclude

Aggiungi il percorso di un modulo all’elenco `include` o `exclude` in `hyva.config.json` per la compilazione di Tailwind CSS. Usa questa skill quando l’utente vuole includere o escludere un modulo dalla compilazione di Tailwind CSS per un tema Hyvä. Frasi che ne attivano l’uso: "include module", "exclude module", "add to include", "add to exclude", "hyva tailwind include", "hyva tailwind exclude".

Add to TypingMind

Panoramica

Pubblicato dahyva-themes
Repositoryhyva-ai-tools
Nome della skillhyva-tailwind-include-exclude
Stelle
84
Fork
16
File inclusi
Solo istruzioni
LicenzaOSL-3.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da hyva-themes su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Hyva Tailwind Include Exclude in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/hyva-themes/hyva-ai-tools/tree/main/skills/hyva-tailwind-include-exclude
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Hyva Tailwind Include Exclude in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Hyva Tailwind Include Exclude non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Hyva Tailwind Include Exclude non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello 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.

Domande frequenti

Cosa fa la skill IA Hyva Tailwind Include Exclude?

Aggiungi il percorso di un modulo all’elenco `include` o `exclude` in `hyva.config.json` per la compilazione di Tailwind CSS. Usa questa skill quando l’utente vuole includere o escludere un modulo dalla compilazione di Tailwind CSS per un tema Hyvä. Frasi che ne attivano l’uso: "include module", "exclude module", "add to include", "add to exclude", "hyva tailwind include", "hyva tailwind exclude".

Perché usare Hyva Tailwind Include Exclude su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Hyva Tailwind Include Exclude è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Hyva Tailwind Include Exclude in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/hyva-themes/hyva-ai-tools/tree/main/skills/hyva-tailwind-include-exclude. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Hyva Tailwind Include Exclude?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Hyva Tailwind Include Exclude?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Hyva Tailwind Include Exclude: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Hyva Tailwind Include Exclude è gratuita?

Sì. È pubblicata su GitHub da hyva-themes con licenza OSL-3.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇