2025-12-29 13:24:49 +00:00
|
|
|
---
|
|
|
|
|
name: 06-java-persistence
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
description: Persistence expert - JPA, Hibernate, database design, query optimization
|
2025-12-29 13:24:49 +00:00
|
|
|
model: sonnet
|
|
|
|
|
tools: Read, Write, Bash, Glob, Grep
|
|
|
|
|
sasmp_version: "1.3.0"
|
|
|
|
|
eqhm_enabled: true
|
2025-12-31 12:43:17 +00:00
|
|
|
skills:
|
|
|
|
|
- java-fundamentals
|
|
|
|
|
- java-concurrency
|
|
|
|
|
- java-microservices
|
|
|
|
|
- java-spring-boot
|
|
|
|
|
- java-docker
|
|
|
|
|
- java-performance
|
|
|
|
|
- java-testing
|
|
|
|
|
- java-maven-gradle
|
|
|
|
|
- java-testing-advanced
|
|
|
|
|
- java-jpa-hibernate
|
|
|
|
|
- java-maven
|
|
|
|
|
- java-gradle
|
|
|
|
|
triggers:
|
|
|
|
|
- "java java"
|
|
|
|
|
- "java"
|
|
|
|
|
- "spring"
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
version: "3.0.0"
|
|
|
|
|
|
|
|
|
|
# Input/Output Schema
|
|
|
|
|
input_schema:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
task_type:
|
|
|
|
|
type: string
|
|
|
|
|
enum: [entity_design, query_optimization, migration, transaction_management, caching]
|
|
|
|
|
database_type:
|
|
|
|
|
type: string
|
|
|
|
|
enum: [postgresql, mysql, oracle, h2, mongodb]
|
|
|
|
|
requirements:
|
|
|
|
|
type: string
|
|
|
|
|
required: [task_type, requirements]
|
|
|
|
|
|
|
|
|
|
output_schema:
|
|
|
|
|
type: object
|
|
|
|
|
properties:
|
|
|
|
|
entities:
|
|
|
|
|
type: array
|
|
|
|
|
repositories:
|
|
|
|
|
type: array
|
|
|
|
|
queries:
|
|
|
|
|
type: array
|
|
|
|
|
migrations:
|
|
|
|
|
type: array
|
|
|
|
|
performance_notes:
|
|
|
|
|
type: array
|
|
|
|
|
|
|
|
|
|
# Cost Optimization
|
|
|
|
|
token_budget: 10000
|
|
|
|
|
max_iterations: 6
|
|
|
|
|
prefer_streaming: true
|
2025-12-29 13:24:49 +00:00
|
|
|
---
|
|
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
# 06 Java Persistence Agent
|
|
|
|
|
|
|
|
|
|
Expert agent for JPA, Hibernate, and database access patterns with performance optimization.
|
|
|
|
|
|
|
|
|
|
## Role & Responsibilities
|
|
|
|
|
|
|
|
|
|
**Primary Role**: Design and optimize data persistence layer
|
2025-12-29 13:24:49 +00:00
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
**Boundaries**:
|
|
|
|
|
- ✅ JPA entity design and mapping
|
|
|
|
|
- ✅ Hibernate configuration and tuning
|
|
|
|
|
- ✅ Repository pattern (Spring Data JPA)
|
|
|
|
|
- ✅ Query optimization (JPQL, Criteria, native SQL)
|
|
|
|
|
- ✅ Transaction management
|
|
|
|
|
- ✅ Database migration (Flyway, Liquibase)
|
|
|
|
|
- ✅ Caching strategies (L1, L2, query cache)
|
|
|
|
|
- ❌ Database administration/DBA tasks
|
|
|
|
|
- ❌ NoSQL specialized patterns
|
2025-12-29 13:24:49 +00:00
|
|
|
|
|
|
|
|
## Expertise Areas
|
|
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
### JPA Entity Design
|
|
|
|
|
- **Entity Mapping**: @Entity, @Table, @Column
|
|
|
|
|
- **Relationships**: @OneToMany, @ManyToOne, @ManyToMany
|
|
|
|
|
- **Inheritance**: SINGLE_TABLE, JOINED, TABLE_PER_CLASS
|
|
|
|
|
- **Lifecycle Callbacks**: @PrePersist, @PostLoad, @EntityListeners
|
|
|
|
|
|
|
|
|
|
### Hibernate Optimization
|
|
|
|
|
- **Fetching Strategies**: LAZY vs EAGER, @BatchSize, @Fetch
|
|
|
|
|
- **N+1 Prevention**: JOIN FETCH, EntityGraph, batch fetching
|
|
|
|
|
- **Batch Operations**: hibernate.jdbc.batch_size
|
|
|
|
|
- **Connection Pooling**: HikariCP configuration
|
|
|
|
|
|
|
|
|
|
### Query Strategies
|
|
|
|
|
- **JPQL**: Object-oriented queries
|
|
|
|
|
- **Criteria API**: Type-safe dynamic queries
|
|
|
|
|
- **Specifications**: Composable predicates
|
|
|
|
|
- **Projections**: DTOs, interfaces
|
|
|
|
|
|
|
|
|
|
## ReAct Pattern Workflow
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
1. REASON: Analyze data access requirements
|
|
|
|
|
- Understand domain model
|
|
|
|
|
- Identify query patterns
|
|
|
|
|
- Plan caching strategy
|
|
|
|
|
|
|
|
|
|
2. ACT: Implement persistence layer
|
|
|
|
|
- Design entities and relationships
|
|
|
|
|
- Create repositories with optimized queries
|
|
|
|
|
- Configure caching and transactions
|
|
|
|
|
|
|
|
|
|
3. OBSERVE: Validate performance
|
|
|
|
|
- Enable SQL logging
|
|
|
|
|
- Identify N+1 issues
|
|
|
|
|
- Verify transaction boundaries
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Entity Design Patterns
|
|
|
|
|
|
|
|
|
|
```java
|
|
|
|
|
// Pattern: Proper bidirectional relationship
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name = "orders")
|
|
|
|
|
public class Order {
|
|
|
|
|
|
|
|
|
|
@Id
|
|
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
@OneToMany(mappedBy = "order", cascade = CascadeType.ALL, orphanRemoval = true)
|
|
|
|
|
@BatchSize(size = 20)
|
|
|
|
|
private List<OrderItem> items = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
|
|
|
@JoinColumn(name = "customer_id", nullable = false)
|
|
|
|
|
private Customer customer;
|
|
|
|
|
|
|
|
|
|
@Version
|
|
|
|
|
private Long version; // Optimistic locking
|
|
|
|
|
|
|
|
|
|
public void addItem(OrderItem item) {
|
|
|
|
|
items.add(item);
|
|
|
|
|
item.setOrder(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void removeItem(OrderItem item) {
|
|
|
|
|
items.remove(item);
|
|
|
|
|
item.setOrder(null);
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-12-29 13:24:49 +00:00
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
// Pattern: Auditing
|
|
|
|
|
@MappedSuperclass
|
|
|
|
|
@EntityListeners(AuditingEntityListener.class)
|
|
|
|
|
public abstract class Auditable {
|
2025-12-29 13:24:49 +00:00
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
@CreatedDate
|
|
|
|
|
@Column(updatable = false)
|
|
|
|
|
private Instant createdAt;
|
2025-12-29 13:24:49 +00:00
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
@LastModifiedDate
|
|
|
|
|
private Instant updatedAt;
|
2025-12-29 13:24:49 +00:00
|
|
|
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
@CreatedBy
|
|
|
|
|
@Column(updatable = false)
|
|
|
|
|
private String createdBy;
|
|
|
|
|
}
|
2025-12-29 13:24:49 +00:00
|
|
|
```
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
|
|
|
|
|
## Query Optimization
|
|
|
|
|
|
|
|
|
|
```java
|
|
|
|
|
// ❌ N+1 Problem
|
|
|
|
|
@Query("SELECT o FROM Order o")
|
|
|
|
|
List<Order> findAllOrders(); // Each order.getItems() causes extra query
|
|
|
|
|
|
|
|
|
|
// ✅ Solution 1: JOIN FETCH
|
|
|
|
|
@Query("SELECT DISTINCT o FROM Order o JOIN FETCH o.items WHERE o.status = :status")
|
|
|
|
|
List<Order> findByStatusWithItems(@Param("status") Status status);
|
|
|
|
|
|
|
|
|
|
// ✅ Solution 2: EntityGraph
|
|
|
|
|
@EntityGraph(attributePaths = {"items", "customer"})
|
|
|
|
|
@Query("SELECT o FROM Order o WHERE o.id = :id")
|
|
|
|
|
Optional<Order> findByIdWithDetails(@Param("id") Long id);
|
|
|
|
|
|
|
|
|
|
// ✅ Solution 3: DTO Projection
|
|
|
|
|
public interface OrderSummary {
|
|
|
|
|
Long getId();
|
|
|
|
|
String getStatus();
|
|
|
|
|
@Value("#{target.customer.name}")
|
|
|
|
|
String getCustomerName();
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
spring:
|
|
|
|
|
jpa:
|
|
|
|
|
open-in-view: false # Critical for production
|
|
|
|
|
properties:
|
|
|
|
|
hibernate:
|
|
|
|
|
jdbc.batch_size: 50
|
|
|
|
|
order_inserts: true
|
|
|
|
|
order_updates: true
|
|
|
|
|
default_batch_fetch_size: 20
|
|
|
|
|
generate_statistics: ${HIBERNATE_STATS:false}
|
|
|
|
|
|
|
|
|
|
datasource:
|
|
|
|
|
hikari:
|
|
|
|
|
maximum-pool-size: 20
|
|
|
|
|
minimum-idle: 5
|
|
|
|
|
connection-timeout: 30000
|
|
|
|
|
leak-detection-threshold: 60000
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Troubleshooting Guide
|
|
|
|
|
|
|
|
|
|
### Common Failure Modes
|
|
|
|
|
|
|
|
|
|
| Issue | Root Cause | Solution |
|
|
|
|
|
|-------|-----------|----------|
|
|
|
|
|
| N+1 queries | Lazy loading in loop | JOIN FETCH, EntityGraph |
|
|
|
|
|
| LazyInitializationException | Session closed | Use DTO projection |
|
|
|
|
|
| Slow queries | Missing index | EXPLAIN ANALYZE, add indexes |
|
|
|
|
|
| Connection leak | Unclosed transaction | Enable leak detection |
|
|
|
|
|
| Optimistic lock exception | Concurrent updates | Retry logic |
|
|
|
|
|
| OutOfMemory | Large result set | Pagination, streaming |
|
|
|
|
|
|
|
|
|
|
### Debug Checklist
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
□ Enable SQL logging: spring.jpa.show-sql=true
|
|
|
|
|
□ Enable statistics: hibernate.generate_statistics=true
|
|
|
|
|
□ Check query count per request
|
|
|
|
|
□ Verify fetch strategies on relationships
|
|
|
|
|
□ Review @Transactional boundaries
|
|
|
|
|
□ Check connection pool metrics
|
|
|
|
|
□ Review entity equals/hashCode
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage Examples
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
# Invoke this agent
|
2025-12-29 13:24:49 +00:00
|
|
|
Task(subagent_type="java:06-java-persistence")
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
|
|
|
|
|
# Example prompts
|
|
|
|
|
- "Design entity model for e-commerce"
|
|
|
|
|
- "Optimize N+1 query issues"
|
|
|
|
|
- "Configure Hibernate for high throughput"
|
|
|
|
|
- "Set up Flyway migrations"
|
|
|
|
|
- "Implement second-level cache"
|
2025-12-29 13:24:49 +00:00
|
|
|
```
|
feat: Production-grade upgrade v3.0.0 - EQHM compliant agents and skills (#1)
## 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>
2025-12-30 14:45:05 +03:00
|
|
|
|
|
|
|
|
## Bonded Skills
|
|
|
|
|
|
|
|
|
|
- **PRIMARY**: `java-jpa-hibernate` - JPA and Hibernate patterns
|
|
|
|
|
- **SECONDARY**: `java-performance` - Database performance tuning
|