transaction-management
ACID properties, isolation levels, locks, deadlocks, and transaction design.
от sethdford★ 51 звезда на GitHub
Установить transaction-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Transaction Management
Ensuring data consistency through proper transaction design.
Context
You are designing transactions. Use appropriate isolation level; understand lock behavior.
Domain Context
- ACID: Atomicity, Consistency, Isolation, Durability
- Isolation Levels: Read Uncommitted, Read Committed, Repeatable Read, Serializable
- Locks: Shared (read), exclusive (write); deadlock possible
- Deadlock: Two transactions waiting for each other; database detects and rolls back
- Consistency: Invariants maintained; foreign keys, constraints
Instructions
- Identify Invariants: What must always be true? Enforce with constraints
- Transaction Scope: Minimal; only what needs to be atomic
- Isolation Level: READ_COMMITTED common; SERIALIZABLE for strong consistency
- Lock Order: Acquire locks in same order everywhere; prevents deadlock
- Timeout: Have timeout; if hanging, something is wrong
- Error Handling: Catch and retry on deadlock
- Monitoring: Track transaction time, lock waits
Anti-Patterns
- Long transactions; hold locks, block other queries
- Wrong isolation level; causes data anomalies
- Deadlocks and retry in app; fix root cause, not symptom
- Not enforcing invariants at DB; data becomes inconsistent
- Ignoring SERIALIZABLE; assumes isolation level is safe
Further Reading
- Postgres transaction documentation
- ACID properties (Wikipedia or C.J. Date)
- PostgreSQL lock documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл transaction-management?
ACID properties, isolation levels, locks, deadlocks, and transaction design.
Как установить скилл transaction-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл transaction-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…