aj-geddes avatar

Transaction Management

This handles database transactions with proper ACID compliance and concurrency control. You'd reach for it when building anything that needs to coordinate multiple database operations atomically, like transferring money between accounts or ensuring inventory updates don't conflict. The skill covers isolation levels, locking strategies, and deadlock prevention across both PostgreSQL and MySQL. The reference guides are thorough on the mechanics, though the best practices section is surprisingly generic given how many footguns exist in transaction management. Still, having patterns for explicit locking and isolation levels in one place beats piecing together Stack Overflow answers when your transactions start stepping on each other.

skills.sh installs
461
GitHub stars
379
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building, Databases
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarsecrets-rotationaj-geddes/useful-ai-promptsImplement automated secrets rotation for API keys, credentials, certificates, and encryption keys. Use when managing secrets lifecycle, compliance requirements,459skills.sh installs
2resend avatarsend-emailresend/resend-skillsUse when sending transactional emails (welcome messages, order confirmations, password resets, receipts), notifications, or bulk emails via Resend API.459skills.sh installs
3tamtom avatargplay-cli-usagetamtom/gplay-cli-skillsGuidance for using the Google Play Console CLI in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design gplay comm458skills.sh installs
4dotneet avatarperplexity-searchdotneet/claude-code-marketplaceA skill for performing web searches, research, and reasoning using the Perplexity API. Handles real-time web information retrieval, deep research analysis, and 457skills.sh installs
5secondsky avatarinternationalization-i18nsecondsky/claude-skillsImplements multi-language support using i18next, gettext, or Intl API with translation workflows and RTL support. Use when building multilingual applications, h455skills.sh installs
6bobmatnyc avatargolang-http-frameworksbobmatnyc/claude-mpm-skillsGo HTTP API development with net/http, Chi, Gin, Echo, and Fiber frameworks453skills.sh installs