list-classes

List class definitions and line ranges within Simulabra modules.

1|Updated Jan 8, 2022
One-click install
npx skills add https://github.com/simulabra/simulabra --skill list-classes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: list-classes
Source: https://github.com/simulabra/simulabra/tree/main/.claude/skills/list-classes
Command: npx skills add https://github.com/simulabra/simulabra --skill list-classes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables quick inspection of Simulabra class structures and shows where each class and its slots are defined, by line numbers to speed navigation and understanding of code.

Core Features & Use Cases

  • Class exploration: List the shape of a module's classes and where they are located in the file.
  • Slot visibility: See each class's slots and their documentation in one glance.
  • Use Case: Quickly identify where to inject or modify a class for a feature.

Quick Start

Run bun run bin/lister.js <file-path> to list classes defined in a module. Use this to quickly examine the shape of a class and where it's located in the file. Add an optional class name at the end to filter for the class of that name, if it exists. Schema: ClassName:startline-endline $.Slot#slotname doc value for the slot

Example output (illustrative): $ bun run bin/lister.js tests/lister.js ThisIsATest:7-23 $.Var#frob the frob thing $.Method#grobnicate what it says on the tin

$ bun run bin/lister.js tests/core.js Point Point:10-20 $.Var#x $.Var#y $.Method#dist

Frequently Asked Questions about list-classes

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

FAQPage Schema
How do I list all classes and their line numbers in a JavaScript module?

List classes by line numbers using `bun run bin/lister.js <file-path>`. The output shows ClassName:startline-endline for each class definition, enabling quick navigation to specific class locations within your Simulabra module.

Can I view class slots and their documentation alongside line numbers?

Yes. Running `bun run bin/lister.js <file-path>` displays each class with its slots and slot documentation beneath the line range, showing the complete structure of class members in one view.

How do I find a specific class definition by name in a file?

Filter to a single class by passing its name: `bun run bin/lister.js <file-path> ClassName`. This outputs only the matching class's line range and slot documentation, speeding up navigation in large modules.

What do I need to run class inspection on a Simulabra module?

You need Bun installed to execute the lister. Point it at a Simulabra module file path, and it analyzes class definitions and slots without additional setup or dependencies.

Why would I use line numbers to explore class structure?

Line numbers pinpoint exactly where each class and its members are defined in your file, letting you quickly navigate to inject features, modify existing slots, or understand code organization without scrolling blind.

Does this tool work with modules outside Simulabra?

This tool is scoped to Simulabra modules. It analyzes class definitions and slot documentation specific to Simulabra's architecture and analysis scenarios.