Agent skill
java-package-info
Generate package-info.java files for Java packages. Use when the user requests to add package documentation files to Java packages, create package-info.java files, or document Java package structures. Automatically scans directories for Java packages and creates Javadoc package documentation files where they don't exist.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/java-package-info
SKILL.md
Java Package Info Generator
Generate package-info.java files for Java packages with Javadoc comments.
Quick Start
Generate package-info.java files for a Java project:
python3 scripts/generate_package_info.py <project-directory>
Usage
Basic Usage
Generate package-info.java for all Java packages:
python3 scripts/generate_package_info.py /path/to/project
Filter by Base Package
Generate only for packages under a specific base package:
python3 scripts/generate_package_info.py /path/to/project --base-package com.example.myapp
Preview Changes (Dry Run)
See what would be created without actually creating files:
python3 scripts/generate_package_info.py /path/to/project --dry-run
Overwrite Existing Files
Force overwrite existing package-info.java files:
python3 scripts/generate_package_info.py /path/to/project --force
Custom Source Root
Specify a different source root directory:
python3 scripts/generate_package_info.py /path/to/project --src-root src/java
Generated Content
Each package-info.java file contains:
- Package declaration: Proper package statement
- Javadoc comment: Automatically generated description based on package name
- UTF-8 encoding: Standard Java file encoding
Example generated file for package com.example.myapp.service:
/**
* Serviceパッケージ
*
* <p>このパッケージはServiceに関連する機能を提供します。</p>
*/
package com.example.myapp.service;
Behavior
- Scans recursively: Finds all directories containing .java files
- Skips existing files: By default, does not overwrite existing package-info.java
- Ignores build directories: Automatically skips
target/,build/,out/ - Handles nested packages: Creates files for all package levels
Common Use Cases
- New project setup: Add package documentation to a new Java project
- Javadoc compliance: Ensure all packages have documentation
- Code quality: Improve project documentation coverage
- Batch processing: Document multiple packages at once
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
riot-games
Manage Riot Games account, track stats across League, Valorant, and more
parcel
Provides comprehensive guidance for Parcel bundler including zero-configuration setup, asset handling, hot module replacement, and production builds. Use when the user asks about Parcel, needs to set up a build tool quickly, or work with Parcel's automatic configuration.
bbs
Manage issues with The Fold's CAS-native BBS (Bulletin Board System). Use for creating, updating, searching, and tracking issues. Invoke when the user wants to create tickets, find work, check issue status, or manage dependencies.
jito-bundles-and-priority-fees
Master Jito bundles for MEV protection and priority fee optimization on Solana - bundle submission, tip strategies, and transaction landing. Use for trading bots, high-priority transactions, and MEV-aware applications.
observability-monitoring-monitor-setup
You are a monitoring and observability expert specializing in implementing comprehensive monitoring solutions. Set up metrics collection, distributed tracing, log aggregation, and create insightful da
makefile-review
Didn't find tool you were looking for?