用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill codelens-source-lookup命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | codelens-source-lookup |
| description | | Use when this capability is needed. |
This skill enables viewing source code for any JVM class accessible to the project.
Ensure the CodeLens server is running for your project:
codelens start --project /path/to/project
To look up project class source, the project must be compiled — CodeLens
discovers project classes by scanning compiled bytecode (build/classes), so
build it first (./gradlew build -x test). Library and JDK source lookups work
regardless. If project classes aren't found, check codelens classes stats --json
(a projectClassCount of 0, also flagged by a warning: from start, means
rebuild then codelens refresh).
Output: in a terminal these commands print the source code directly. Pass
--json for the structured envelope documented in
FORMATS.md (source.content, filePath, language,
…) — that JSON shape is also auto-selected when output is piped or captured.
codelens source show <fully-qualified-class-name>
Examples:
# Project class
codelens source show com.example.MyHandler
# Library class (auto-downloads source JAR if available)
codelens source show com.google.common.collect.ImmutableList
# JDK class
codelens source show java.util.concurrent.CompletableFuture
Extract a specific method from a class:
codelens source method <class-fqn> <method-name>
Options:
--param-types <types> - Disambiguate overloaded methods (comma-separated parameter types)--context <n> - Include n lines before/after the methodExamples:
# Simple method
codelens source method com.example.UserService getUser
# Overloaded method - specify parameter types
codelens source method com.example.UserService findUsers --param-types "String,int"
# With surrounding context
codelens source method com.example.MyHandler handle --context 5
codelens source show <fqn> returns the full resolved source for the class
(default behavior). Richer output modes — stub generation, signatures-only,
javadoc extraction, visibility filtering, and Java/Kotlin language
switching — exist on the server endpoint but are not yet exposed on the CLI.
They are queued as a follow-up Go-CLI enhancement; once landed, this section
will be expanded with --format, --visibility, and --lang examples.
CodeLens resolves source in this order:
src.zip or JDK modulesThe server endpoint accepts query parameters to disable decompilation fallback or force a fresh source-JAR download, but those toggles are not yet exposed on the CLI. They are queued alongside the format/visibility flags in the follow-up Go-CLI enhancement noted above.
codelens-jvm-analysis skill to find classes first, then view their sourcecodelens-jvm-analysis - Find classes and methods to viewcodelens-ratpack-analysis - Analyze Ratpack-specific handler sourceSource: charliek/codelens — distributed by TomeVault.