AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Database

skill-lightpointventures-claude-code-starter-database · by lightpointventures

当用户想连数据库、存数据、建表、做数据模型、配置 SQLite/PostgreSQL/Supabase 时使用 — 配置数据库连接并生成增删改查

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-lightpointventures-claude-code-starter-database

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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 Used
  • 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-lightpointventures-claude-code-starter-database)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Database? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

连接数据库

帮用户为项目配置数据库,从连接到基本操作一步到位。

步骤

1. 了解需求

问题 1:存什么数据 > 你需要存储什么数据?比如用户信息、文章、订单、产品。

问题 2:数据库选择 > 推荐方案: > - SQLite(最简单,不需要安装,适合入门和小项目) > - PostgreSQL(生产推荐,功能强大) > - Supabase(云端 PostgreSQL,免费额度大,自带管理界面) > 不确定就用 SQLite,后面随时可以换。

2. 配置连接

根据选择配置数据库:

  • 安装依赖 — 添加对应的数据库驱动
  • 连接配置 — 数据库 URL 放到环境变量,生成 .env.example
  • 连接测试 — 确认能成功连接

3. 创建数据模型

根据用户描述的数据,生成:

  • 模型/Schema 定义 — 字段名、类型、约束(必填、唯一、默认值)
  • 表关系 — 一对多、多对多(如果有)
  • 迁移文件 — 创建表的迁移脚本

4. 生成 CRUD 函数

为每个模型生成基本操作:

  • Create — 创建记录,包含数据验证
  • Read — 查询列表(支持分页)和查询详情
  • Update — 更新记录
  • Delete — 删除记录

5. 验证

运行迁移,创建一条测试数据,查询确认写入成功。

> 数据库已配置完成。模型和 CRUD 函数已生成。 > 用 /api 可以把这些操作暴露为 API 接口。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.