Skip to content

feat: add HAX CLI Claude Code plugin + marketplace#28

Open
rickmanelius wants to merge 2 commits into
haxtheweb:mainfrom
rickmanelius:worktree-claude-hax-plugin
Open

feat: add HAX CLI Claude Code plugin + marketplace#28
rickmanelius wants to merge 2 commits into
haxtheweb:mainfrom
rickmanelius:worktree-claude-hax-plugin

Conversation

@rickmanelius

Copy link
Copy Markdown

Description of Changes

Adds an official Claude Code plugin for the HAX CLI, and turns this repo into a Claude Code plugin marketplace so it can be installed directly.

What changed

  • Marketplace (.claude-plugin/marketplace.json) — registers haxtheweb as a plugin marketplace exposing the hax plugin.
  • hax plugin (plugins/hax/):
    • Auto-install hook — a SessionStart hook checks for hax on PATH and installs @haxtheweb/create globally once if missing (opt out with HAX_PLUGIN_NO_AUTOINSTALL=1).
    • hax skill — full command-surface knowledge (web components, sites, content/node ops, imports, skeletons, publishing) plus HAX conventions (JavaScript-only, DDD design tokens, haxProperties), loaded automatically when HAX comes up.
    • Slash commands for the top workflows: /hax:quickstart, /hax:site, /hax:webcomponent, /hax:audit, /hax:serve, /hax:publish.
  • Requirements doc (docs/) — the v1 requirements that scoped this work.

Why this change was needed

Lets users install and drive the HAX CLI from inside Claude Code with a golden-path onboarding (/hax:quickstart → scaffold a HAXsite, serve it, hand back a live URL) instead of learning the CLI surface by hand.

How to test

  1. /plugin marketplace add haxtheweb/create (or a local checkout path)
  2. /plugin install hax@haxtheweb
  3. Start a new session and confirm the auto-install hook puts hax on PATH (or that it's skipped with HAX_PLUGIN_NO_AUTOINSTALL=1).
  4. Run /hax:quickstart and confirm it scaffolds a HAXsite, serves it, and returns a live URL.

Notes

  • Additive only — 13 new files, no changes to existing CLI code.
  • The plugin pins to the published @haxtheweb/create package.

rickmanelius and others added 2 commits June 29, 2026 20:06
Make this repo a Claude Code plugin marketplace and ship the `hax` plugin
so new users can discover, install, and drive the HAX CLI from inside
Claude Code, reaching a live HAXsite in the browser on their first run.

- .claude-plugin/marketplace.json: in-tool discovery
  (`/plugin marketplace add haxtheweb/create`)
- plugins/hax/.claude-plugin/plugin.json: manifest
- plugins/hax/hooks/: SessionStart hook auto-installs @haxtheweb/create
  when `hax` is missing (opt out with HAX_PLUGIN_NO_AUTOINSTALL=1)
- plugins/hax/skills/hax/SKILL.md: onboarding-scoped CLI knowledge
- plugins/hax/commands/: /hax:quickstart (golden path) plus site,
  webcomponent, serve, audit, publish

Validated with `claude plugin validate` (plugin + marketplace).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Brainstorm/requirements for the cross-tool (Claude Code + Codex) HAX
onboarding layer. Documents the golden path, scope by platform, and the
remaining Codex surface (AGENTS.md quickstart + custom prompt) deferred
beyond the Claude plugin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rickmanelius rickmanelius requested a review from btopro as a code owner June 30, 2026 20:43
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

All contributors have signed the CLA. Thank you!
Posted by the CLA Assistant Lite bot.

@rickmanelius

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@rickmanelius

Copy link
Copy Markdown
Author

It looks like my Compound Engineering work pulled over, which is probably not necessary.

I'd also like to run a more comprehensive set of tests off this fork/branch before this is merged, but I wanted to open it now in case there's any initial feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant