AGENT SKILL
audit-sqlite-usage
Audit all bun:sqlite call sites for correctness against the rules in bun-sqlite.md and cross-platform.md.
- License 许可
- MIT
- 最近更新
- 2026-07-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- audit-sqlite-usage
- description
- Audit all bun:sqlite call sites for correctness against the rules in bun-sqlite.md and cross-platform.md.
03 SKILL.md 正文
Audit SQLite Usage
When to use
Use when touching any file under src/core/io/sqlite/ or any source collector that opens a sqlite DB; when fixing sqlite-related test failures on Windows.
Key files
src/core/io/sqlite/open.tssrc/core/io/fs/rm-recursive.tssrc/services/buffer/db.tssrc/sources/cursor/src/sources/codex/
Common pitfalls
- Using
?immutable=1URI flag (works on macOS, fails on Linux/Windows); useSQLITE_OPEN_READONLY | SQLITE_OPEN_URIflags explicitly. - Using
node:fs/promises.rmfor teardown on Windows (EBUSY); usermRecursiveinstead. - Forgetting to extend
afterEachtimeout to 30 s for tests that open sqlite. - Executing real SQL in unit tests — all sqlite tests must use dependency injection.
- Missing the double-attempt open pattern for source databases (try
openReadOnly, fallback to{ immutable: true }on any error).
04 同仓库更多 Skills
redaction-validator
Test that a new or modified redaction rule fires on the target pattern without matching any preserved token.
★ 0
add-source-parser
Step-by-step scaffold for adding a new coding-agent source to the gateway.
★ 0
sample-skill
Example skill
★ 0