haxtheweb/create/hax-site-building

Claude Code and agent skill by haxtheweb/create

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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. Use when the user says "create a site", "add pages", "edit site.json", or references HAXcms site structure.

Install

npx vskill@latest install haxtheweb/create/hax-site-building

SKILL.md

HAX Site Building

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. (PRAW Rule rHQ7lLRZmZlnFveLrWslUN)
  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). (PRAW Rule Q4D9hL9sFNORlMPt1z2ZEb)
  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>.

Page creation (critical)

Always create pages through the hax CLI, never by manually creating page directories or hand-editing site.json. Manual page creation bypasses the CLI's page-id generation, slug/location management, and atomic site.json updates, which corrupts the JSON Outline Schema structure and breaks the site in production. The CLI owns page structure; you only own page content.

As an agent, add --agent to every hax site command below (or set HAX_ACTOR=agent) so the site's history records your changes as agent changes instead of a person's.

Two supported CLI paths, run from inside the site directory:

  • Single page: hax site node:add --title "<title>" --slug "<slug>" --parent <parent-id-or-slug> --content <path-to-html-or-md-file> --y --no-i. Without --order the page is appended after its siblings. The output includes the new item id.
  • Update an existing page: hax site node:edit --item-id <id-or-slug> --title "<title>" --content <file-or-html> --y --no-i (any of --title, --slug, --content, --description, --tags, --parent, --order, --published, --hide-in-menu, --theme, applied together).
  • Bulk (preferred for a whole program): build a JOS items array (one object per page with title, slug, parent, indent, order, metadata, and content), then run hax site site:items-import --items-import <items.json> --y --no-i. The import remaps parent references to the newly generated ids automatically.

To mark a page draft/private (e.g. verbatim transcripts), set metadata.published: false in the import item. After creation, verify with hax site site:items. (PRAW Rule — see RULES.md "HAXcms page creation via CLI".)

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

  • HAX CLI: hax site --help
  • PRAW RULES.md: https://github.com/haxtheweb/praw/blob/main/RULES.md (canonical ecosystem rules referenced by Rule ID)
  • DDD design system: see the hax-design-system skill

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/haxtheweb/create/hax-site-building/badge)](https://verified-skill.com/skills/haxtheweb/create/hax-site-building)

Something wrong with this skill or its page? Tell us.