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 Arasz/ai-raccoon --skill sqlite-schema-reviewgit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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/arasz/ai-raccoon/sqlite-schema-review)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/sqlite-schema-review"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/sqlite-schema-review/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/arasz/ai-raccoon/sqlite-schema-review"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/sqlite-schema-review.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.00074 | $0.01672 |
| Opus 5.5 | $0.00030 | $0.00669 |
| Sonnet 5.5 | $0.00015 | $0.00334 |
| Haiku 4.5 | $0.00007 | $0.00167 |
Grade C, and why
sqlite-schema-review scanned grade C with 1 finding 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 yesterday.
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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
cd /tmp && rm -rf sqlscratch && mkdir sqlscratch && cd sqlscratch How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQLite schema & migration review
Reviewing changes to SQLite DDL, on-open migrations, unique indexes, and insert-path
dedup (the project storage layer and similar single-file banks). The core rule: SQLite
semantics claims get verified with a scratch DB, never accepted from the plan, the PR, or the
docs — the docs are ambiguous on ON CONFLICT scope and reviewed plans routinely get it
wrong (one plan asserted bare DO NOTHING "swallows FK/CHECK" — it does not).
Empirically verified semantics (scratch-DB confirmed, 2026-08)
- Bare
ON CONFLICT DO NOTHINGswallows ONLY UNIQUE/PK conflicts. NOT NULL, CHECK, and FK violations still throwIntegrityErroreven with DO NOTHING. "DO NOTHING silently swallows real errors" is not a valid risk — real errors surface loudly; only intended bucket-key conflicts are ignored. last_insert_rowid()is STALE after a swallowed insert: previous successful rowid on the same connection, or 0 on a fresh connection whose first statement was swallowed. Any "insert → read back bylast_insert_rowid" pattern must switch to a business-key re-read once DO NOTHING is added — otherwise you return the wrong row / throw "stored no row", and in a per-chunk loop you re-embed the previous chunk's id with the wrong content.CREATE TRIGGERdoes NOT validate column references at creation time — a body referencingold.source_fileon a table/FTS lacking that column is created successfully and fails at FIRE time. A migration DELETE firing such a trigger rolls back the whole migration. Check trigger/upgrade-shape interplay (legacy single-column FTS + new-shape trigger = runtime "no such column" on every DELETE).- UNIQUE indexes treat NULLs as distinct; GROUP BY treats NULLs as equal. A dedupe-then-index migration deletes NULL-key dups but the new index admits future NULL-key duplicates. Harmless only if no insert path produces NULL keys — check schema NULLability and the corpus.
- Expression/partial indexes cannot be named as
ON CONFLICTtargets — bare DO NOTHING (no target) is required; it then applies to all UNIQUE/PK constraints. CREATE UNIQUE INDEX IF NOT EXISTSstill THROWS on a violating table — IF NOT EXISTS only skips when the index already exists. Dedupe-before-create must run on open, never in raw DDL, or a violating bank bricks on every open.id NOT IN (SELECT MIN(id) … GROUP BY …)dedupe is safe iff the subquery cannot return NULL —MIN(id)over a NOT NULL PK never does, so NULL-poisoning ofNOT INdoesn't apply. The DELETE's WHERE must match the index's partial WHERE and the GROUP BY must match the index key exactly (COALESCE included).scope IS @scopematches NULL correctly (IS, not=) — the idiom for bucket-key lookups that must work with NULL scope/context_label/workspace values.- Content identity claims:
hash = SHA-256(path ‖ value)means same path+hash ⟺ same content, so a MIN(id) survivor rule is content-preserving only if every insert site uses the same hash over the same inputs — verify chunk/import paths separately (chunks share a path, differ by hash).
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.
- yesterday First seen · 110 lines · 74 tokens per session scan C 7a55627f67aa
sqlite-schema-review is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,672 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
sqlite-schema-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sqlite-schema-reviewArasz/ai-raccoon | Skill | 7 | today | MIT | C | 74 | Claude Code, Codex |
| graph-db-writessamugit83/redamon | Skill | 3.6k | 2d ago | MIT | A | 174 | Claude Code, Codex |
| tradecraft-librarysamugit83/redamon | Skill | 3.6k | 2d ago | MIT | A | 176 | Claude Code, Codex |
| stripe-projectsstripe/ai | Skill | 2.1k | yesterday | MIT | A | 217 | Claude Code |
| release-db-config-syncPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 91 | Claude Code |
| browser-7008e942FuRongJun-1999/dsh-memory | Skill | 778 | today | MIT | A | 82 | Claude Code |
| cartographer-kb-createBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |