Agent skill

Hax Design System

by haxtheweb in haxtheweb/haxcms-php

Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage.

Apache-2.0Auto-check passedFrontend & Design

Install Hax Design System

skills CLI
$ npx skills add haxtheweb/haxcms-php --skill hax-design-system -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install haxtheweb/haxcms-php hax-design-system --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/haxtheweb/haxcms-php.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.well-known/agent-skills/hax-design-system .claude/skills/hax-design-system && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hax-design-system
GitHub stars
130
Token cost
~836 tokens
SKILL.md length
306 words
Files
3 (incl. references)
Skills in repo
18
Repo updated
First seen
Licence
Apache-2.0

At a glance

Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage.

  • Works in 5 steps: Import DDD: Always import import… → Use DDD Tokens: Apply DDD CSS custom… → SimpleColors Fallback: Use SimpleColors… → …
  • Styling components
  • SKILL.md covers When to Use, How It Works, Implementation Patterns and SimpleColors Migration, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Hax Design System is an agent skill from haxtheweb/haxcms-php. Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage. Use when styling components, auditing CSS for DDD compliance, migrating from SimpleColors, or creating new themes in the HAX ecosystem.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/ddd-tokens.md` and `references/simplecolors-migration.md`).

It sits in Frontend & Design, covering Design systems and Domain-driven design. The repository describes itself as: HAX + CMS to manage your microsite universe with PHP backend. The licence is Apache-2.0.

When your agent uses it

  • Styling components
  • Auditing CSS for DDD compliance
  • Migrating from SimpleColors
  • Creating new themes in the HAX ecosystem

Example prompts

  • “/hax-design-system”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Import DDD: Always import import '@haxtheweb/d-d-d/d-d-d.js' and extend DDD directly (never DDD(LitElement)).
  2. Use DDD Tokens: Apply DDD CSS custom properties for all styling
  3. SimpleColors Fallback: Use SimpleColors only when DDD does not provide the needed color variation. 19 hues with 12 shades each (1-12)…
  4. Audit: Verify token usage, consistency across breakpoints, accessibility contrast, and performance (minimal custom CSS beyond tokens).
  5. Dark Mode: Check dark mode compliance when auditing elements. Ensure color combinations maintain proper contrast ratios.

What it can do on your machine

Read from SKILL.md and the folder at commit 3542096. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are css).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hax Design System loads about 836 tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 306 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~836
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from haxtheweb/haxcms-php at commit 3542096, republished under its Apache-2.0 licence (© haxtheweb). 306 words, ~836 tokens.

Download SKILL.mdSave it as .claude/skills/hax-design-system/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
hax-design-system
description
Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage. Use when styling components, auditing CSS for DDD compliance, migrating from SimpleColors, or creating new themes in the HAX ecosystem.
version
1.0.0
license
Apache-2.0
metadata.author
haxtheweb
metadata.tags
hax, design-system, ddd, simplecolors, css, tokens, accessibility

HAX Design System

Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage.

When to Use

  • Styling a new or existing web component
  • Auditing CSS for DDD compliance
  • Migrating SimpleColors usage to DDD tokens
  • Creating or updating HAXcms themes
  • Ensuring dark mode compliance across components

How It Works

  1. Import DDD: Always import import '@haxtheweb/d-d-d/d-d-d.js' and extend DDD directly (never DDD(LitElement)).
  2. Use DDD Tokens: Apply DDD CSS custom properties for all styling:
    • --ddd-font-primary, --ddd-font-secondary, --ddd-font-navigation for typography
    • --ddd-font-size-* (6xs, 5xs, 4xs, 3xs, xxs, xs, s, ms, m, ml, l, xl, xxl, 3xl, 4xl; type1-s/m/l) for font sizes
    • --ddd-font-weight-* (light, regular, medium, bold, black) for weights
    • --ddd-spacing-* (0-30, 4px steps) for margins, padding, gaps
    • --ddd-radius-* (0, xs, sm, md, lg, xl, rounded, circle) for border radius
    • --ddd-theme-default-*, --ddd-primary-* (0-25) and --ddd-accent-* (0-14) for colors; components read --ddd-theme-primary / --ddd-theme-accent
    • --ddd-border-* (xs-lg) for borders, --ddd-boxShadow-* for elevation, --ddd-icon-* for icon sizes
    • --ddd-breakpoint-* for responsive breakpoints (write the px literally in @media)
  3. SimpleColors Fallback: Use SimpleColors only when DDD does not provide the needed color variation. 19 hues with 12 shades each (1-12); default-theme variables flip in dark mode, fixed-theme variables do not.
  4. Audit: Verify token usage, consistency across breakpoints, accessibility contrast, and performance (minimal custom CSS beyond tokens).
  5. Dark Mode: Check dark mode compliance when auditing elements. Ensure color combinations maintain proper contrast ratios.

Implementation Patterns

css
:host {
  display: block;
  font-family: var(--ddd-font-primary);
  color: var(--ddd-theme-default-coalyGray);
  margin: var(--ddd-spacing-4);
}

.component-header {
  font-size: var(--ddd-font-size-l);
  font-weight: var(--ddd-font-weight-medium);
  margin-bottom: var(--ddd-spacing-3);
}

@media (max-width: 768px) {
  :host {
    margin: var(--ddd-spacing-2);
  }
  .component-header {
    font-size: var(--ddd-font-size-m);
  }
}

SimpleColors Migration

When encountering legacy SimpleColors usage:

  1. Identify the SimpleColors variable being used
  2. Check if DDD provides an equivalent token
  3. Replace with DDD token if available
  4. Document remaining SimpleColors dependencies
  5. Plan gradual migration to DDD tokens

References

  • For complete DDD token reference: references/ddd-tokens.md
  • For SimpleColors to DDD mapping: references/simplecolors-migration.md
  • Both are generated from the webcomponents source by scripts/generate-ddd-references.js; re-run it after DDD or SimpleColors change rather than editing them by hand.

© haxtheweb, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .well-known/agent-skills/hax-design-system of haxtheweb/haxcms-php.

  • SKILL.md
  • references/ddd-tokens.md
  • references/simplecolors-migration.md

Open the folder on GitHubat commit 3542096

Compare with similar skills

Hax Design System next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hax Design System compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hax Design System this skillhaxtheweb/haxcms-php130—~836Automated safety check: PassApache-2.0
Structure Codebasecitypaul/.dotfiles740—~4.4kAutomated safety check: PassCustom licence
Impeccablebestofjs/bestofjs3.1k26 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
UI StylingOhh-889/skyroc79513 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • Structure Codebase

    citypaul/.dotfiles

    Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

    740 GitHub stars~4.4k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 26 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • UI Styling

    Ohh-889/skyroc

    Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs.

    795 GitHub starsUsed in 13 repos~2.5k tokens
    Frontend & DesignAuto-check passed
  • Shadcn

    supabase/evals

    Official

    Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI.

    144 GitHub starsUsed in 42 repos~4.5k tokens
    Frontend & DesignAuto-check passed

More from haxtheweb/haxcms-php

All 18 skills in this repo
  • Ddev

    haxtheweb/haxcms-php

    DDEV local development environment guidance for Docker-based PHP/Node projects.

    130 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Hax Ubd Backward Design

    haxtheweb/haxcms-php

    Design HAX course units via Understanding by Design (UbD) backward design — start from desired results, derive acceptable evidence, then plan learning experiences.

    130 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Hax Udl Audit

    haxtheweb/haxcms-php

    READ-ONLY diagnostic: review a HAX site/page against Universal Design for Learning (UDL) 3.0 — multiple means of Engagement, Representation, and Action & Expression — and emit a report with…

    130 GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Haxcms Lrs Rater

    haxtheweb/haxcms-php

    Run BookLooky's Looky Rating System (LRS) content rating and minimum-age recommendation on a HAXcms site's aggregated content — either a local site checkout or a live published URL like btopro.com —…

    130 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Oerschema Integration Finder

    haxtheweb/haxcms-php

    READ-ONLY diagnostic: scan HAX webcomponents, themes, CMS backends (PHP/NodeJS HAXcms), the VitePress plugin, and the Google Apps Script add-on for code surfaces that render or consume pedagogical…

    130 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Hax A11y Audit

    haxtheweb/haxcms-php

    READ-ONLY diagnostic: review authored HAX page/site content against WCAG 2.0 AA (image alt text, heading hierarchy, landmark structure, link text, form labels, color contrast, media…

    130 GitHub stars~5.5k tokensUpdated today
    Auto-check passed

Questions about Hax Design System

What does Hax Design System do?

Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage. Hax Design System is an agent skill from haxtheweb/haxcms-php. Apply the DDD (Design, Develop, Destroy) design system and manage SimpleColors legacy usage.

When should I use Hax Design System?

Hax Design System fits situations like: styling components; auditing CSS for DDD compliance; migrating from SimpleColors; creating new themes in the HAX ecosystem.

How do I install Hax Design System in Claude Code?

Run `npx skills add haxtheweb/haxcms-php --skill hax-design-system -a claude-code`. Or copy the skill folder (.well-known/agent-skills/hax-design-system in haxtheweb/haxcms-php) into .claude/skills/hax-design-system in your project. Claude Code loads it when a task matches its description.

How do I install Hax Design System in Codex?

Run `npx skills add haxtheweb/haxcms-php --skill hax-design-system -a codex`. Or copy the skill folder (.well-known/agent-skills/hax-design-system in haxtheweb/haxcms-php) into .agents/skills/hax-design-system in your project. Codex loads it when a task matches its description.

Can I use Hax Design System in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add haxtheweb/haxcms-php --skill hax-design-system -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hax-design-system, .gemini/skills/hax-design-system, .github/skills/hax-design-system and .opencode/skills/hax-design-system in your project.

What does Hax Design System need to run?

SKILL.md names no scripts, command-line tools or credentials: Hax Design System is instructions for the agent only.

Does Hax Design System access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Hax Design System safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hax Design System use?

Hax Design System is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hax Design System use?

About 836 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Hax Design System?

Skills that share tags, products or a category with Hax Design System: Structure Codebase (citypaul/.dotfiles, 740 stars), Impeccable (bestofjs/bestofjs, 3.1k stars), Figma Design System Builder (warpdotdev/warp, 65k stars) and Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hax Design System?

haxtheweb (a GitHub organization) maintains it in haxtheweb/haxcms-php, which has 130 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 10, 2026.

Source: haxtheweb/haxcms-php on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.