跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/alinaqi/claude-bootstrap/database-schema

Claude Code Database Schema Skill for Nullable Queries

Confirm real field names, nullability and relationships before writing a query or regenerating types.

中文

Install in Claude Code

Use a local project with a declared schema, migrations and fixtures. The example uses Prisma, but the same checks apply to other typed query layers.

  1. Get the complete `skills/database-schema` directory from the pinned revision.
  2. Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/database-schema/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.

Example task

A library fixture has a nullable field `returnedAt`. Ask for a query that finds unreturned books and coverage using one returned and one unreturned fixture.

What to check

The implementation uses the exact schema field and returns only the row where `returnedAt` is null. The test covers both fixtures.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

What should I check when generated types disagree with the migration?

Confirm the applicable migration state and compare its field definition with the checked-in schema and generated types.

Related skills from this repository

  • Claude Code Android Java Skill for Fragment ViewBinding
  • Claude Code Android Kotlin Skill for Compose StateFlow Loading
Browse Claude Code skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯