{"enrichment":{"faq":[{"a":"Database Fundamentals guides you through schema design review by checking normalization, primary and foreign keys, and data types. It helps ensure your tables follow proper structure, relationships are correctly defined, and columns use appropriate types for their data. This foundation prevents future scaling issues and data integrity problems.","q":"What does database-fundamentals cover in schema review?"},{"a":"Database Fundamentals identifies N+1 query problems by analyzing how your code fetches related data. Common solutions include eager loading (fetching all related records upfront), batch queries, or restructuring your ORM calls. The skill helps you spot where loops trigger repeated queries and recommends fixes for Prisma, MongoDB, and other ORMs.","q":"How can I avoid N+1 queries in my application?"},{"a":"Database Fundamentals teaches SQL injection prevention by enforcing parameterized queries\u2014separating SQL code from user input so attackers cannot manipulate your statements. It flags unsafe string concatenation and shows how to use placeholders and bound parameters. This is critical for any application accepting user data.","q":"What is SQL injection prevention with parameterized queries?"},{"a":"Database Fundamentals evaluates your index strategy by analyzing query patterns and recommending where indexes help most. It covers single-column indexes, composite indexes for multi-column queries, and when indexing hurts write performance. Proper indexing dramatically improves SELECT speed without changing your code.","q":"What database indexing strategy should I use for my queries?"},{"a":"Database Fundamentals checks that your migrations are reversible and prevent data loss. It verifies up/down steps are paired, destructive changes are avoided or backed up, and rollback paths exist. Safe migrations let you deploy confidently and recover quickly if issues arise in production.","q":"How do I ensure database migrations are reversible and safe?"},{"a":"Database Fundamentals surfaces anti-patterns like SELECT *, missing foreign keys, denormalization without justification, and pagination without indexes on large datasets. It provides a junior developer guide to schema design, helping you recognize pitfalls early and follow best practices for normalization, eager/lazy loading, and EXPLAIN analysis.","q":"What are common database anti-patterns and mistakes to avoid?"}],"shadow_tags":["query-optimization","data-integrity","performance-tuning","schema-design","sql-safety","orm-patterns","migration-strategy","indexing-tactics","normalization-rules","code-review"],"summary_rewrite":"Database Fundamentals guides code review of schemas, queries, and migrations across SQL and NoSQL systems. It surfaces common pitfalls like N+1 queries, missing indexes, and unsafe string concatenation, while providing checklists for normalization, data types, and reversible migrations."},"files":[{"bytes":6526,"path":".claude/skills/fundamentals/database/SKILL.md","sha256":"fd81eeaed2d9a8174bc84f5d1db794de494c30253e1655ffa9958875945a9beb","url":"https://skillfed.io/files/DanielPodolsky/ownyourcode/database/cc5d9fc3/SKILL.md"}],"id":"DanielPodolsky/ownyourcode/database","links":{"html":"https://skillfed.io/DanielPodolsky/ownyourcode/database","md":"https://skillfed.io/DanielPodolsky/ownyourcode/database.md","repo":"https://github.com/DanielPodolsky/ownyourcode"},"meta":{"agents_supported":["claude-code"],"first_seen":"2026-07-28","forks":17,"language":"Shell","last_updated":"2026-06-27","license":"MIT","name":"database-fundamentals","publisher":"DanielPodolsky","stars":265},"relations":{"categories":["backend-development","database-engineering","code-review"],"similar":[{"id":"CloudAI-X/claude-workflow-v2/database-design"},{"id":"curiositech/some_claude_skills/database-design-patterns"},{"id":"zhaono1/agent-playbook/performance-engineer"},{"id":"CuriousLearner/devkit/query-builder"},{"id":"softaworks/agent-toolkit/database-schema-designer"},{"id":"daffy0208/ai-dev-standards/performance-optimizer"},{"id":"EliasOulkadi/shokunin/db-sculptor"},{"id":"troykelly/claude-skills/database-architecture"},{"id":"Pixel-Process-UG/superkit-agents/database-schema-design"},{"id":"QuestForTech-Investments/claude-code-skills/sql-expert"}]},"slug":{"owner":"DanielPodolsky","repo":"ownyourcode","skill":"database"},"version":"cc5d9fc3"}
