Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill sqlite-guide-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/sqlite-guide-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/sqlite-guide-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/sqlite-guide-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/sqlite-guide-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/sqlite-guide-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00205 | $0.06815 |
| Opus 5.5 | $0.00082 | $0.02726 |
| Sonnet 5.5 | $0.00041 | $0.01363 |
| Haiku 4.5 | $0.00020 | $0.00681 |
Grade A, and why
sqlite-guide-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 804 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQLite Module Skill
面向已有后端项目的开发者,快速集成 SQLite 能力。覆盖5 语言 + AI 时代新场景。
为什么单独做 SQLite 技能
SQLite 是全球部署量最大的数据库 —— Android、iOS、macOS、Windows、Chrome、Firefox、Skype、WhatsApp 全部内置 SQLite。但很多后端开发者只会 MySQL/PG 思维,用 SQLite 时要么过度设计,要么错失其独特优势。
本技能解决 3 个问题:
- 正确使用:WAL、busy_timeout、连接模型、调优
- 选型判断:什么场景选 SQLite,什么场景必须 MySQL/PG
- AI 时代新角色:本地 LLM 缓存、RAG 检索、AI Agent 状态存储、Edge AI
能力清单
| 能力 | 说明 | 难度 |
|---|---|---|
| 连接配置 | SQLite 文件路径 + PRAGMA 调优 | ⭐ |
| CRUD 操作 | 增删改查/批量操作 | ⭐ |
| 事务处理 | 事务提交/回滚/嵌套 | ⭐ |
| 并发访问 | WAL 模式/锁机制/busy_timeout | ⭐⭐ |
| ORM 映射 | SQLAlchemy/Hibernate/GORM/Prisma/Diesel | ⭐⭐ |
| 全文搜索 FTS5 | 内置全文搜索引擎 | ⭐⭐ |
| 多语言集成 | Python/Java/Go/Node.js/Rust 5 语言 | ⭐⭐ |
| AI 时代应用 | 本地 LLM 缓存、RAG、AI Agent 状态 | ⭐⭐ |
| 备份/迁移 | .backup API、Litestream、流式复制 | ⭐⭐ |
触发场景
用户说"帮我加 SQLite"、"集成轻量数据库"、"嵌入式数据库"、"AI 本地数据库"、"本地优先存储"、"RAG 检索库"、"FTS5 全文搜索"时触发。
核心配置(5 语言)
Python (FastAPI)
# config.py
class Settings(BaseSettings):
db_path: str = "./data/myapp.db"
# database.py
import sqlite3
from contextlib import contextmanager
class SQLiteClient:
def __init__(self, db_path: str):
self.db_path = db_path
self._init_db()
def _init_db(self):
with self.get_conn() as conn:
# 必开项:WAL 模式提升读写并发
conn.execute("PRAGMA journal_mode=WAL")
conn.execute("PRAGMA synchronous=NORMAL")
conn.execute("PRAGMA busy_timeout=5000")
conn.execute("PRAGMA foreign_keys=ON")
@contextmanager
def get_conn(self):
conn = sqlite3.connect(self.db_path)
conn.row_factory = sqlite3.Row
try:
yield conn
conn.commit()
except Exception:
conn.rollback()
raise
finally:
conn.close()
def execute(self, sql: str, params: tuple = ()):
with self.get_conn() as conn:
cursor = conn.execute(sql, params)
return cursor.lastrowid
def query(self, sql: str, params: tuple = ()):
with self.get_conn() as conn:
cursor = conn.execute(sql, params)
return [dict(row) for row in cursor.fetchall()]
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +629 lines · +105 tokens per session d8e217dd909f
- 2mo ago First seen · 175 lines · 100 tokens per session scan A ea4c3fdac39b
sqlite-guide-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 205 tokens to every session and 6,815 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.
sqlite-guide-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sqlite-guide-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 205 | Claude Code, Codex |
| create-prprisma/orm | Skill | 48k | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| schema-explorationlangchain-ai/deepagents | Skill | 32k | today | MIT | A | 57 | Claude Code, Codex |
| atlas-mssqlariga/atlas | Skill | 8.9k | 5d ago | Apache-2.0 | A | 163 | Claude Code |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | today | MIT | A | 115 | Claude Code, Codex |
| pentesting-mysqlxalgorix/xalgorix | Skill | 1.5k | 2d ago | Apache-2.0 | A | 65 | Claude Code, Codex |
| nornicdb-cypher-queriesorneryd/NornicDB | Skill | 937 | today | MIT | A | 79 | Claude Code, Codex |