update-lens-packages

Updates installed Lens Studio packages to latest or pinned versions via the Editor API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Lens Studio projects rely on .lspkg packages like SpectaclesInteractionKit (SIK), UIKit, and SyncKit that fall out of date, and manually checking versions and pulling updates through the editor UI is repetitive and error-prone. ## Core Features & Use Cases - Update Discovery: Lists all installed NativePackageDescriptor assets with their versions and flags which ones have updates available via canPullUpdate. - Pull Updates: Applies the latest Asset Library version to one or all packages using the blocking pullUpdate call with an extended ExecuteEditorCode timeout. - Version Pinning: Searches the remote Asset Library and applies a specific package version with selectVersionFromAssetLibrary when a user requests an exact release. - Use Case: A developer asks to "upgrade SIK to v0.17.3"; the skill searches the Asset Library, locates the matching resource URI, and applies that exact version, then re-lists packages to verify. ## Quick Start Ask the assistant to update all outdated packages in the open Lens Studio project and report the old and new versions.

Frequently Asked Questions about update-lens-packages

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

FAQPage Schema
How do I update packages in a Lens Studio project?

List installed NativePackageDescriptor assets via the Editor.IPackageRegistry interface, check canPullUpdate for each, then call pullUpdate on the packages you want to update. Re-list packages afterward to verify the new versions.

How to install a specific version of SpectaclesInteractionKit?

Search the Asset Library with IAssetLibraryProvider using the package name as the filter, find the resource whose URI contains the target version string, then call selectVersionFromAssetLibrary with the descriptor, asset, and resource.

Why does pullUpdate time out in Lens Studio?

pullUpdate is synchronous and downloads package assets before returning, so the default 30-second ExecuteEditorCode timeout can be too short. Set timeoutMs to 300000 for update loops and verify by re-listing packages after the call returns.

Why does Asset Library search fail with gRPC errors in Lens Studio?

Asset Library searches require being logged into a Snapchat account inside Lens Studio. If searches fail with gRPC errors, log in via Menu Bar > My Lenses > Login and retry the fetchAsync request.

What does canPullUpdate false mean for a Lens Studio package?

A false value means no Pull Update candidate is currently available; the package may already be up to date. To confirm whether a newer version exists, search the Asset Library and use version selection instead.