Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

java-decompileJava decompile 搜索

Agent Skill

用于辅助 Java 项目开发、面向对象设计、Spring 生态、Maven 或 Gradle 依赖和后端工程实践。它适合让 Agent 分析类结构、设计接口、整理服务分层、生成测试或检查常见代码坏味道。使用时需要结合项目已有架构、包结构和依赖版本,不应只按通用教程改代码;涉及数据库、事务、并发或框架配置时,应先确认运行环境和回归测试范围。

总安装

279

周安装

12

GitHub Stars

3

下载量

98
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:java-decompile(Java decompile 搜索)
来源仓库:https://github.com/quarkusio/quarkusdev-skills
仓库路径:skills/java-decompile
安装命令:
npx skills add https://github.com/quarkusio/quarkusdev-skills --skill java-decompile
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/quarkusio/quarkusdev-skills --skill java-decompile

简介

用于辅助 Java 项目开发、面向对象设计和 Spring 生态集成。

  • 适合分析类结构、设计接口、整理服务分层或生成测试代码。
  • 使用时需结合项目已有架构、包结构和依赖版本,避免仅按教程修改代码。
  • 涉及数据库、事务或并发配置时,应先确认运行环境和回归测试范围。
  • java-decompile 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Java Class Decompiler

Decompile and view the source code for Java classes from project dependencies.

Overview

This skill decompiles Java classes from Maven dependencies using Vineflower (a modern Java decompiler) via jbang, allowing you to inspect library internals, understand API implementations, and find method signatures without leaving your workflow.

When to Use

  • Need to understand how a library method is implemented
  • Looking for exact method signatures or parameter types
  • Exploring the internals of a dependency
  • Debugging issues related to third-party libraries
  • Finding which overloads are available for a class

Quick Reference

Input formats:

  • Fully qualified: com.fasterxml.jackson.databind.ObjectMapper
  • Simple name: ObjectMapper (will search for matches)

Tools used:

  • Vineflower decompiler (via jbang)
  • Maven classpath
  • Fallback: javap for bytecode disassembly

Requirements:

Implementation

Step 1: Determine the Class Name

Parse the user's input (available as $ARGUMENTS in command context):

  • If it contains dots (.), treat as fully qualified name
  • If it's a simple name, you'll need to search for it first

Step 2: Find the JAR Containing the Class

Convert class name to file path: replace . with /, append .class

Option A: Use Maven classpath file (fast for first search)

# Build classpath file if missing
if [ ! -f /tmp/quarkus-classpath.txt ]; then
  mvn dependency:build-classpath -Dmdep.outputFile=/tmp/quarkus-classpath.txt -q 2>/dev/null
fi

# Search for the class in classpath JARs
CLASSPATH=$(cat /tmp/quarkus-classpath.txt)

Option B: Search Maven local repository directly

find ~/.m2/repository -name "*.jar" | while read jar; do
  if jar tf "$jar" 2>/dev/null | grep -q "com/example/ClassName.class"; then
    echo "$jar"
    break
  fi
done

Option C: Check local build output (for project classes)

find . -path "*/target/classes/com/example/ClassName.class" 2>/dev/null

Step 3: Decompile the Class

Primary method: Vineflower via jbang

Vineflower works on JAR files, so extract the specific class or decompile the entire JAR:

# Option A: Decompile specific class from JAR
# Create temp directory for output
TEMP_DIR=$(mktemp -d)

# Decompile the JAR containing the class
jbang org.vineflower:vineflower:RELEASE "/path/to/the.jar" "$TEMP_DIR"

# Find and display the decompiled class
find "$TEMP_DIR" -name "ClassName.java" -exec cat {} \;

# Cleanup
rm -rf "$TEMP_DIR"
# Option B: For single class extraction (faster)
# Extract the class file first
CLASS_FILE="com/example/ClassName.class"
jar xf "/path/to/the.jar" "$CLASS_FILE"

# Decompile just that class
TEMP_DIR=$(mktemp -d)
jbang org.vineflower:vineflower:RELEASE "$CLASS_FILE" "$TEMP_DIR"
cat "$TEMP_DIR/com/example/ClassName.java"

# Cleanup
rm -rf "$CLASS_FILE" "$TEMP_DIR"

Fallback method: javap (if jbang/Vineflower unavailable)

javap -p -c -cp "/path/to/the.jar" "fully.qualified.ClassName"

Note: jbang automatically downloads and caches Vineflower on first use.

Step 4: Present Decompiled Source

Show the decompiled code with syntax highlighting. Highlight key elements:

  • Public API methods and their signatures
  • Constructor parameters
  • Important fields
  • Annotations
  • Package and imports

Step 5: Handle Multiple Matches

If the user provided a simple class name and multiple matches exist:

  1. List all matching classes with their packages
  2. Show which JAR each comes from
  3. Ask which one to decompile

Common Patterns

Searching within a specific JAR:

jar tf /path/to/some.jar | grep -i ClassName

Finding all classes with a name pattern:

# Use the class-index if available
grep -i "ClassName" "$HOME/.cache/quarkusdev-skills/class-index.txt"

Tips

  • Quarkus internal classes may be in target/classes/ rather than .m2
  • Vineflower produces more readable output than javap
  • jbang automatically manages Vineflower versions and dependencies
  • Use -p flag with javap to show private members
  • For inner classes, include the $ in the class name
  • Vineflower decompiles entire JARs - for single classes, extract first for faster results

Platform Notes

This skill works with:

  • Claude Code: Direct execution
  • Gemini CLI: Use equivalent file/bash tools
  • Codex: Use RunBash/ReadFile equivalents

Tool scripts are platform-independent (bash/python).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.91%
按下载量换算35

Claude

30.22%
按下载量换算30

Cursor

18.07%
按下载量换算18

Gemini CLI

9.9%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills