hyva-tailwind-include-exclude
БесплатноБез исполняемых скриптовНе проверенAdd a module path to the `include` or `exclude` list in `hyva.config.json` for Tailwind CSS compilation. Use this skill when the user wants to include a…
от hyva-themes★ 86 звёзд на GitHubОб этом скилле
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, where <skill_path> is the directory containing this SKILL.md file): hyva-theme-list, hyva-compile-tailwind-css
Non-interactive runs: Where a step says to ask the user and the user cannot be asked (subagent or non-interactive run), stop and report which input is missing. Do not guess, and do not edit files under vendor/ without confirmation.
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 oncomposer updateand 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
excludeDirsin thepostcssImportHyvaModules(...)call in<theme-path>/web/tailwind/postcss.config.js. - To include extra paths, add them to the
contentarray in<theme-path>/web/tailwind/tailwind.config.js.
- To exclude a module, add its directory to
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). A module gets into that file through an observer on the hyva_config_generate_before event. Compatibility modules that use CompatModuleRegistry are registered automatically.
- Read
app/etc/hyva-themes.jsonand find the entry for the module, matching by itsVendor_Modulename 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. In the same message, tell the user:
- A module they want compiled has to be registered first.
- If
<skill_path>/../hyva-register-module-tailwindexists, they can use that skill to register it. Name the skill. - Compatibility modules that use
CompatModuleRegistryare registered automatically.
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_Modulename (e.g.Hyva_Checkout), look forapp/code/<Vendor>/<Module>relative to the project root and use that path if it exists. If it is not found there, look it up undervendor/via itsregistration.php. - Otherwise (a plain directory name, e.g.
magento2-hyva-checkout), search for a directory matching the name undervendor/andapp/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:
- Read the file. If it does not exist, create it with the structure
{ "tailwind": { "<target>": [] } }. If the file ex
Установить hyva-tailwind-include-exclude в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hyva-tailwind-include-exclude?
Add a module path to the `include` or `exclude` list in `hyva.config.json` for Tailwind CSS compilation. Use this skill when the user wants to include a module in, or exclude a module from, Tailwind CSS compilation for a Hyvä theme. Trigger phrases include "include module", "exclude module", "add to include", "add to exclude", "hyva tailwind include", "hyva tailwind exclude".
Как установить скилл hyva-tailwind-include-exclude?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hyva-tailwind-include-exclude запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic