Skip to main content

code-understanding

Get type info, documentation, function signatures, and available methods for any symbol without reading source files. Use when you need to understand what a symbol is, what parameters a function takes, or what methods a type has. Activated by runectl lsp hover, signature-help, or completion.

跳到安装

来源信息

仓库
unstablebuild/rune
最近来源活动
2026年3月26日 19:53
检测到的 SKILL.md 语言
英语
星标
591
分支
34

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-understanding
description
Get type info, documentation, function signatures, and available methods for any symbol without reading source files. Use when you need to understand what a symbol is, what parameters a function takes, or what methods a type has. Activated by runectl lsp hover, signature-help, or completion.
allowed-tools
Bash(runectl:*)
# Code Understanding Inspect symbols without reading source files. ## runectl lsp hover Get hover info for a symbol — type signature and doc comments. ``` Usage: runectl lsp hover (<file> <line> <col> | <symbol>) [flags] Flags: -F, --format string Output format: table, json, or Go template ``` Use to understand what a symbol is without finding and reading its definition. Example — inspect the `workspaceapi.Cmd` type: ```bash $ runectl lsp hover workspaceapi.Cmd ```go type Cmd struct { // size=152 (0x98), class=160 (0xa0) Path string Dir string Args []string Env []string Stdin io.Reader Stdout io.Writer Stderr io.Writer Watcher ProcessWatcher // SysProcAttr is ignored if passed from a extension. SysProcAttr *syscall.SysProcAttr } ``` --- Cmd represents an external command being prepared to run... ``` Returns the full type signature and doc comment rendered as markdown. This gives you the complete struct layout without reading the source file. ## runectl lsp signature-help Get signature help at a position — parameter names and types. ``` Usage: runectl lsp signature-help <file> <line> <col> [flags] Flags: -F, --format string Output format: table, json, or Go template ``` Position must be inside a function call's argument list. Use to know a function's parameters without reading its definition. ## runectl lsp completion Get completion suggestions at a position. ``` Usage: runectl lsp completion <file> <line> <col> [flags] Flags: -F, --format string Output format: table, json, or Go template ``` Returns label, kind, and detail for each completion item. Use to discover available methods and fields on a type.
在 GitHub 查看