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 | $0.00023 | $0.00484 |
| Sonnet 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 10d 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.
- 10d 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 2d ago), licensed MIT. It adds 45 tokens to every session and 968 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
cmdb-patterns
Create ServiceNow CIs and cmdbrelci relationships, walk upstream/downstream impact, detect orphan/stale CIs, and align discovered CIs with the proper sysclassname hierarchy.
data-policies
Manage ServiceNow dictionary (sysdictionary), table/field creation, choice lists, dictionary overrides, and sysdatapolicy2 rules that enforce mandatory/read-only/visible field behavior on the data layer.
import-export
Move data in and out of ServiceNow — CSV parsing into import sets, GlideImportSetTransformer runs, CSV/JSON/XML exports, scheduled data sources, bulk update and deleteMultiple safety patterns.
gliderecord-patterns
Write efficient ServiceNow GlideRecord queries — addQuery vs addEncodedQuery, setLimit, GlideAggregate for counts, avoiding N+1 in loops, query operators, and safe CRUD with workflow control.
sqlike
Check SQL with sqlike — deterministic static analysis (validity, anti-patterns, rewrites, index advice) and query-equivalence verification. Use whenever you write, edit, review, or rewrite a SQL query, or need to prove two queries return the same results. Requires the sqlike MCP server (@sqlike/mcp) or the sqlike CLI…
supabase-schema-generator
An SRE-grade automation skill to parse SQL schemas and auto-generate safe TypeScript interfaces for the frontend and Row Level Security (RLS) policies for Supabase.