/dejared:jar-analysisfrom dejared
Explores, searches, reads, and decompiles Java JAR/WAR/EAR/AAR files via the dejared MCP server. Useful for inspecting third-party libraries, embedded configs, class metadata, and chasing stack traces.
Ships in dejared. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reach for these tools, never the shell, whenever the task touches the inside of a Java artifact:
| You would reach for... | Use this instead |
|---|---|
jar tf some.jar | dejared_list_packages / dejared_list_classes |
jar tf some.jar | grep -v .class | dejared_list_resources |
unzip -p some.jar application.yml | dejared_read_resource |
jar tf some.jar | grep -i FooBar | dejared_search_class |
strings some.jar | grep http | dejared_search_string |
javap -p com.foo.Bar | dejared_get_metadata |
javap -p across a package | dejared_dump_package_metadata |
| Running CFR / Vineflower / Procyon manually | dejared_decompile_class |
Applies to .jar, .war, .ear, .aar and any artifact under ~/.m2/repository, ~/.gradle/caches, build/libs/, target/, lib/, or libs/. All calls need an absolute path to the archive.
| Tool | Cost | Purpose |
|---|---|---|
dejared_list_packages | Cheap | List all packages with class counts |
dejared_list_classes | Cheap | List classes in a package (recursive=true for sub-packages) |
dejared_list_resources | Cheap | List all non-class resource files with sizes |
dejared_read_resource | Cheap | Read a text resource file from inside a JAR (content-based detection, no extension restrictions) |
dejared_dump_package_metadata | Cheap | Batch metadata for multiple packages at once (annotations, fields, methods via ASM) |
dejared_get_metadata | Cheap | Single class metadata (ASM-based, no decompilation) |
dejared_search_class | Cheap | Find classes by name keyword (case-insensitive) |
dejared_search_string | Cheap | Find string literals in bytecode constant pools (case-insensitive) |
dejared_decompile_class | Expensive | Full source code decompilation (CFR/vineflower/procyon) |
vineflower or procyon.Quick Lookup: find a class by name (dejared_search_class) or find a string in bytecode (dejared_search_string). One call, done.
Read Config: dejared_list_resources to see what's in the JAR, then dejared_read_resource to read it (application.yml, pom.xml, logback.xml, etc.).
Get Signatures: dejared_get_metadata for a single class, or dejared_dump_package_metadata for an entire package (accepts a list). Returns class hierarchy, annotations, fields, and method signatures without decompiling.
Explore: top-down JAR mapping:
dejared_list_packages → dejared_list_classes (use recursive=true) → dejared_list_resources → dejared_read_resource for configs → dejared_dump_package_metadata (batch all important packages in one call) → selective dejared_decompile_class only where method body logic is needed. If CFR output has issues, retry with vineflower or procyon.
Hunt: search-driven investigation:
Pick search tool (dejared_search_class or dejared_search_string) → triage results → dejared_get_metadata on promising matches → dejared_decompile_class only if needed.
Deep Analysis: single class investigation:
dejared_get_metadata first → dejared_decompile_class (CFR default) → cross-reference with dejared_search_class or dejared_dump_package_metadata if needed. If CFR output has issues (broken lambdas, goto statements, missing method bodies), retry with vineflower (best for modern Java features like records, sealed classes, pattern matching) or procyon (handles some obfuscated/edge-case bytecode better).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub hqkh4nh/dejared-mcp --plugin dejared