# Java Decompiler Plugin A Claude Code plugin for decompiling Java .class files and analyzing compiled Java projects. ## Features - **Batch Decompilation**: Convert .class files back to Java source using CFR decompiler - **Project Structure Analysis**: Analyze package hierarchy, dependencies, and architecture - **Maven/Gradle Generation**: Generate build configuration files - **Dependency Analysis**: Map class dependencies and JAR requirements - **Code Understanding**: AI-assisted analysis of decompiled code ## Quick Start ### Prerequisites 1. Java 8+ installed 2. Download CFR decompiler: ```bash # Download CFR jar to scripts directory curl -L -o scripts/cfr.jar https://github.com/leibnitz27/cfr/releases/download/0.152/cfr-0.152.jar ``` ### Usage #### Decompile a project ``` /decompile-classes ./path/to/classes ``` #### Analyze project structure ``` /analyze-structure ./path/to/project ``` #### Generate Maven project ``` /generate-project ./path/to/decompiled ``` #### Analyze dependencies ``` /analyze-dependencies ./path/to/classes ``` ## Components ### Skills - `decompile-classes` - Guide for decompiling .class files - `analyze-structure` - Analyze project structure and organization - `generate-project` - Generate Maven/Gradle project structure - `analyze-dependencies` - Analyze JAR and class dependencies - `understand-code` - Help understand decompiled business logic ### Agents - `java-analyzer` - Autonomous Java project analysis - `batch-decompiler` - Batch decompilation handling ### Scripts - `decompile.sh` - CFR-based batch decompilation - `analyze-deps.sh` - Dependency analysis utility - `generate-pom.sh` - Maven pom.xml generator - `create-structure.sh` - Directory structure creator ## License MIT