Claude Code plugin for AI-augmented Hoist application development, by Extremely Heavy Industries.
- MCP Servers - onboarding adds the Hoist reference MCP server to your project's
.mcp.json. It gives Claude access to Hoist docs and API lookups. From@xh/hoistv91 that is Hoist Docs (@xh/hoist-docs), one server for hoist-react and hoist-core. Earlier versions use the servers bundled with hoist-react and hoist-core. - Skills - project onboarding, version upgrades, worktree setup, a house writing style, and Hoist API reference for AI agents (see Available Skills below).
- Tool Pre-Approval - each skill pre-approves the MCP tools it calls while it runs. To allow them outside the skills, see Project-Level Setup.
- Claude Code CLI installed and authenticated.
@xh/hoistinstalled in your project'snode_modules. From v91, onboarding adds the@xh/hoist-docsdev dependency, which provides the MCP server. Before v91,@xh/hoistprovides it.
claude plugin marketplace add xh/hoist-aiclaude plugin install xh@hoist-ai --scope userThis installs one copy for every project and worktree on this machine. Install it once per machine. Do not also install it at project or local scope by hand.
On a machine with the plugin installed, Claude Code adds a project record by itself when a
session starts in a repo whose committed settings enable the plugin. That record is expected. Leave it alone.
A local record comes from an xh@hoist-ai entry in a folder's .claude/settings.local.json.
To find one, run claude plugin list --json and look for an xh@hoist-ai record with a scope
of local. Remove it from its projectPath. This also removes the entry:
claude plugin uninstall xh@hoist-ai --scope localClaude Code does not update a third-party marketplace by default. In a session, run /plugin,
open the Marketplaces tab, select hoist-ai, and select "Enable auto-update". Projects set up
with /xh:onboard-app also turn it on in their committed settings.
Updates run in the background shortly after startup. A running session keeps the version it
loaded, so run /reload-plugins or restart to use the new one. To update by hand:
claude plugin marketplace update hoist-ai
claude plugin update xh@hoist-ai --scope userClaude Code clones the marketplace over SSH first. Without a GitHub SSH key, for example on a
fresh Linux workstation, set CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1.
In any Hoist project directory:
/xh:onboard-app
This will:
- Detect your project and its installed Hoist versions.
- Show what it found and what it plans to configure.
- Declare the plugin in
.claude/settings.json, with auto-update on, so teammates get it. It also allows the plugin's skills, and checks that this machine installs it at user scope. - Generate or merge a CLAUDE.md with Hoist conventions (after your confirmation).
- Verify the reference tools: on v91 and later, by starting Hoist Docs once and listing the versions it serves.
| Skill | Command | Description |
|---|---|---|
| Onboard | /xh:onboard-app |
Configure AI setup for a Hoist project |
| Upgrade | /xh:hoist-upgrade |
Upgrade @xh/hoist across one or more major versions |
| Worktree | /xh:setup-worktree |
Create a runnable git worktree for a Hoist app |
| Clear Writing | /xh:clear-writing |
House style for CHANGELOG entries, PR descriptions, docs, and comments |
| Right Size | /xh:right-size |
Weighs the complexity a change adds against the cases it covers, and offers a menu from simplest to most complete. Loads itself when you ask whether a change is as simple as it can be, or say it feels over-engineered |
| hoist-react reference | /xh:using-hoist-react-reference |
Routes Hoist React questions to the docs and TypeScript API tools. Loads itself when you write Hoist code |
| hoist-core reference | /xh:using-hoist-core-reference |
Routes hoist-core questions to its docs and symbol tools. Loads itself when you write Grails/Groovy code, and installs or removes the bundled tools of hoist-core v39 to v44 |
The worktree skill runs a script that needs no agent. Editor integrations, git hooks, and plain shells can call it directly:
provision-worktree.sh --repo <abs path> --branch <name> [--base <ref> | --existing-branch]The script detects the base ref, the destination, the locals, the toolchain, and the package
manager. On success, stdout holds only the worktree path. Progress goes to stderr. Exit code 3
means the request needs a decision, such as a new branch name that already exists. Run it with
--help for the full contract.
Call it from the installed plugin, so it matches the skill. Run claude plugin list --json, take
the xh@hoist-ai record with scope user, and append
skills/setup-worktree/scripts/provision-worktree.sh to its installPath. As a fallback, use
the highest version under ~/.claude/plugins/cache/hoist-ai/xh/. That layout belongs to Claude
Code and can change. Do not call the copy in ~/.claude/plugins/marketplaces/hoist-ai/: that
clone tracks main, so it can run ahead of the installed version.
The script uses the caller's PATH and JAVA_HOME. A hook or editor process often skips the
login shell, so set both before you call the script. Do not capture stdout through an
interactive shell such as zsh -ilc: terminal integrations can write escape codes to stdout.
Outside a Hoist repo, the script still copies locals and installs dependencies. It skips the
Hoist steps. To copy extra gitignored files, add a .worktreeinclude file with gitignore
patterns to the repo root.
/xh:onboard-app adds this block to the project's committed .claude/settings.json. To set up a
project by hand, add it yourself:
{
"extraKnownMarketplaces": {
"hoist-ai": {
"source": {
"source": "github",
"repo": "xh/hoist-ai"
},
"autoUpdate": true
}
},
"enabledPlugins": {
"xh@hoist-ai": true
}
}The block registers the marketplace with auto-update on, and turns the plugin on for the project. Claude Code reads it only after a developer accepts the folder's trust dialog. It does not install the plugin: each developer installs it once per machine, as in Installation.
Onboarding also adds a Skill(xh:<name>) entry to permissions.allow for each of the plugin's
skills, such as Skill(xh:clear-writing). Claude Code has no rule that matches every skill of a
plugin, so each skill needs its own entry. Run /xh:onboard-app again after an update that adds a
skill.
A plugin cannot grant permissions. To stop prompts, add the Hoist tools to the same file. From
@xh/hoist v91, with Hoist Docs:
{
"enabledMcpjsonServers": ["hoist-docs"],
"permissions": {
"allow": ["mcp__hoist-docs__*"]
}
}Before v91, with the tools bundled with hoist-react and hoist-core:
{
"enabledMcpjsonServers": ["hoist-react", "hoist-core"],
"permissions": {
"allow": [
"mcp__hoist-react__*",
"mcp__hoist-core__*",
"Bash(npx hoist-docs:*)",
"Bash(npx hoist-ts:*)",
"Bash(./bin/hoist-core-docs:*)",
"Bash(./bin/hoist-core-symbols:*)",
"Bash(./bin/hoist-core-mcp:*)",
"Bash(./gradlew installHoistCoreTools:*)"
]
}
}Once onboarding has configured a project, these MCP tools are available. With Hoist Docs
(@xh/hoist v91 and later) they are mcp__hoist-docs__*, and serve hoist-react, hoist-core and
Hoist Chat Kit: pass library: "react", "core" or "chat-kit" to scope a call. Before v91,
hoist-react's are mcp__hoist-react__*, and hoist-core's (v39 to v44) are
mcp__hoist-core__hoist-core-*.
| Tool | Description |
|---|---|
hoist-ping |
Verify MCP server connectivity, and list the Hoist versions served |
hoist-search-docs |
Search framework documentation by keyword |
hoist-list-docs |
Browse available documentation by category |
hoist-read-doc |
Read one document by ID (@xh/hoist v86+) |
hoist-search-symbols |
Find classes, interfaces, types and their members |
hoist-get-symbol |
Get detailed type signatures and JSDoc |
hoist-get-members |
List members of a class or interface |
Apache-2.0