mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
The project-root self-install guard lived only in the CLI handler, so the web UI could still copy the project root into its own .skillshare/skills/ subtree in project mode. Extract the check into a shared install.RejectProjectRootLocalInstall and apply it in handleInstall and handleInstallBatch, returning 400 with the same guidance. Also restructure the rejection message into a cause line plus an actionable "Run '...'" hint, matching the project's error convention.