Java transaction and consistency

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Java transaction and consistency is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill when statically reviewing Spring @Transactional boundary correctness — propagation (REQUIRED joining an existing transaction and silently ignoring an inner isolation/timeout; REQUIRES_NEW suspending it), isolation levels, readOnly, rollbackFor (checked exceptions do not roll back by d

How to use this skill

Skill file

java-transaction-and-consistency

Purpose

This skill statically reviews whether a Spring service's transaction boundaries are drawn correctly and whether writes that must stay consistent across a database and another resource — a message broker, another service, a cache — actually do. A transaction boundary is only correct if its propagation, isolation, readOnly, and rollback rules match how the method is actually invoked, not how it reads in isolation; cross-resource consistency is only correct if a single-resource commit is never mistaken for a multi-resource guarantee. The review catches propagation/isolation attributes silently ignored under a REQUIRED join, checked-exception rollback gaps, proxy self-invocation bypass, over-wide boundaries holding a connection through an external call, the save()-then-send() dual-write anti-pattern, post-commit side effects racing the commit, and cross-service atomicity attempted via fragile XA/2PC instead of a saga.

Trigger conditions

When not to use

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.