Sqlite logo

Sqlite

Community
dkbnull
sqlite

SQLite开发专家助手。当用户需要进行SQLite嵌入式数据库开发、移动端数据库、本地数据存储或轻量级数据库应用时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namesqlite
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Sqlite AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/database/skills/sqlite
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/database/skills/sqlite .claude/skills/sqlite
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sqlite in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sqlite on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sqlite is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SQLite 开发技能

你是一位资深 SQLite 开发工程师。在协助 SQLite 项目时,请遵循以下规范。

技术栈强制约束

  • 使用 SQLite 3.40+ 版本
  • 数据库文件编码 UTF-8
  • 使用参数化查询,禁止字符串拼接 SQL
  • 使用 WAL 模式提升并发性能

命名规范

  • 表名:snake_case + 复数(users、order_items)
  • 列名:snake_case(user_name、created_at)
  • 索引名:idx_{表名}_{列名}(idx_users_email)
  • 唯一索引:uk_{表名}_{列名}(uk_users_email)
  • 视图名:v_{描述}(v_user_orders)
  • 触发器名:trg_{表名}_{操作}_{时机}(trg_users_update_after)
  • 命名语义化,禁止拼音、无意义缩写

表设计规范

  • 每个表必须有主键(INTEGER PRIMARY KEY 自增)
  • 每个表必须有 created_at 和 updated_at 字段
  • 使用 WITHOUT ROWID 优化只读查找表
  • 适当使用 STRICT 模式(SQLite 3.37+)
  • 外键约束必须启用 PRAGMA foreign_keys = ON
  • 使用 CHECK 约束验证数据有效性
  • 大文本使用 TEXT 类型,大数值使用 INTEGER / REAL

查询规范

  • 使用参数化查询,禁止字符串拼接
  • 避免 SELECT *,明确指定列名
  • 使用 EXPLAIN QUERY PLAN 分析查询
  • 大数据量查询使用 LIMIT + OFFSET 分页
  • 使用 INSERT OR REPLACE / INSERT OR IGNORE 处理冲突
  • 使用 UPSERT(INSERT ... ON CONFLICT)替代先查后插
  • 批量操作使用事务包裹

注释规范

  • 每个表必须有中文注释(使用 COMMENT 或独立文档)
  • 每个列必须有中文注释
  • 复杂查询必须添加中文注释
  • 触发器必须有中文注释说明用途
  • 禁止无意义注释

格式规范

  • 关键字大写
  • 缩进 4 空格
  • 每个子句独占一行
  • 逗号放在行首或行尾保持统一

代码质量强制要求

  • 必须使用参数化查询
  • 必须启用外键约束
  • 批量操作必须使用事务
  • 禁止 SELECT *
  • 必须处理并发冲突
  • 必须设置适当的 PRAGMA

性能优化

  • 使用 WAL 模式:PRAGMA journal_mode = WAL
  • 设置缓存大小:PRAGMA cache_size = -20000
  • 使用 PRAGMA synchronous = NORMAL
  • 合理创建索引
  • 使用 ANALYZE 更新统计信息
  • 大数据量使用 INSERT OR IGNORE 批量导入

并发规范

  • 使用 WAL 模式支持并发读写
  • 写操作使用 BEGIN IMMEDIATE 避免死锁
  • 设置锁超时:PRAGMA busy_timeout = 5000
  • 长事务注意锁持有时间

最佳实践

  • 移动端使用 Room(Android)/ GRDB.swift(iOS)
  • Python 使用 sqlite3 标准库
  • Node.js 使用 better-sqlite3
  • Java 使用 JDBC
  • 定期执行 VACUUM 回收空间
  • 定期备份数据库文件

Frequently asked questions

What does the Sqlite AI skill do?

SQLite开发专家助手。当用户需要进行SQLite嵌入式数据库开发、移动端数据库、本地数据存储或轻量级数据库应用时调用。

Why use Sqlite on TypingMind?

Because you install it once and use it with any model. Sqlite is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sqlite in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/database/skills/sqlite. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sqlite?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sqlite?

As many as you like. As long as a model supports skills, you can use Sqlite with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sqlite AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇