Install
$ agentstack add skill-hiroqt-pixelcrew-database-engineering ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Database Engineering & Storage Architecture
This skill provides comprehensive instructions, query optimization runbooks, primary key selection models, RLS security policies, and scaling architectures across modern SQL and NoSQL storage engines.
1. Core Engineering Directives
- Strategic Index Design:
- Composite Index Column Order Rule: Place columns tested for Equality first, followed by columns used for Range / Ordering (
(tenant_id, status, created_at)forWHERE tenant_id = ? AND status = ? ORDER BY created_at DESC). - Covering Indexes (
INCLUDE): Add non-search payload columns to the index leaf level to achieve 100% Index-Only Scans without heap lookups. - Partial / Filtered Indexes: Index only active or non-null subsets (
WHERE is_deleted = falseorWHERE status = 'pending'), saving 80–95% disk space and write overhead. - Specialized Indexes: GIN for JSONB and full-text search, GiST for PostGIS spatial queries, BRIN for massive append-only timeseries logs.
- Modern Primary Key Strategy: Default to UUIDv7 (RFC 9562) for distributed and high-scale relational databases. UUIDv7 provides 128-bit time-ordered keys that eliminate B-Tree fragmentation and page splits while remaining globally unique without coordination.
- High-Performance Row-Level Security (RLS):
- Always wrap auth function calls in subqueries:
(SELECT auth.uid())instead ofauth.uid()so the query planner evaluates the authentication context once per query rather than once per row. - Ensure every column referenced in RLS policies (e.g.
tenant_id,user_id,organization_id) is backed by a B-Tree index. - Separate
SELECT,INSERT,UPDATE, andDELETEpolicies for precise least-privilege access.
- Connection Pooling & Scaling: Deploy transaction-level connection pooling (PgBouncer, Supabase Supavisor, AWS RDS Proxy) to prevent connection starvation. Size pool sizes using Little's Law: $N = \text{TPS} \times \text{Latency}$.
- Polyglot Persistence & Modern Hosting:
- Relational / Distributed SQL: PostgreSQL, Supabase, Neon (serverless branching), CockroachDB, Turso (Edge SQLite).
- Document & Key-Value NoSQL: MongoDB Atlas, AWS DynamoDB (Single-Table Design), Redis / Dragonfly / Upstash.
- AI Vector & Analytical OLAP: pgvector / Pinecone / Qdrant for RAG embeddings; ClickHouse / Tinybird for columnar telemetry.
- Zero-Downtime Migrations: Enforce the Expand-Contract migration pattern and use non-blocking DDL (
CREATE INDEX CONCURRENTLY,ALTER TABLE ... ADD COLUMN ... DEFAULT).
2. Quick Navigation & Reference Modules
- [Indexing & Query Optimization with EXPLAIN ANALYZE](./references/indexing-and-explain-guide.md)
- [Primary Key Strategies & Row-Level Security (RLS) Guide](./references/primary-key-and-rls-guide.md)
- [Database Scaling, Connection Pooling & Partitioning](./references/scaling-and-polyglot-persistence.md)
- [Modern SQL & NoSQL Hosting Architecture](./references/sql-and-nosql-hosting-guide.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: hiroqt
- Source: hiroqt/PixelCrew
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.