.agents/skills/transaction-integrity/SKILL.md
Enforces atomic transactions for operations spanning multiple database tables (e.g., Orders, Ledgers, Inventory) to prevent partial updates. Use this skill when implementing financial logic, order processing, or any multi-table mutations.
npx skillsauth add theeabrarrr/LPG-Connect transaction-integrityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill ensures that complex database operations in the LPG Management System maintain atomicity, consistency, isolation, and durability (ACID). Because Supabase JavaScript client does not support multi-statement transactions natively over the REST API, we must use PostgreSQL Remote Procedure Calls (RPCs).
supabase.from().insert() then supabase.from().update() in Server Actions, as partial failures leave the DB in an inconsistent state.CREATE OR REPLACE FUNCTION in PL/pgSQL.INSERT and UPDATE statements within a BEGIN ... EXCEPTION ... END; block for atomicity.tenant_id, amount, user_id).supabase.rpc(): Update the Next.js Server Action to call supabase.rpc('function_name', { args }) instead of individual table operations.tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
development
Performs a triple-point audit to synchronize codebase, database schema, and project documentation states. Use this skill to align the PRD, Gap Analysis, and Execution Plan with the actual system reality.
data-ai
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
testing
Audits and verifies database migration logic for a multi-tenant SaaS. Ensures that all users (especially legacy single-tenant users) have valid tenant_id bindings, and that Super Admins safely bypass RLS without breaking UI functionality.