Skip to content

Lens.help() - Interactive tutorial for fresh Claude sessions #6

@williamsharkey

Description

@williamsharkey

Feature Request

Add Lens.help() that returns a concise cheat sheet for the Happy Path.

Proposed Output

Lens.help() ->
"HAPPY PATH CHEAT SHEET
======================
Navigation:
  state()         Desktop overview
  files()         List saved files  
  open('path')    Open in Studio

Reading (token-efficient):
  code(1, 20)     Lines 1-20 with numbers
  line(42)        Just line 42
  grep('pat')     Find matches

Editing (surgical):
  setLine(42, 'x')   Replace line
  insertLine(5, 'x') Insert at line
  deleteLine(10)     Delete line
  replace('a', 'b')  Find/replace all

Execution:
  save()          Save to disk
  run()           Execute as app

Example workflow:
  grep('bug') -> code(40,5) -> setLine(42,'fix') -> run()
"

Benefits

  • Fresh Claude can call Lens.help() first thing
  • Self-documenting API
  • No need to read external docs

Implementation

Simple function that returns the cheat sheet string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions