From claude-code-starter
Configures SQLite, PostgreSQL, or Supabase databases: installs dependencies, sets up connections via env vars, generates models/schemas/migrations, and CRUD functions with validation/testing.
npx claudepluginhub lighthouse-strategy/claude-code-starterThis skill uses the workspace's default tool permissions.
帮用户为项目配置数据库,从连接到基本操作一步到位。
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
帮用户为项目配置数据库,从连接到基本操作一步到位。
问题 1:存什么数据
你需要存储什么数据?比如用户信息、文章、订单、产品。
问题 2:数据库选择
推荐方案:
- SQLite(最简单,不需要安装,适合入门和小项目)
- PostgreSQL(生产推荐,功能强大)
- Supabase(云端 PostgreSQL,免费额度大,自带管理界面) 不确定就用 SQLite,后面随时可以换。
根据选择配置数据库:
根据用户描述的数据,生成:
为每个模型生成基本操作:
运行迁移,创建一条测试数据,查询确认写入成功。
数据库已配置完成。模型和 CRUD 函数已生成。 用 /api 可以把这些操作暴露为 API 接口。