database-sqlite
Installation
SKILL.md
Database Best Practices
Connection Management
ALWAYS use the db_connection() context manager:
from src.data.db_connection import db_connection
with db_connection() as conn:
c = conn.cursor()
c.execute("SELECT * FROM trades")
# Commit happens automatically on success
- NEVER call
conn.commit()manually. - Deadlock Prevention: When calling write functions (like
execute_trade) from within an existing transaction, MUST pass the active cursor.
Migration System
The migration system tracks versions in the schema_version table.
Related skills
More from niller2005/polyflup
polymarket-trading
Polymarket-specific terminology, trading strategies, and API reference.
129bookkeeper
Specialized in maintaining project documentation, ensuring it reflects the current state of the codebase and operational procedures.
13polyflup-ops
Operational commands, environment configuration, and deployment for PolyFlup.
13python-bot-standards
Coding standards, modular architecture, and common execution patterns for the PolyFlup Python backend.
13database-analyzer
Specialized in syncing the production database and performing analysis on trades, balances, and market history.
13svelte-ui-standards
Coding standards and UI guidelines for the PolyFlup Svelte dashboard.
13