ensure-package-installed

Verifies and installs Lens Studio packages from the Asset Library.

16|2|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/lens-studio-devs/ls-extensions --skill ensure-package-installed-lens-studio-devs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ensure-package-installed
Source: https://github.com/lens-studio-devs/ls-extensions/tree/main/plugins/ls-clad/skills/ensure-package-installed
Command: npx skills add https://github.com/lens-studio-devs/ls-extensions --skill ensure-package-installed-lens-studio-devs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Lens Studio workflows often depend on specific packages like SpectaclesUIKit or SpectaclesInteractionKit, and missing packages break downstream steps. This Skill checks whether a required package is installed and installs it from the Asset Library when it is not, including handling the UIKit dependency on SpectaclesInteractionKit. ## Core Features & Use Cases - Installed Package Verification: Lists installed packages and matches the requested package name case-insensitively before attempting any installation. - Asset Library Installation: Searches the Lens Studio Asset Library for the package and installs it using the matched result URI. - Dependency Ordering: Automatically ensures SpectaclesInteractionKit is present before installing SpectaclesUIKit, since UIKit depends on SIK. - Use Case: Before running a Spectacles UI workflow, invoke this Skill with SpectaclesUIKit to guarantee both SIK and UIKit are installed and verified in the project. ## Quick Start Ask the agent to ensure the SpectaclesUIKit package is installed in the current Lens Studio project.

Frequently Asked Questions about ensure-package-installed

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install a Lens Studio package from the Asset Library?

Search the Asset Library for the package by name, extract its URI from the matching result, and install it with the InstallLensStudioPackage tool. This Skill automates that flow and verifies the package appears in the installed list afterward.

How to check if a package is already installed in Lens Studio?

Use ListInstalledPackagesTool to retrieve all installed packages, then scan the results for a case-insensitive substring match against the package name. If a match is found, no installation is needed.

Does SpectaclesUIKit require SpectaclesInteractionKit?

Yes, SpectaclesUIKit depends on SpectaclesInteractionKit. When installing UIKit, the Skill first runs the same ensure-installed flow for SpectaclesInteractionKit before proceeding with the UIKit installation.

What happens if the package is not found in the Asset Library?

The Skill reports installation failure along with the search results it found. It also suggests installing the package manually through Window > Asset Library inside Lens Studio.

Can I use this for packages other than SpectaclesUIKit?

Yes, the Skill supports any Lens Studio package by passing its name as the package_name argument. The special dependency handling only applies when the package name contains UIKit.