/ls-clad:ensure-package-installedfrom ls-clad
Verifies a Lens Studio package is installed, installs it from the Asset Library if missing, and returns the installed descriptor and version. Use when a workflow depends on a specific Lens Studio package.
Ships in ls-clad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use ListInstalledPackagesTool with includeDetails: false to get all installed packages.
Compare package_name against each package's canonical descriptor name and
display name using an exact case-insensitive match. Never use a substring
match: similarly named examples, forks, and companion packages may all be
installed at once.
Also match the package's other name from /specs-package-renames (Lens Studio 5.25
renamed the Specs packages, e.g. SpectaclesUIKit -> UIKit). A package installed under its
legacy name counts as installed: record it and skip to Step 4. Never install the 4.0 package
beside its legacy copy. Treat a trailing <n> (UIKit 2) as a second copy of the same
package and report it.
If not installed, use SearchLensStudioAssetLibrary with:
query: the package_name valuetype: "Package" (if the tool supports type filtering)Apply the same exact case-insensitive name match to the search results. Continue only when exactly one result matches; otherwise report the missing or ambiguous results. Record its URI/identifier and descriptor identity for verification.
Use InstallLensStudioPackage with the selected result's URI as packageUri
and its canonical display name as assetName, following the loaded tool schema.
Do not put the display name in packageUri.
Use ListInstalledPackagesTool with includeDetails: false and select the exact
descriptor identity recorded above. Fail if it is absent or ambiguous; do not
fall back to a fuzzy name match.
Return the matched package descriptor and installed version to the calling
workflow. The calling skill owns how the package is used; it confirms symbols
in the installed declarations under Cache/TypeScript/Src/Packages/ (read-only).
When the installed version is older than the line the calling skill targets
(for example a pre-4.0 Specs package in a Lens Studio 5.25 project), report it
and follow /specs-package-renames. Update only on the user's confirmation,
through update-lens-packages; never update
silently or replace a version the user is deliberately on.
Report:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lens-studio-devs/ls-extensions --plugin ls-clad74 skills in this plugin
/build-imageGenerate a 2D image from a text prompt via SPECS text-to-image, to Assets/GeneratedImages/<Name>.png (build-mesh reference, texture, or screen-space). Transparent RGBA cutout, cropped tight, by default; opt out for an opaque image.
/build-meshGenerate a 3D mesh, model, or asset for a Lens — build, create, or make props, characters, scenery. Four peer backends chosen per asset: SPECS text-to-3D (static default — best texture fidelity, async minutes-long jobs), FAST3D (faster static AI props), code-authored MeshBuilder via the mesh-builder-scripting skill (articulated, animated, parametric TypeScript content), and Blender voxel (blocky aesthetic; the only source of rigged GLBs). GLB backends return the file plus AABB metadata so the caller can size colliders and place the mesh in the world.
/build-musicGenerate musical phrases, chord progressions, beats, jingles, and short pieces via local algorithmic synthesis. Sample-free, license-clean, fully offline. Scale-degree composition, pattern-based arrangement, frequency-separated mixing rules. Outputs 44.1 kHz stereo WAV to Assets/GeneratedSFX/./build-sfxGenerate non-pitched sound effects (UI, impacts, sweeps, foley, ambient textures, retro 8-bit) via local algorithmic synthesis. Outputs 44.1 kHz WAV to Assets/GeneratedSFX/. For musical phrases or chord progressions use /build-music instead./camera-and-renderingCamera configuration, 2D/screen-space rendering, RenderMeshVisual patterns, and visibility debugging for Lens Studio scene construction. Use when setting up cameras (orthographic/perspective), creating screen-space content (ScreenTransform, Image, Text), debugging invisible objects, or planning any scene involving rendering config./editor-apiExecuteEditorCode contract and Editor API paradigms — runtime, access patterns, gotchas, references. Use before writing Editor API TS (`pluginSystem.findInterface`, `LensStudio:*`), grepping `editor.d.ts`, or routing to scene/asset-graphql.Other plugins' skills for the same job