Ship the npx installer (bin/cli.mjs) so users can install the img2threejs skill with one command
Why
The img2threejs skill currently requires a manual git clone into one of several hard-coded skills directories (~/.claude/skills/, ~/.codex/skills/, ~/.config/opencode/skills/). For users on more than one agent host, the only documented way to keep them aligned is a manual symlink dance — and the README itself warns that following the install step literally creates the divergent layout the next step warns against.
A working branch (origin/feat/npx-skill-installer, commits bb2314f + 675306a) already implements the full fix — bin/cli.mjs (917 lines, zero deps, Node built-ins only), a root package.json publishing the img2threejs CLI to npm, a CI workflow npm-publish.yml that publishes from release tags, and 600 lines of tests in forge/tests/test_skill_installer.py. The branch has been open since 2026-08-21 and never merged.
- PR #61 was closed as superseded by the img2 harness approach (plugin management — different scope)
- PR #99 (the original re-pick of the branch) was closed 2026-09-02 without merge
- The harness approach (
img2threejs/img2) solved plugins, not the skill itself; the README still saysgit clone
This change re-picks up the branch, rebases it onto current main (two months of drift), runs the 600-line test suite, end-to-end installs on this VPS, and ships it via npm.
What Changes
- Rebase
origin/feat/npx-skill-installeronto currentmain— resolve conflicts inREADME.md/CHANGELOG.md/SKILL.md/ROADMAP.md; preservebb2314f+675306aintact - Land
bin/cli.mjs— interactive + flag-driven installer: detects Claude Code / Codex CLI / OpenCode hosts, links every selected host to one canonical checkout at~/.img2threejs/repo,install/update/uninstall - Land root
package.json— publishesimg2threejsCLI to npm (claim@img2threejsscope — currently unclaimed, 0 packages) - Land
.github/workflows/npm-publish.yml— fires onv*tags, runs tests before publish,--provenanceonly in publish job - Fix version-drift bug in
beta-release.yml(currently touchesSKILL.mdalone — rewrite all four files in one commit) - Add
forge/tests/test_skill_installer.py— 600 lines of tests (shebang, nopreparelifecycle, bare-npxforbidden, EOF defaults to no) - End-to-end verify on VPS — install / update / uninstall / re-install idempotency
Status of working branch
675306a ci: publish the installer to npm from a release tag
bb2314f feat: install the skill with npx instead of a hand-run git clone12 files changed, +1760 / -13. Local main is at 6e60b5e (current); branch needs rebase but the changes are concentrated and additive.
Plan
The OpenSpec change ship-npx-installer is scaffolded in img2threejs-studio/openspec/changes/ship-npx-installer/ with:
proposal.md— Why / What Changes / Capabilities / Impacttasks.md— 6 numbered groups, each checkbox with a verification stepspecs/skill-installer/spec.md— 14 ADDED Requirements covering: canonical checkout + symlink, adoption of existing clones, channel-based update, receipt-based uninstall, zero-dep constraint, shebang, EOF handling, env-var honoring, qualified-npxrule, CI provenance, dist-tags, version-sync, Windows-as-unverified
openspec validate ship-npx-installer --strict passes.
Open questions for maintainer
- Is the branch
feat/npx-skill-installerstill the right base, or do you want a fresh branch given the 2-month drift? - Claim
@img2threejsnpm scope under thekokorolxaccount (4 packages already published there) — confirm before I touch npm - Is there an existing
NPM_TOKENor do we need to provision it for the workflow? - First publish version — the branch ships as
1.4.4-beta.2; currentmainis post-v2.0.0. Coordinate on first stable tag (likelyv2.1.0given the recent character-split changelog) - Windows link creation is unverified by the original branch — accept that as a documented caveat, or block on Windows CI first?
Refs #61, #99.
Source: img2threejs/img2threejs