lens-debug

Diagnose TypeScript compile errors, runtime crashes, and missing references in Lens Studio projects.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/specs-devs/agentic-tools --skill lens-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lens-debug
Source: https://github.com/specs-devs/agentic-tools/tree/main/skills/lens-debug
Command: npx skills add https://github.com/specs-devs/agentic-tools --skill lens-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug TypeScript errors, runtime crashes, missing references, and common Lens Studio / Spectacles development issues. Load when investigating bugs, errors, or unexpected behavior in Spectacles templates.

Core Features & Use Cases

  • Guide through common error categories (compile-time, runtime, and missing references) with structured steps.
  • Provide practical debugging patterns for Lens Studio components, events, and console inspection.
  • Use case: when a scene fails to load, or a script component reports errors in the Inspector, apply the recommended workflow to identify and fix the issue.

Quick Start

Identify and fix the current Lens Studio issue by reviewing console messages, TypeScript types, and component wiring according to the steps above.

Frequently Asked Questions about lens-debug

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

FAQPage Schema
How do I fix TypeScript compile errors in Lens Studio?

Fix TypeScript compile errors in Lens Studio by reviewing console messages and TypeScript types, then applying structured debugging steps to identify and resolve type mismatches and missing references in your scripts.

Why does my Spectacles scene fail to load and report script errors?

Spectacles scene failures and script errors occur due to missing references or component wiring issues. Debug by inspecting console warnings and verifying component connections in the Inspector panel.

What is the best way to debug runtime crashes in Lens Studio?

The best way to debug runtime crashes in Lens Studio is using structured debugging workflows that inspect console warnings, check component wiring, and apply category-specific runtime checks.

Can I use this debugging workflow for Spectacles templates?

Yes, this debugging workflow is applicable to Spectacles templates, guiding you through identifying and resolving TypeScript errors, runtime crashes, and missing references specific to the Spectacles environment.

How do I resolve missing references reported in the Lens Studio Inspector?

Resolve missing references in the Lens Studio Inspector by applying the recommended debugging workflow, which provides step-by-step guidance to identify and fix component wiring and script dependencies.

What are common error categories when debugging Lens Studio scripts?

Common error categories when debugging Lens Studio scripts include compile-time errors, runtime crashes, and missing references, each requiring structured steps to identify and resolve the issue.