okf-sqlite

okf-sqlite is a skill for Claude Code, Codex from xSAVIKx/okf-skills. It costs 67 tokens per session (747 once invoked), scanned A, original, Apache-2.0.

A SQLite connector that extracts database structure and comments into Open Knowledge Format bundles, portable packages for documenting data, and checks databases against those bundles.

In plain words
What is it for?
Use it to export tables, columns, keys, and metadata from a SQLite file, or validate that an existing database matches an OKF bundle.
Why use it?
It provides a repeatable way to document a local SQLite file and detect differences between the live database and its definition.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to export tables, columns, keys, and metadata from a SQLite file, or validate that an existing database matches an OKF bundle.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xsavikx/okf-skills/okf-sqlite
Install

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.

Any agent
npx skills add xSAVIKx/okf-skills --skill okf-sqlite
Clone the repo
git clone --depth 1 https://github.com/xSAVIKx/okf-skills

Made for: Claude Code, Codex.

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 okf-sqlite

README.md
[![agentmods](https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-sqlite.svg)](https://agentmods.dev/skills/xsavikx/okf-skills/okf-sqlite)
Your own site
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-sqlite"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-sqlite.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 747 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.00747
Opus 5 $0.00034 $0.00374
Sonnet 5 $0.00013 $0.00149
Haiku 4.5 $0.00007 $0.00075

Measured 8d ago against content hash 8cb1f8bea0f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

okf-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 8d 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.

skills/okf-sqlite/SKILL.md · 69 lines

How it starts

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

SQLite OKF Connector

This skill provides a Go-based CLI tool to convert SQLite database schemas and comments into Open Knowledge Format (OKF) bundles, and validate existing databases against OKF bundles.

When to Use

Use this skill when you need to:

  1. Extract metadata, table structures, column definitions, and primary keys from a local SQLite database into a portable OKF bundle.
  2. Verify that an existing SQLite database conforms to an OKF bundle definition.

Setup

The connector is written in Go and requires Go 1.24+ to build from source:

# Install the published binary (Go 1.24+) — no clone needed:
go install github.com/xSAVIKx/okf-skills/skills/[email protected]

# …or build from a clone of the repository:
cd skills/okf-sqlite
go build -o okf-sqlite .

How to Use

1. Produce an OKF Bundle

Extract metadata from a SQLite database file and save it as an OKF bundle directory:

./okf-sqlite produce --db <path-to-sqlite-db-file> --out <output-bundle-dir> [--tables <comma-separated-table-names>] [--sample <N>] [--profile]

Parameters:

  • --db (required): Path to the SQLite .db or .sqlite file.
  • --out (required): Path to the directory where the OKF bundle will be generated.
  • --tables (optional): Filter to extract only specific tables.
  • --sample <N> (optional): Embed up to N sample rows per table as a ## Sample section in each table doc (default 0 = none).
  • --profile (optional): Compute per-column statistics (non-null, null, distinct, min, max) and embed a ## Data Profile section.

2. Ingest / Verify an OKF Bundle

Verify an existing SQLite database's schema against an OKF bundle, or bootstrap missing tables:

./okf-sqlite ingest --db <path-to-sqlite-db-file> --bundle <path-to-okf-bundle> [--sync]

Parameters:

  • --db (required): Path to the SQLite database.
  • --bundle (required): Path to the OKF bundle.
  • --sync (optional): If provided, the tool will attempt to create any missing tables or columns defined in the OKF bundle.

Read the full file on GitHub · 69 lines

Files

What ships with it

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

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. 8d ago First seen · 69 lines · 67 tokens per session scan A 8cb1f8bea0f3

Subscribe to this mod's changes

okf-sqlite is a skill published in the GitHub repository xSAVIKx/okf-skills (33 stars, last pushed 8d ago), licensed Apache-2.0. It adds 67 tokens to every session and 747 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

okf-authoring

Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…

aws-samples/sample-okf-llm-wiki · 102 tokens

report-authoring

The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.

aws-samples/sample-okf-llm-wiki · 44 tokens

okf-open-knowledge-format

Create, validate, and enrich Open Knowledge Format (OKF) bundles — the open spec for representing organizational knowledge as markdown files with YAML frontmatter. Use when the user mentions 'OKF', 'Open Knowledge Format', 'knowledge bundle', 'OKF bundle', 'create a knowledge base for agents', 'validate OKF', 'convert…

fabricioctelles/skills · 168 tokens

okfy

Use when a user wants an agent to use docs through OKFy, set up or verify an OKFy MCP docs source, convert docs websites or local Markdown into OKF bundles, generate activation proof, or answer from an existing OKFy bundle/workspace.

0dust/OKFy · 54 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When GLM needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

jjyaoao/HelloAgents · 51 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When GLM needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing…

jjyaoao/HelloAgents · 97 tokens