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 LeeYudok/agents-scaffold --skill dok3-sqlitegit clone --depth 1 https://github.com/LeeYudok/agents-scaffoldWrote 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/leeyudok/agents-scaffold/dok3-sqlite)<a href="https://agentmods.dev/skills/leeyudok/agents-scaffold/dok3-sqlite"><img src="https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/dok3-sqlite/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/leeyudok/agents-scaffold/dok3-sqlite"><img src="https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/dok3-sqlite.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.00080 | $0.02584 |
| Opus 5.5 | $0.00032 | $0.01034 |
| Sonnet 5.5 | $0.00016 | $0.00517 |
| Haiku 4.5 | $0.00008 | $0.00258 |
Grade A, and why
dok3-sqlite 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 today.
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 — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
dok3-sqlite
SQLite 엔진 고유의 문제가 대상이다. 스키마 설계 이론은 dok3-db, PostgreSQL 은 dok3-pg,
Go 코드 관용구는 dok3-go 가 맡는다.
SQLite 는 "작은 RDB"가 아니라 파일 하나가 데이터베이스인 라이브러리다. 서버가 없다는 사실에서 이 문서의 거의 모든 항목이 파생된다.
1. 남의 파일을 읽을 때 — 원본을 바꾸지 않는다
앱이 쓰고 있는 캐시·데이터 파일을 조회하는 작업이 흔하다. 원본을 건드리면 그 앱의 데이터가 깨진다. 기본은 읽기 전용이다.
dsn := "file:" + path + "?mode=ro&_pragma=busy_timeout(5000)"
mode=ro— 쓰기를 엔진 수준에서 막는다. 애플리케이션 규율에 기대지 않는다.busy_timeout— 다른 프로세스가 쓰는 중이면 즉시 실패하지 않고 기다린다. 없으면 산발적인database is locked로 나타난다.- URI 파일명에서
?·#은 구분자다. 경로에 들어 있으면 퍼센트 인코딩한다. 그냥 이어붙이면?앞까지를 경로로 읽어 엉뚱한 빈 파일을 새로 만들고, 뒤의mode=ro도 무시된다. 오류는no such table로만 나온다.
곁 파일까지 확인한다
읽기만 해도 -wal·-shm·-journal 이 생기면 원본 폴더를 오염시킨 것이다.
롤백 저널 DB 는 mode=ro 로 조회해도 곁 파일이 생기지 않는다. WAL 모드 DB 는 mode=ro
만으로 안 된다. 곁 파일이 없는 WAL DB 를 mode=ro 로 열면 SQLite 3.51.0 은 열기 자체가
unable to open database file 로 실패하고, 3.53.4 는 열리지만 -wal·-shm 을 만든다
(2026-10-04 실측). 읽기·쓰기 모드로 열면 조회만 해도 둘 다 생긴다.
정말 건드리면 안 되는 파일은 immutable=1 을 고려한다. 곁 파일 없이 읽힌다. 다만 이건
"파일이 변하지 않는다"는 약속이므로 앱이 쓰는 중이면 쓰지 않는다.
가장 안전한 순서: 사본을 떠서 사본을 연다. WAL DB 의 사본은 본 파일만으로는 모자란다
(7장). 그럴 수 없으면 mode=ro + 곁 파일 검사.
이건 테스트로 고정한다
문서에만 적힌 "읽기 전용"은 다음 리팩터링에서 사라진다. 회귀 테스트로 못 박는다.
// 조회란 조회를 다 돌린 뒤 파일 해시가 같은지, 곁 파일이 안 생겼는지
before := sha256sum(path)
// ... Rooms / Messages / Count / Search ...
if after := sha256sum(path); after != before { t.Error("원본이 바뀌었다") }
for _, s := range []string{"-wal", "-shm", "-journal"} {
if _, err := os.Stat(path + s); !os.IsNotExist(err) { t.Error("곁 파일이 생겼다") }
}
쓰기가 실제로 막히는지도 확인한다 — mode=ro 로 연 뒤 DELETE 가 실패해야 한다.
2. 동적 테이블·컬럼명 — 유일한 방어선
테이블명은 플레이스홀더로 넘길 수 없다. 스키마가 Chat_<방ID> 처럼 데이터에 따라
갈리는 구조면 문자열 조립이 불가피하다. 그러면 검증이 유일한 방어선이 된다.
var roomIDRe = regexp.MustCompile(`^[0-9a-f]{12}-[0-9]{3}$`)
func tableName(id string) (string, error) {
if !roomIDRe.MatchString(id) { // 통과 못 하면 절대 쿼리에 넣지 않는다
return "", fmt.Errorf("%w: %q", ErrInvalidRoomID, id)
}
return "Chat_" + id, nil
}
// 조립 시 반드시 인용부호로 감싼다 — 이름의 '-' 가 연산자로 파싱되는 것도 막는다
q := fmt.Sprintf(`SELECT ... FROM %q WHERE Sequence > ?`, table)
What ships with it
4 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.
- today First seen · 163 lines · 80 tokens per session scan A b6bca01afa62
dok3-sqlite is a skill published in the GitHub repository LeeYudok/agents-scaffold (40 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 2,584 once invoked, about $0.0003 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-11-30.
dok3-sqlite compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dok3-sqliteLeeYudok/agents-scaffold | Skill | 40 | today | MIT | A | 80 | Claude Code |
| migrationSpaceMalamute/ai-rules | Skill | 2 | 9mo ago | none | A | 7 | Claude Code |
| memstack-development-migration-plannercwinvestments/memstack | Skill | 433 | 17d ago | MIT | A | 73 | Claude Code |
| memstack-security-rls-checkercwinvestments/memstack | Skill | 433 | 17d ago | MIT | A | 80 | Claude Code |
| memstack-security-rls-guardiancwinvestments/memstack | Skill | 433 | 17d ago | MIT | A | 84 | Claude Code |
| optimizeFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 15 | Claude Code |
| database-experttravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 36 | Claude Code |