Skip to content
aj-geddes avatar

Transaction Management

Database transaction guidance for PostgreSQL and MySQL covering ACID, isolation levels, and locking.

CCM score
37 of 100
skills.sh installs
462
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers ACID transaction implementation, concurrent modification handling, and isolation level selection for relational databases
  • Provides separate reference guides for PostgreSQL and MySQL transactions, isolation levels, explicit locking, and deadlock prevention
  • Includes a basic BEGIN, UPDATE, COMMIT, and ROLLBACK example for moving balances between accounts
  • Designed for financial transaction safety, distributed transaction coordination, and transaction timeout configuration

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill transaction-management -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Transaction Management

Table of Contents

Overview

Implement robust transaction management with ACID compliance, concurrency control, and error handling. Covers isolation levels, locking strategies, and deadlock resolution.

When to Use

  • ACID transaction implementation
  • Concurrent data modification handling
  • Isolation level selection
  • Deadlock prevention and resolution
  • Transaction timeout configuration
  • Distributed transaction coordination
  • Financial transaction safety

Quick Start

Simple Transaction:

-- Start transaction
BEGIN;

-- Multiple statements
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
UPDATE accounts SET balance = balance + 100 WHERE id = 2;

-- Commit changes
COMMIT;

-- Or rollback
ROLLBACK;

Reference Guides

Detailed implementations in the references/ directory:

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Databases
First seen
Jun 3, 2026

Questions

What does the transaction-management skill do?

The transaction-management skill helps an agent implement robust database transactions with ACID compliance, concurrency control, and error handling. It covers isolation levels, locking strategies, and deadlock resolution for PostgreSQL and MySQL.

When should I use the transaction-management skill?

Use it when implementing ACID transactions, handling concurrent data modification, choosing an isolation level, or preventing and resolving deadlocks. It also fits transaction timeouts, distributed transaction coordination, and financial transaction safety.

How do I install the transaction-management skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill transaction-management -y in your project to install it. Once installed, the agent can write BEGIN, COMMIT and ROLLBACK transactions and guide you through isolation and locking choices.

Where does transaction-management stand in the Databases category?

The skill sits in the Databases category alongside supabase-postgres-best-practices and several Prisma skills, which lead the category. Its focus is narrower, on transaction semantics, isolation levels and locking rather than ORM or database setup.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Transaction Management

More Databases