Skip to content

Commit d103188

Browse files
committed
docs(skill): describe the installer's Homebrew preference and HOTDATA_NO_BREW
1 parent fdaae29 commit d103188

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ pre-release-replacements = [
105105
{ file = "skills/hotdata/subskills/search/SKILL.md", search = "^version: .+", replace = "version: {{version}}", exactly = 1 },
106106
{ file = "skills/hotdata/subskills/analytics/SKILL.md", search = "^version: .+", replace = "version: {{version}}", exactly = 1 },
107107
{ file = "skills/hotdata/subskills/geospatial/SKILL.md", search = "^version: .+", replace = "version: {{version}}", exactly = 1 },
108+
{ file = ".claude-plugin/plugin.json", search = "\"version\": \"[^\"]+\"", replace = "\"version\": \"{{version}}\"", exactly = 1 },
108109
# README.md no longer carries a hardcoded version badge — it tracks GitHub releases.
109110
]
110111

‎scripts/check-skills.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ if [ "$REQUIRE_VERSION" = 1 ]; then
125125
fail=1
126126
fi
127127
done
128+
if [ -f .claude-plugin/plugin.json ]; then
129+
pv="$(jq -r .version .claude-plugin/plugin.json 2>/dev/null || true)"
130+
if [ "$pv" != "$crate" ]; then
131+
echo "error: .claude-plugin/plugin.json declares version $pv, Cargo.toml is $crate" >&2
132+
fail=1
133+
fi
134+
fi
128135
[ "$fail" = 0 ] && echo "→ skills: version ok ($crate)"
129136
fi
130137

‎skills/hotdata/SKILL.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ hotdata <command> [args]
1414

1515
Or if installed on PATH: `hotdata <command> [args]`
1616

17+
## Prerequisites: CLI installation
18+
19+
If the `hotdata` executable is not found on PATH or under `~/.hotdata/cli/`, prompt the user to install it:
20+
21+
```sh
22+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/hotdata-dev/hotdata-cli/releases/latest/download/install.sh | HOTDATA_NO_SKILLS=1 sh
23+
```
24+
25+
(The `HOTDATA_NO_SKILLS=1` flag prevents duplicate skill installations when running inside the Claude Code plugin.) The installer uses Homebrew (`brew install hotdata-dev/tap/cli`) when `brew` is present; otherwise it places a prebuilt binary at `~/.hotdata/cli/hotdata`. `HOTDATA_NO_BREW=1` forces the prebuilt path.
26+
1727
## Sub-skills (loaded on demand)
1828

1929
This is the only top-level hotdata skill. Three specialized guides ship **bundled inside it** under `subskills/` and are not separate skills — **`Read` the matching file only when the task needs it** (progressive disclosure), then follow it:

0 commit comments

Comments
 (0)