devkit.prompt-optimize
Provides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement. Use when you need to improve…
Provides intelligent refactoring for complex Java classes with architectural analysis and Spring Boot patterns. Use when refactoring large or complex Java classes.
> /plugin marketplace add giuseppe-trisciuoglio/developer-kit > /plugin install developer-kit@developer-kit
How it fires
How this command gets triggered: by you, by Claude, or both.
/devkit.java.refactor-classContext preview
What this command does when you run it.
Provides intelligent refactoring for complex Java classes with architectural analysis and Spring Boot patterns. Use when refactoring large or complex Java classes.
allowed-tools: Read, Write, Bash, Edit, Grep, Glob argument-hint: "[class-file-path] [refactoring-scope] [options]" description: Provides intelligent refactoring for complex Java classes with architectural analysis and Spring Boot patterns. Use when refactoring large or complex Java classes. model: inherit
Intelligently refactor complex Java classes following Clean Architecture, DDD patterns, and Spring Boot best practices.
Provides intelligent refactoring for complex Java classes with architectural analysis and Spring Boot patterns. Use when refactoring large or complex Java classes.
/devkit.java.refactor-class $ARGUMENTS
| Argument | Description | |--------------|------------------------------------------| | `$ARGUMENTS` | Combined arguments passed to the command |
**Agent Selection**: To execute this task, use the following agent with fallback:
`spring-boot-crud-patterns` skill
Analyzing: **$ARGUMENTS**
**Parameters:**
IF "$1" is empty OR not provided THEN Analyze the most complex class in the codebase automatically ELSE Analyze specific class: $1 ENDIF
Expected Clean Architecture Structure:
feature/
├── domain/
│ ├── model/ # Domain entities (Spring-free)
│ ├── repository/ # Domain ports (interfaces)
│ └── service/ # Domain services
├── application/
│ ├── service/ # Use cases (@Service beans)
│ └── dto/ # Immutable DTOs/records
├── presentation/
│ └── rest/ # Controllers and mappers
└── infrastructure/
└── persistence/ # JPA adapters1. **Read and analyze target class** for current patterns and violations 2. **Identify dependencies** and usage patterns across codebase 3. **Assess test coverage** - if missing, create tests BEFORE refactoring 4. **Create refactoring plan** based on selected scope 5. **Backup strategy** - create branch if not `dry-run`
# Run existing tests ./gradlew test || mvn test # Create backup branch if not dry-run if [ "$3" != "dry-run" ]; then git checkout -b refactor/$(basename "$1" .java)-$(date +%Y%m%d-%H%M%S) fi
For each refactoring step:
1. **Make small, focused change** 2. **Run tests** to verify no regressions 3. **Commit change** with descriptive message 4. **Document improvement** and rationale
# Full test suite ./gradlew test || mvn test # Static analysis ./gradlew spotbugsMain || ./gradlew checkstyleMain # Performance validation ./gradlew bench || echo "No performance tests configured"
// Before: Complex method doing too much
@Service
@RequiredArgsConstructor
public class OrderService {
public OrderDto createOrder(CreateOrderRequest request) {
// Validation logic (20+ lines)
// Business logic (30+ lines)
// Notification logic (15+ lines)Modular plugin marketplace for Claude Code and agentic CLIs, with validated, spec-driven skills, agents, commands, and workflows for Java, TypeScript, Python, PHP, AWS, and AI.
Repo: giuseppe-trisciuoglio/developer-kit
Provides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement. Use when you need to improve…
Provides guided feature development capability with codebase understanding and architecture focus. Use when implementing a new feature from scratch.
Provides guided bug fixing and debugging capability with systematic root cause analysis. Use when encountering bugs, errors, or unexpected behavior.
Creates a GitHub pull request with branch creation, commits, and detailed description. Use when you need to submit changes for review.
Provides comprehensive GitHub pull request review with code quality, security, and best practices analysis. Use when reviewing a PR before merging.
Provides guided code refactoring capability with deep codebase understanding, compatibility options, and comprehensive verification. Use when restructuring or…