mirror of
https://github.com/pluginagentmarketplace/custom-plugin-java.git
synced 2026-09-14 20:26:38 +08:00
6e6d335330
## Summary Complete production-grade upgrade of all agents, skills, and commands with: - Input/Output JSON schemas for all agents - ReAct pattern workflow implementation - Error handling strategies with fallback mechanisms - Token/cost optimization settings - Comprehensive troubleshooting guides and debug checklists ## Changes ### Agents (8) - Upgraded to v3.0.0 - All agents now include: input_schema, output_schema, token_budget, max_iterations, ReAct workflow, fallback strategies, debug checklists - Agent responsibilities clearly defined with boundaries ### Skills (12) - SASMP v1.3.0 Compliant - All skills include: parameter validation, PRIMARY/SECONDARY bond types, quick reference code examples, troubleshooting tables - Fixed java-testing-advanced bonded_agent to 04-java-testing ### Commands (4) - v3.0.0 - All commands include: parameter validation in frontmatter, exit codes documentation, troubleshooting tables ### Documentation - Updated plugin.json to v3.0.0 - Updated README.md with correct agent/skill information - Added comprehensive CHANGELOG entry ### Integrity Check - All 12 skills correctly bonded to valid agents - Zero orphan skills, zero broken links, zero circular dependencies Co-authored-by: Claude <noreply@anthropic.com>
72 lines
1.5 KiB
Markdown
72 lines
1.5 KiB
Markdown
---
|
|
name: java-check
|
|
description: Check Java environment - JDK, Maven, Gradle versions and configuration
|
|
allowed-tools: Bash, Read
|
|
version: "3.0.0"
|
|
|
|
# Input Validation
|
|
parameters:
|
|
verbose:
|
|
type: boolean
|
|
default: false
|
|
description: Show detailed output
|
|
---
|
|
|
|
# Java Check Command
|
|
|
|
Verify Java development environment is properly configured.
|
|
|
|
## What This Command Does
|
|
|
|
1. **JDK Check** - Verify Java version (recommend 17 or 21)
|
|
2. **JAVA_HOME** - Validate environment variable
|
|
3. **Maven Check** - Verify installation and version
|
|
4. **Gradle Check** - Verify installation and version
|
|
5. **Environment Summary** - Display configuration status
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
/java-check # Quick check
|
|
/java-check --verbose # Detailed output
|
|
```
|
|
|
|
## Expected Output
|
|
|
|
```
|
|
=== Java Environment Check ===
|
|
|
|
JDK:
|
|
✓ Version: 21.0.1
|
|
✓ JAVA_HOME: /usr/lib/jvm/java-21
|
|
✓ javac available
|
|
|
|
Build Tools:
|
|
✓ Maven: 3.9.6
|
|
✓ Gradle: 8.5
|
|
|
|
Status: Environment Ready
|
|
```
|
|
|
|
## Troubleshooting
|
|
|
|
| Issue | Cause | Solution |
|
|
|-------|-------|----------|
|
|
| java not found | Not in PATH | Add JAVA_HOME/bin to PATH |
|
|
| JAVA_HOME not set | Missing variable | Export JAVA_HOME |
|
|
| Maven not found | Not installed | Install via sdkman or apt |
|
|
| Wrong Java version | Multiple JDKs | Use update-alternatives |
|
|
|
|
## Exit Codes
|
|
|
|
| Code | Meaning |
|
|
|------|---------|
|
|
| 0 | Environment OK |
|
|
| 1 | Java not found |
|
|
| 2 | Build tools missing |
|
|
|
|
## Related Commands
|
|
|
|
- `/java-new` - Create new project
|
|
- `/java-build` - Build project
|