new-lens-script

Generate Lens Studio TypeScript component scripts from templates into Assets/<TemplateName>/Scripts/.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of Lens Studio / Spectacles TypeScript component scripts by providing a structured template and conventions to accelerate development.

Core Features & Use Cases

  • Template-driven script generation: produce a TypeScript component script following project conventions tailored to a chosen Lens Studio template.
  • Insider-guided structure: ensures a consistent script skeleton with header, lifecycle hooks, inputs, settings, and logging scaffolding.
  • Use Case: when asked to create a new script or component for a Spectacles template, this skill generates the required source file placed in the correct Assets/<TemplateName>/Scripts/ location.

Quick Start

Create a new TypeScript script for a Lens Studio template using the specified component name, and place it under Assets/<TemplateName>/Scripts/.

Frequently Asked Questions about new-lens-script

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

FAQPage Schema
How do I generate a TypeScript component script for a Lens Studio template?

To generate a Lens Studio TypeScript component script, specify the component name and target template. The script is automatically created with lifecycle hooks, inputs, settings, and logging scaffolding in the correct project directory.

What is the correct file path for placing new Spectacles scripts in Lens Studio?

New Spectacles scripts must be placed in the Assets/<TemplateName>/Scripts/ directory. This convention ensures the generated TypeScript component is correctly organized within the specific Lens Studio template structure.

What conventions does a generated Lens Studio TypeScript script follow?

A generated Lens Studio TypeScript script follows project conventions by including a consistent skeleton with a header, lifecycle hooks, inputs, settings, and logging scaffolding. This ensures uniform script structure across multiple Lens Studio templates.

Can I use this script generation workflow for multiple Lens Studio templates?

Yes, the script generation workflow applies to developers creating new script components across multiple Lens Studio templates. It tailors the TypeScript component script to the chosen template and places it in the correct Assets directory.

What is the best way to structure a new Lens Studio component script?

The best way to structure a Lens Studio component script is using a template-driven workflow that enforces a consistent script skeleton with headers, lifecycle hooks, inputs, settings, and logging scaffolding to accelerate development.