
developer-kit-java
Java toolkit that adds Spring Boot, JUnit, LangChain4J, and AWS SDK guidance to Claude Code.
- version
- 4.0.1
- GitHub stars
- 372
What it does
- Adds 11 commands such as
devkit.java.code-review,devkit.java.generate-crud, anddevkit.java.write-unit-tests, plus 9 specialist agents for Spring Boot, security, and refactoring - Covers Spring Boot patterns including JWT security, Resilience4j, saga flows, and OpenAPI docs, along with JUnit unit test patterns for each layer
- Provides AWS skills for SDK v2 clients covering Bedrock, DynamoDB, KMS, S3, RDS, and Lambda, plus GraalVM native image builds
- Requires
developer-kitand pairs withdeveloper-kit-aifor the LangChain4J and vector store skills
Comprehensive Java development toolkit with Spring Boot, testing, and AWS integration
Add marketplace
/plugin marketplace add giuseppe-trisciuoglio/developer-kitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install developer-kit-java@developer-kitRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceAWS Lambda Java Integration
Patterns for creating high-performance AWS Lambda functions in Java with optimized cold starts.
Overview
This skill provides complete patterns for AWS Lambda Java development, covering two main approaches:
- Micronaut Framework - Full-featured framework with AOT compilation, dependency injection, and cold start < 1s
- Raw Java - Minimal overhead approach with cold start < 500ms
Both approaches support API Gateway and ALB integration with production-ready configurations.
When to Use
- Deploying Java functions to AWS Lambda
- Optimizing cold starts below 1 second
- Choosing between Micronaut and Raw Java approaches
- Configuring API Gateway or ALB integration
- Setting up CI/CD pipelines for Java Lambda
Instructions
1. Choose Your Approach
| Approach | Cold Start | Best For | Complexity |
|---|---|---|---|
| Micronaut | < 1s | Complex apps, DI needed, enterprise | Medium |
| Raw Java | < 500ms | Simple handlers, minimal overhead | Low |
Validate: Confirm the approach fits your use case before proceeding.
2. Project Structure
my-lambda-function/
├── build.gradle (or pom.xml)
├── src/main/java/com/example/Handler.java
└── serverless.yml (or template.yaml)
Validate: Verify project structure matches the template.
3. Implementation Examples
Micronaut Handler
@FunctionBean("my-function")
public class MyFunction implements Function<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
private final MyService service;
public MyFunction(MyService service) {
this.service = service;
}
@Override
public APIGatewayProxyResponseEvent apply(APIGatewayProxyRequestEvent request) {
// Process request
return new APIGatewayProxyResponseEvent()
.withStatusCode(200)
.withBody("{\"message\": \"Success\"}");
}
}
Raw Java Handler
public class MyHandler implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {
private static final MyService service = new MyService();
@Override
public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent request, Context context) {
return new APIGatewayProxyResponseEvent()
.withStatusCode(200)
.withBody("{\"message\": \"Success\"}");
}
}
Validate: Run sam local invoke to verify handler works before deployment.
Core Patterns
Connection Management
// Initialize once, reuse across invocations
private static final DynamoDbClient dynamoDb = DynamoDbClient.builder()
.region(Region.US_EAST_1)
.build();
// Avoid: Creating clients in handler (slow on every invocation)
Error Handling
@Override
public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent request, Context context) {
try {
return successResponse(process(request));
} catch (ValidationException e) {
return errorResponse(400, e.getMessage());
} catch (Exception e) {
context.getLogger().log("Error: " + e.getMessage());
return errorResponse(500, "Internal error");
}
}
Best Practices
Configuration
- Memory: Start with 512MB, adjust based on profiling
- Timeout: Micronaut 10-30s, Raw Java 5-10s
- Runtime: Java 17 or 21 for best performance
Packaging
- Use Gradle Shadow Plugin or Maven Shade Plugin
- Exclude unnecessary dependencies
Monitoring
- Enable X-Ray tracing for performance analysis
- Use CloudWatch Insights to track cold vs warm starts
Deployment Options
Serverless Framework
service: my-java-lambda
provider:
name: aws
runtime: java21
memorySize: 512
timeout: 10
package:
artifact: build/libs/function.jar
functions:
api:
handler: com.example.Handler
events:
- http:
path: /{proxy+}
method: ANY
Validate: Run serverless deploy with --stage dev first.
AWS SAM
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: build/libs/function.jar
Handler: com.example.Handler
Runtime: java21
MemorySize: 512
Timeout: 10
Events:
ApiEvent:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
Validate: Run sam validate before deploying.
Constraints and Warnings
Java-Specific Constraints
- Reflection: Minimize use; prefer AOT compilation (Micronaut)
- Classpath scanning: Slows cold start; use explicit configuration
- Large frameworks: Spring Boot adds significant cold start overhead
Common Pitfalls
- Initialization in handler - Causes repeated work on warm invocations
- Oversized JARs - Include only required dependencies
- Insufficient memory - Java needs more memory than Node.js/Python
- No timeout handling - Always set appropriate timeouts
References
For detailed guidance on specific topics:
- Micronaut Lambda - Complete Micronaut setup, AOT configuration, DI optimization
- Raw Java Lambda - Minimal handler patterns, singleton caching, JAR packaging
- Serverless Deployment - Serverless Framework, SAM, CI/CD pipelines, provisioned concurrency
- Testing Lambda - JUnit 5, SAM Local, integration testing, performance measurement
Examples
Example 1: Create a Micronaut Lambda Function
Input:
Create a Java Lambda function using Micronaut to handle user REST API
Process:
- Configure Gradle project with Micronaut plugin
- Create Handler class extending MicronautRequestHandler
- Implement methods for GET/POST/PUT/DELETE
- Configure application.yml with AOT optimizations
- Set up packaging with Shadow plugin
- Validate: Test locally with SAM CLI before deploying
Output:
- Complete project structure
- Handler with dependency injection
- serverless.yml deployment configuration
Example 2: Optimize Cold Start for Raw Java
Input:
My Java Lambda has 3 second cold start, how do I optimize it?
Process:
- Analyze initialization code
- Move AWS client creation to static fields
- Reduce dependencies in build.gradle
- Configure optimized JVM options
- Consider provisioned concurrency
- Validate: Measure cold start with CloudWatch metrics after changes
Output:
- Refactored code with singleton pattern
- Minimized JAR
- Cold start < 500ms
Example 3: Deploy with GitHub Actions
Input:
Configure CI/CD for Java Lambda with SAM
Process:
- Create GitHub Actions workflow
- Configure Gradle build with Shadow
- Set up SAM build and deploy
- Add test stage before deployment
- Configure environment protection for prod
Output:
- Complete .github/workflows/deploy.yml
- Multi-stage pipeline (dev/staging/prod)
- Integrated test automation
Version
Version: 1.0.0
Readme
Developer Kit Java
Comprehensive Java development toolkit with Spring Boot, testing, LangChain4J, and AWS integration.
Overview
The developer-kit-java plugin provides extensive support for Java development, including Spring Boot applications, unit/integration testing with JUnit, LangChain4J for AI applications, and AWS SDK integration.
Agents
- spring-boot-backend-development-expert - Spring Boot development
- spring-boot-code-review-expert - Spring Boot code review
- spring-boot-unit-testing-expert - Spring Boot testing
- java-refactor-expert - Java-specific refactoring
- java-security-expert - Java security best practices
- java-software-architect-review - Java architecture review
- java-documentation-specialist - Java documentation
- java-tutorial-engineer - Java learning resources
- langchain4j-ai-development-expert - LangChain4J integration
Commands
devkit.java.code-review- Comprehensive Java code reviewdevkit.java.generate-crud- Generate CRUD operationsdevkit.java.refactor-class- Refactor Java classesdevkit.java.architect-review- Architecture reviewdevkit.java.dependency-audit- Dependency analysisdevkit.java.generate-docs- Generate documentationdevkit.java.security-review- Security reviewdevkit.java.upgrade-dependencies- Upgrade dependenciesdevkit.java.write-unit-tests- Generate unit testsdevkit.java.write-integration-tests- Generate integration testsdevkit.java.generate-refactoring-tasks.md- Generate refactoring tasks from bounded context
Skills
Spring Boot
- Spring Boot Actuator, Cache, CRUD Patterns, Dependency Injection
- Event-Driven Patterns, OpenAPI Documentation, REST API Standards
- Saga Pattern, Security JWT, Test Patterns, Resilience4j
- spring-boot-project-creator - Project generation from specification
Architecture
- clean-architecture - Clean Architecture, Hexagonal Architecture, and DDD patterns for Java 21+ Spring Boot 3.5+
Spring Data
- Spring Data JPA, Spring Data Neo4j
Spring AI
- spring-ai-mcp-server-patterns - Model Context Protocol server implementation
JUnit Testing
- Unit test patterns for all layers and scenarios
LangChain4J
- AI Services, MCP Server, RAG Implementation, Spring Boot Integration
- Testing Strategies, Tool Function Calling, Vector Stores Configuration
- qdrant - Qdrant vector database integration
AWS Java SDK
- RDS, Bedrock, DynamoDB, KMS, Lambda, Messaging, S3, Secrets Manager
AWS Lambda Integration
- aws-lambda-java-integration - AWS Lambda integration patterns for Java with Micronaut Framework and Raw Java handlers
GraalVM Native Image
- graalvm-native-image - Build native executables from Java applications, optimize cold start times, configure Maven/Gradle native build tools, resolve reflection and resource issues
Dependencies
developer-kit(required)developer-kit-ai(for LangChain4J skills)
Details
- Marketplace
- giuseppe-trisciuoglio/developer-kit
- Source
- plugins/developer-kit-java
- Category
- Community
More from giuseppe-trisciuoglio/developer-kit
All 11Similar to developer-kit-java
More Testing & Code Quality
example-skillsanthropics/skills196.9K starsCollection of example skills demonstrating various capabilities including skill creation, MCP building, visual design, algorithmic art, internal communications,
storybookstorybookjs/storybook91.6K starsBuild, preview, and test UI components with Storybook.
agentic-qe-fleetruvnet/ruflo82.2K starsAgentic QE (external: maintained in proffesor-for-testing/agentic-qe, pinned to v3.15.17): a quality-engineering fleet with 11 QE agents, 9 skills, 9 commands,
agent-browservercel-labs/agent-browser52.4K starsAutomates browser interactions for web testing, form filling, screenshots, and data extraction
shannonKeygraphHQ/shannon52K starsRun Shannon white-box pentests of web apps and APIs you are authorized to test, from your coding agent, with safety rules built in.
benchmark-email-automationComposioHQ/awesome-claude-skills51.5K starsAutomate Benchmark Email tasks via Rube MCP (Composio). Always search tools first for current schemas.