haxtheweb/create/hax-site-building
Claude Code and agent skill by haxtheweb/create
- community
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-buildingSKILL.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.jsonstructure 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
- Scaffold: Always use
hax site mysite --yinstead of manual creation. Do not create site directories or files manually. - Structure: Keep all documentation in
docs/, all files infiles/, and all page HTML inpages/. Maintainsite.jsonin JSON Outline Schema format. - Metadata: Ensure
metadata.site.namealigns exactly with the folder name. Do not modify it to anything else. (PRAW RulerHQ7lLRZmZlnFveLrWslUN) - 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 RuleQ4D9hL9sFNORlMPt1z2ZEb) - 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).
- Theme: Use HAXCMSLitElement for custom theme components. Apply DDD design tokens consistently. Run
yarn run buildafter theme changes. - Import: Use supported import methods (
pressbooksToSite,htmlToSite,notionToSite,docxToSite, etc.) viahax 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--orderthe 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, andcontent), then runhax 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 buildafter theme modifications involving HAXCMSLitElement - Do not manually edit
custom-elements.jsonor generated manifest files - Use HAX CLI tools for site operations rather than manual file edits
- Ensure
site.jsonis 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-systemskill
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
- SKILL.md in the repositoryCheckingsrc/skills/hax-site-building/SKILL.md
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
[](https://verified-skill.com/skills/haxtheweb/create/hax-site-building)