/etchwp:acss-detectionfrom etchwp
Detects whether AutomaticCSS (ACSS) is installed for the current project via the Etch Connector, and persists the ACSS mode to force generation to use ACSS tokens/utility classes when present.
Ships in etchwp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Establishes the project's ACSS mode — the single flag that decides whether generation uses ACSS utilities/tokens (forced) or the non-ACSS fallback. Every generation entry point (/etch, /generate, /section) reads this mode before producing anything.
When ACSS is detected (
acss.present: true), ACSS usage is mandatory, not preferred. Styling comes from ACSS utility classes verified againstcss-generation/references/acss-classes.md; any custom CSS uses only verifiedvar(--acss-token)values fromacss-tokens.md. Output containing a hardcoded design value or an invented ACSS class/token name is a generation error — correct it before presenting or pushing. There are no exceptions "just this once".
When ACSS is absent (present: false), use the Non-ACSS fallback in css-generation and tell the user ACSS was not detected.
Stop at the first method that yields a definitive answer; record which method decided.
Run the detection recipe from etch-connector/references/eval-recipes.md (recipe 1):
npx @digital-gravy/etch-connector eval -t <tab> -f <scratchpad>/detect-acss.js
The recipe checks two signals, in strict priority order:
etch.skills.list() contains a skill named acss — Etch lists this skill only when AutomaticCSS is installed on the site. This is authoritative: when the registry answers at all, its verdict decides, positive or negative. Its metadata may carry version info.:root variables via etch.styles.listVariables() — --space-m, --radius, --primary (≥2 found = present). Used only when the registry is unavailable (older Etch, API error). A non-ACSS theme can define --primary/--radius, so sentinels alone would false-positive into forcing utilities onto a site where they resolve to nothing.The recipe returns decidedBy (skills-registry | sentinels) — record it as the method when persisting.
When present, immediately read Etch's own ACSS conventions and follow them alongside this plugin's references: etch.skills.get("acss"), then getReference("acss", <file>) per its references list (progressive disclosure — pull references only as needed).
CDP fallback (only if bridge eval is unavailable but Chrome runs with --remote-debugging-port=9222):
npx @digital-gravy/etch-connector computed --cdp -t etch ":root" --props "--space-m,--radius,--primary"
If the project working directory contains (or points at) a WordPress install, look for the plugin directory with the Glob tool (pattern **/wp-content/plugins/automaticcss*/**) or a plain ls wp-content/plugins/ — avoid piped shell commands here, they fall outside the commands' Bash(ls:*) allowlist and trigger a permission prompt mid-generation.
A directory like automaticcss-plugin/ → present. Its readme.txt/main plugin file header gives the version.
No connection and no WP filesystem: ask directly — "Is AutomaticCSS installed on the target site?" Record the answer with method user-confirmed. If the user is unsure, default to present: false (fallback CSS is safe everywhere; wrong utility classes are not).
Write to .etch-components/config.json at the project root (create the directory via the persistence skill if missing; merge — don't clobber other keys):
{
"acss": {
"present": true,
"version": "4.x",
"site": "https://client-site.com",
"detectedAt": "2026-07-25T15:00:00Z",
"method": "connector-skill | connector-vars | cdp | filesystem | user-confirmed"
}
}
site is what makes re-detection decidable: record the connected tab's site (from tabs --json, or the WP install path offline, or null when unknown). A tab whose site differs from this value means the cached verdict belongs to a different install — re-detect.
version: from skill metadata / plugin header when discoverable, else "4.x" assumed when present, null when absent.site (or site is null and a tab is connected); the user says the site changed; or detectedAt predates a site migration the user mentions. Otherwise trust the cached value — do not re-probe every generation.After detection, state one line before generating, e.g.:
ACSS 4.x detected (via Etch skills registry) — ACSS utilities and tokens are enforced.
or
AutomaticCSS not detected — using component-local tokens; add ACSS later and regenerate to switch.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flyingwebie/skills --plugin etchwp9 skills in this plugin
/css-generationGenerates BEM-scoped CSS with ACSS custom property references for Etch components. Uses &__/&-- stemming compatible with Etch CSS panel. ACSS mode ON: hard gate -- every design value a verified ACSS token, custom CSS only where no utility exists. ACSS mode OFF: local custom-property fallback. Container queries via :has(> &) pattern.
/etch-connectorTransport layer for driving a live Etch builder tab through the Etch Connector CLI (@digital-gravy/etch-connector). Owns the connection lifecycle, the eval contract, persistence (saveAsync) rules, exit-code handling, and the post-push verification loop. Never decides what markup/classes to build -- it receives output from the generation skills and maps it to etch.* API calls. Used by /etch and /library's push action.
/Other plugins' skills for the same job