Borrowing it
Nothing to install: this file belongs to beydemirfurkan/todox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/beydemirfurkan/todox/main/.claude/skills/db-change/SKILL.mdgit clone --depth 1 https://github.com/beydemirfurkan/todoxWrote 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/beydemirfurkan/todox/db-change)<a href="https://agentmods.dev/skills/beydemirfurkan/todox/db-change"><img src="https://agentmods.dev/badge/skills/beydemirfurkan/todox/db-change/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/beydemirfurkan/todox/db-change"><img src="https://agentmods.dev/badge/skills/beydemirfurkan/todox/db-change.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.00045 | $0.00968 |
| Opus 5.5 | $0.00018 | $0.00387 |
| Sonnet 5.5 | $0.00009 | $0.00194 |
| Haiku 4.5 | $0.00005 | $0.00097 |
Grade A, and why
db-change 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 2mo 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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Touching the database
No ? inside a SQL string literal
lib/db/client.ts rewrites ? to $n positionally. It does not parse
strings, so a question mark inside a quoted literal shifts every parameter
after it.
-- wrong: the literal eats a placeholder slot
WHERE note = 'why?' AND user_id = ?
Never build a SET clause by hand
Use setClause(patch, COLUMNS) from lib/db/client.ts. Column names cannot be
bound as parameters, so they are interpolated — and patches arrive from
const { id, ...patch } = params at the RPC boundary. Iterating the patch's own
keys put caller-chosen text into the statement. That was a live SQL
injection. The allow-list is the fix; do not route around it.
One module per table
lib/repositories/— one file per table, no cross-table logic.- Repositories never call each other. Anything that must stay consistent
across tables — a status change writing a
task_eventsrow — belongs inlib/services/.
Ownership is checked in exactly one place
lib/services/ownership.ts. Do not inline WHERE user_id = ? at a call site
and consider it handled. A row belonging to somebody else answers 404, never
403 and never "not found for you": the message must not tell a caller that an id
exists.
Load in batches
The database is over the network. A per-row query inside a list is a per-row
round trip — use the listByTasks-style helpers.
Schema and migrations
- The schema lives in
lib/db/schema.tsand is idempotent. pnpm db:migrateis a deploy step, run deliberately. It does not run on cold start: DDL racing across serverless instances is a bad way to discover lock contention.- Nothing queries the database at build time — every page is
force-dynamic, which is what keeps CI free of secrets. statements()splitsSCHEMAon;and strips--comments after the split. So a semicolon inside a comment cuts it in half and the rest of the sentence arrives as a statement, and aDO $$ … $$block cannot be expressed here at all — its body has semicolons in it.
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.
- 2mo ago First seen · 92 lines · 45 tokens per session scan A 245c704d4f5c
db-change is a skill published in the GitHub repository beydemirfurkan/todox (2 stars, last pushed 16d ago), licensed MIT. It adds 45 tokens to every session and 968 once invoked, about $0.0002 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-08-31.
db-change compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| db-changebeydemirfurkan/todox | Skill | 2 | 16d ago | MIT | A | 45 | Claude Code |
| saas-builderixartz/SaaS-Boilerplate | Skill | 7.5k | 5d ago | MIT | A | 75 | Claude Code, Codex |
| alembic-migrationvstorm-co/full-stack-ai-agent-template | Skill | 2.0k | 7d ago | MIT | A | 56 | Claude Code |
| api-canvascyanheads/obsidian-mcp-server | Skill | 702 | 6d ago | Apache-2.0 | A | 85 | Claude Code |
| api-mirrorcyanheads/obsidian-mcp-server | Skill | 702 | 6d ago | Apache-2.0 | A | 68 | Claude Code |
| system-design-data-architectureHoangNguyen0403/agent-skills-standard | Skill | 583 | today | MIT | A | 60 | Claude Code, Codex |
| android-persistenceHoangNguyen0403/agent-skills-standard | Skill | 583 | today | MIT | A | 59 | Claude Code, Codex |