inflexa: Skill for Claude Code

.claude/skills/db-ops/SKILL.md

db-ops is a skill for Claude Code from inflexa-ai/inflexa. It costs 42 tokens per session (2,237 once invoked), scanned A, original, Apache-2.0.

A set of rules for reading and writing data in an application's SQLite database, using the project's existing database files and result types. SQLite is a database stored in a local file rather than run as a separate server.

In plain words
What is it for?
Use it when adding, changing, or reviewing database functions in the application's storage layer, including reads, inserts, updates, counts, and existence checks.
Why use it?
It helps database code follow the project's naming, error-handling, and query conventions instead of using inconsistent operations.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is inflexa-ai/inflexa's own configuration. It tells Claude Code how to work on inflexa itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything inflexa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to inflexa-ai/inflexa. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/inflexa-ai/inflexa/main/.claude/skills/db-ops/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/inflexa-ai/inflexa

Made for: Claude Code.

Wrote 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.

agentmods badge for db-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/inflexa-ai/inflexa/db-ops/github.svg)](https://agentmods.dev/skills/inflexa-ai/inflexa/db-ops)
Your own site
<a href="https://agentmods.dev/skills/inflexa-ai/inflexa/db-ops"><img src="https://agentmods.dev/badge/skills/inflexa-ai/inflexa/db-ops/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.

agentmods 80×15 button for db-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/inflexa-ai/inflexa/db-ops"><img src="https://agentmods.dev/badge/skills/inflexa-ai/inflexa/db-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,237 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.02237
Opus 5.5 $0.00017 $0.00895
Sonnet 5.5 $0.00008 $0.00447
Haiku 4.5 $0.00004 $0.00224

Measured 2d ago against content hash 22bfd8cda64a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

db-ops 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 2d 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.

.claude/skills/db-ops/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Operations

The storage layer is hand-written SQLite (bun:sqlite) under src/db/. Every function returns Result<T, DbError> from neverthrow — callers handle both paths. Reads live in primary_query.ts, writes in primary_mutation.ts, shared helpers in util.ts, the error model in errors.ts, and the schema in primary_migrations.ts.

Naming → return type

The function name encodes the operation, and the verb fixes the return type. Match these exactly — they are the contract.

Function Operation Returns
get<Entity>(id) one row by primary key Result<Entity | null, DbError> — null = not found
get<Entity>By<Key>(key) one row by a non-PK key (only when a second lookup axis exists) Result<Entity | null, DbError>
list<Entity>() / list<Entity>By<Parent>(pid) many rows Result<Entity[], DbError> — [] when none
count<Entity>(…) aggregate count Result<number, DbError>
<entity>Exists(…) existence check Result<boolean, DbError>
create<Entity>(…) INSERT, this function mints the id Result<Entity, DbError>
insert<Entity>(entity) INSERT, caller supplies a fully-formed entity Result<Entity, DbError>
update<Entity>(…) / update<Entity><Field>(id, …) UPDATE Result<number, DbError> — rows changed (0 = no such row)
touch<Entity>(id) heartbeat update that must NOT bump updatedAt Result<number, DbError>
delete<Entity>(id) hard DELETE Result<number, DbError> — rows changed

Rules the table encodes:

  • get returns one, list returns many. A many-row read is always list*, even when keyed by a parent (listAnalysisInputs).
  • Absence is not an error. A missing single row is ok(null); a mutation that matches nothing is ok(0). DbError is reserved for genuine failures (connection, exec, constraint, migration) — never "not found".
  • Mutations report rows changed. update* / delete* / touch* return the .changes count from .run(), so a caller can detect a no-op (n === 0) without a follow-up read.
  • create vs insert encodes id ownership. create* mints the id inline with randomUUIDv7(); insert* takes an entity whose id is already fixed by the caller (e.g. insertAnchor — its id is the write-once on-disk marker UUID and must be preserved, not regenerated).

Read the full file on GitHub · 165 lines

Changes

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.

  1. 2d ago Changed 22bfd8cda64a
  2. 1mo ago First seen · 165 lines · 42 tokens per session scan A a3d90c73d933

Subscribe to this mod's changes

db-ops is a skill published in the GitHub repository inflexa-ai/inflexa (36 stars, last pushed yesterday), licensed Apache-2.0. It adds 42 tokens to every session and 2,237 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-09-09.

Related

db-ops compared with skills from other repositories

db-ops next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
db-opsinflexa-ai/inflexaSkill36yesterdayApache-2.0A42Claude Code
dna-methylation-file-format-handlingHolobiomicsLab/asb-skill-collectionsSkill166d agoApache-2.0A59Claude Code, Codex
methylkit-database-mode-configurationHolobiomicsLab/asb-skill-collectionsSkill166d agoApache-2.0A63Claude Code, Codex
biosymphony-structure-factoryBioSymphony/structure-factorySkill1225d agoMITA43Claude Code, Codex
binder-lane-roundBioSymphony/structure-factorySkill1225d agoMITA32Claude Code
unichem-databasejaechang-hits/SciAgent-SkillsSkill3842d agononeA96Claude Code
archs4-databasejaechang-hits/SciAgent-SkillsSkill3842d agononeA81Claude Code