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
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 -yInstalls 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- Secrets Rotation461
- Deployment Documentation460
- Natural Language Processing460
- Runbook Creation460
- Autoscaling Configuration458
- Security Documentation458
- Stored Procedures458
- Profiling Optimization457
- Property Based Testing457
- Cpu Profiling456
- Frontend Routing456
- Load Balancer Setup456
- Aws Rds Database455
- Log Aggregation455
- Documentation Site Setup454
- Recommendation System454
- Retrospective Facilitation453
- Git Hooks Setup452
- Monorepo Management452
- Secrets Management452
- Survival Analysis452
- Api Filtering Sorting451
- Cloud Migration Planning451
- Cloud Storage Optimization451
Similar to Transaction Management
More Databasesdata-replication-setupaj-geddes/useful-ai-prompts426 installsGuide to PostgreSQL primary-standby replication for high availability and disaster recovery, with reference guides for logical replication.
database-migration-managementaj-geddes/useful-ai-prompts505 installsStructured database migration guidance covering schema versioning, rollbacks, and data transformations for PostgreSQL and MySQL.
golang-databasesamber/cc-skills-golang43.5K installsGo database access guide covering parameterized queries, transactions, NULL handling, and connection pooling without ORMs.
database-management-patternsmanutej/luxor-claude-marketplace468 installsComprehensive PostgreSQL and MongoDB guide covering schema design, indexing, transactions, replication, and tuning.
drizzle-orm-patternsgiuseppe-trisciuoglio/developer-kit6K installsComprehensive Drizzle ORM guide for type-safe schemas, queries, relations, transactions, and migrations across five databases.
postgresplanetscale/database-skills8.8K installsPostgreSQL best-practices guide with PlanetScale-specific references for schema, query, and connection work.