HAX Site Building

SkillDev tools

Build and maintain HAXcms sites with proper structure, themes, and JSON Outline Schema. Use when creating a new HAXsite, editing site.json, managing page content, or modifying themes in the HAXcms ecosystem.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the HAX Site Building skill

What this skill tells your AI

The instructions your AI receives, as published by haxtheweb/haxcms-php in .well-known/agent-skills/hax-site-building/SKILL.md and read by ahel’s review.

Build and maintain HAXcms sites with proper structure, themes, and JSON Outline Schema.

When to Use

  • Creating a new HAXsite for testing or production
  • Editing site.json structure or metadata
  • Adding or modifying pages in the pages/ directory
  • Managing static assets in the files/ directory
  • Customizing HAXcms themes that inherit from HAXCMSLitElement
  • Importing content from external sources (WordPress, Notion, HTML, etc.)

How It Works

  1. Scaffold: Always use hax site mysite --y instead of manual creation. Do not create site directories or files manually.
  2. Structure: Keep all documentation in docs/, all files in files/, and all page HTML in pages/. Maintain site.json in JSON Outline Schema format.
  3. Metadata: Ensure metadata.site.name aligns exactly with the folder name. Do not modify it to anything else.
  4. Routes: Do not create pages or routes using the x/ prefix — it is reserved for internal HAXcms paths (x/search, x/tags, x/manifest).
  5. Content: Use HAX-capable web components for rich content. Apply DDD attributes for consistent spacing and typography. Include engaging visual elements (videos, tables, interactive components).
  6. Theme: Use HAXCMSLitElement for custom theme components. Apply DDD design tokens consistently. Run yarn run build after theme changes.
  7. Import: Use supported import methods (pressbooksToSite, htmlToSite, notionToSite, docxToSite, etc.) via hax site --import-site <url> --import-structure <method>.

Educational Content Standards

When creating educational content:

  • Apply OER Schema metadata parameters for semantic structure and interoperability
  • Structure content to support pedagogical objectives
  • Include proper learning resource identification
  • Consider diverse learning styles in content presentation
  • Maintain comprehensive ecosystem context in documentation

Build Workflow

  • Run yarn run build after theme modifications involving HAXCMSLitElement
  • Do not manually edit custom-elements.json or generated manifest files
  • Use HAX CLI tools for site operations rather than manual file edits
  • Ensure site.json is valid JSON Outline Schema before committing

References

  • For site structure examples: references/site-structure.md
  • For import methods: references/import-methods.md

Signals

GitHub stars
129
Forks
57
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
hax-site-building
Source
github.com/haxtheweb/haxcms-php