Skip to content
insight logo

Insight

insight

Understand code in one call. Structure, relationships, history - all at once.

SKILL.md

Full skill instructions

insight

One call to understand anything. No more 5+ tool calls to figure out what a file does.

First: insight

insight({ target: 'src/​TaskRunner.ts' })

Returns everything you need:

  • Structure (symbols, imports, exports)
  • Relationships (callers, callees, dependencies)
  • Recent changes (git history)
  • Metrics and notes

Why This Wins

The ProblemMultiple Toolsinsight Solution
Understand a filelist_symbols + get_imports + git_log + ...One insight call
Understand a classread_symbol + get_callers + find_references + ...One insight call
Understand a moduleRead each file + trace dependencies + ...One insight call

What You Get

For a File

  • Language and summary
  • All symbols with kinds and lines
  • Imports and exports
  • Who imports this file
  • Recent git changes
  • Complexity metrics
  • Notes (warnings, suggestions)

For a Directory

  • Summary of the module
  • Files and subdirectories
  • Entry points (index files)
  • Key exported symbols
  • External and internal dependencies
  • Recent changes across all files

For a Symbol

  • Kind, file, line
  • Code (truncated for large symbols >50 lines)
  • Function signature
  • Methods section for classes (constructors and methods)
  • What it calls (filtered - excludes noisy built-ins like push, map, slice)
  • What calls it
  • Related symbols in same file
  • Recent changes

Smart Handling

  • Ambiguous names: Shows disambiguation when multiple symbols match
  • Better errors: Suggests similar symbols when exact match not found
  • Large code: Truncated with line count to prevent context overflow

Examples

Understand a file

insight({ target: 'src/​server.ts' })
insight({ target: 'packages/​syntax/​src/​tools/​listSymbols.ts' })

Understand a directory

insight({ target: 'src/​utils' })
insight({ target: 'packages/​task-runner' })

Understand a symbol

insight({ target: 'TaskRunner' })
insight({ target: 'handleRequest' })

Options

OptionDefaultDescription
includeCodetrueInclude source code in output
maxChanges5Max recent git commits to show

When to Use

  • Starting work on unfamiliar code
  • Before making changes (understand impact)
  • Reviewing what a module does
  • Getting oriented in a new codebase

suggest_refactoring

Find tech debt and improvement opportunities before you start working.

suggest_refactoring({ target: 'src/​api.ts' })

Returns prioritized suggestions:

  • High Priority - Should fix now (long functions, high coupling)
  • Medium Priority - Worth addressing (large files, many symbols)
  • Low Priority - Nice to have (naming, minor cleanup)

What It Detects

IssueDetectionSuggestion
Long functions (>50 lines)Code analysisExtract smaller functions
Large files (>500 lines)MetricsSplit into modules
High coupling (>15 imports)Import analysisReduce dependencies
Unused functionsCall graphRemove dead code
Complex symbols (many callees)Call analysisSimplify
Poor namingPattern matchingRename suggestions

Focus Your Analysis

suggest_refactoring({ target: 'src/', focus: 'coupling' })
suggest_refactoring({ target: 'src/', focus: 'complexity' })
suggest_refactoring({ target: 'src/', focus: 'unused' })

Focus options: all, complexity, coupling, unused, tests, naming

When to Use suggest_refactoring

  • Before major changes - understand existing tech debt
  • Code review - get automated quality feedback
  • Planning refactoring - prioritize what to fix
  • Learning a codebase - find the problem areas

Derived, Not Stored

Everything is computed fresh from current code. Never stale.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View