database
Skill36 starsChanged 8 months agoMITView on GitHub
当用户想连数据库、存数据、建表、做数据模型、配置 SQLite/PostgreSQL/Supabase 时使用 — 配置数据库连接并生成增删改查
- Reads credentials
24 other projects use a version of this.
Adopted by
Most recently taken up by
- davidvornholt/mailboxtheir own version, first seen Oct 4, 2026
- msrv-tech/skillstheir own version, first seen Oct 2, 2026
- theopenco/llmgatewaytheir own version, first seen Oct 1, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
- lecluse-net/galaristheir own version, first seen Sep 27, 2026
- yamanidev/claude-code-configurationtheir own version, first seen Sep 13, 2026
Used with
Projects with it also use monitoring, ci-cd and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
rogue-dev-studioSkillmonitoring
Claude monitoring and usage tracking tools (UV, claude-monitor, claude-usage-cli). Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `monitoring` work when listed in TEAM.yaml or explicitly requested.
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 3 projects that use this
ffsshhttiikkSkilli18n
Internationalization and localization
Also in 3 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 5 projects that use this
akornmeierSkilldocker
Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.
Also in 3 projects that use this
AnthropicSkillincident-response
Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.
Also in 3 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- theopenco/llmgateway★ 1.7ksame name
- AsiaOstrich/universal-dev-standards★ 76same name
- msrv-tech/skills★ 57same name
- xiaobei930/cc-best★ 48same name
- neuron-one/GODMODE★ 33same name
- yamanidev/claude-code-configuration★ 9same name
- YepAPI/skills★ 8same name
- SecuringTheRealm/str-agentic-adventures★ 4same name
- davidvornholt/mailbox★ 2same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- apiSkill
- authSkill
- blogSkill
- changelogSkill
- code-reviewSkill
- commitSkill
- compareSkill
- componentSkill
- conceptSkill
- copySkill
- dashboard-adminSkill
- debugSkill
- deploySkill
- docSkill
- emailSkill
- envSkill
- explainSkill
- fixSkill
- formSkill
- gitsetupSkill
- install-pluginsSkill
- landingSkill
- learnSkill
- migrateSkill
- paymentSkill
- perfSkill
- readme-genSkill
- refactorSkill
- responsiveSkill
- scriptSkill
- seoSkill
- setupSkill
- starterSkill
- storageSkill
- testSkill
The file
Files
连接数据库
帮用户为项目配置数据库,从连接到基本操作一步到位。
步骤
1. 了解需求
问题 1:存什么数据
你需要存储什么数据?比如用户信息、文章、订单、产品。
问题 2:数据库选择
推荐方案:
- SQLite(最简单,不需要安装,适合入门和小项目)
- PostgreSQL(生产推荐,功能强大)
- Supabase(云端 PostgreSQL,免费额度大,自带管理界面) 不确定就用 SQLite,后面随时可以换。
2. 配置连接
根据选择配置数据库:
- 安装依赖 — 添加对应的数据库驱动
- 连接配置 — 数据库 URL 放到环境变量,生成 .env.example
- 连接测试 — 确认能成功连接
3. 创建数据模型
根据用户描述的数据,生成:
- 模型/Schema 定义 — 字段名、类型、约束(必填、唯一、默认值)
- 表关系 — 一对多、多对多(如果有)
- 迁移文件 — 创建表的迁移脚本
4. 生成 CRUD 函数
为每个模型生成基本操作:
- Create — 创建记录,包含数据验证
- Read — 查询列表(支持分页)和查询详情
- Update — 更新记录
- Delete — 删除记录
5. 验证
运行迁移,创建一条测试数据,查询确认写入成功。
数据库已配置完成。模型和 CRUD 函数已生成。 用 /api 可以把这些操作暴露为 API 接口。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

