Python database

From HoangNguyen0403/agent-skills-standard · View interactive version

Python database is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Implement Python database access with parameterized SQL, transaction scope, connection helpers, and repository seams. Use when editing Postgres queries, repositories, transactions, pooling, or persistence boundaries in Python.

How to use this skill

Skill file

Python Database

**Priority: P1 (HIGH)**

Rules

Recipe

  1. Open connections through one helper or pool abstraction.
  2. Use context managers for connection and transaction lifetime.
  3. Keep one business action in one transaction.
  4. Return typed rows or normalized dicts, not raw cursor tuples leaking everywhere.
  5. Test malformed/null metadata paths when patching JSON payloads.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.