editor-interrogation

Inspect TypeScript inferred types via hover and go-to-definition in the editor.

Updated Jul 17, 2017
One-click install
npx skills add https://github.com/luyi985/lyi-bash --skill editor-interrogation
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editor-interrogation
Source: https://github.com/luyi985/lyi-bash/tree/main/ai/skills/editor-interrogation
Command: npx skills add https://github.com/luyi985/lyi-bash --skill editor-interrogation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers interrogate and understand TypeScript's type system directly from the editor, surfacing what inference, narrowing, and library types actually mean in code.

Core Features & Use Cases

  • Real-time type inspection: hover to reveal inferred types, and go to Definition to inspect library type implementations.
  • Debugging type behavior: diagnose unexpected widening/narrowing, verify function return types, and explore type relationships in unfamiliar codebases.
  • Learning through exploration: validate library typings and build intuition for TypeScript rules during real-world projects.

Quick Start

Open a TypeScript file and hover over symbols to inspect inferred types.

Frequently Asked Questions about editor-interrogation

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

FAQPage Schema
How do I inspect TypeScript inferred types directly in my editor?▼

To inspect TypeScript inferred types in the editor, hover over symbols to reveal the compiler's actual inferences and use go-to-definition to navigate library typings. This surfaces real-time type behavior for immediate code comprehension.

Why does TypeScript type narrowing behave unexpectedly in my code?▼

TypeScript type narrowing behaves unexpectedly due to widening or narrowing rules applied by the compiler. Diagnose this by hovering over symbols to inspect actual type inferences and verify function return types against expected type relationships.

What is the best way to understand unfamiliar TypeScript codebases and library typings?▼

The best way to understand unfamiliar TypeScript codebases is exploring library typings through hover-based type inspection and go-to-definition navigation. This validates type relationships and builds intuition for compiler rules during real-world projects.

Can I debug TypeScript type inference without external tools?▼

Yes, you can debug TypeScript type inference using in-editor inspection workflows. Hover over symbols to reveal inferred types, verify function return types, and navigate to definitions to diagnose unexpected widening or narrowing directly in your environment.

Does editor interrogation work for diagnosing TypeScript refactoring issues?▼

Yes, editor interrogation works for diagnosing TypeScript refactoring issues by providing safe refactoring notifications. Inspecting inferred types and exploring type relationships helps verify type behavior before applying changes to unfamiliar codebases.

What are the limitations of hover-based type inspection in TypeScript?▼

Hover-based type inspection in TypeScript is limited to revealing statically inferred types and cannot execute runtime code. It diagnoses compiler widening and narrowing rules but does not validate dynamic behavior or runtime type mismatches.