sqlite-map-parser

sqlite-map-parser is a skill for Claude Code, Codex from benchflow-ai/skillsbench. It costs 30 tokens per session (1,047 once invoked), scanned A, original, Apache-2.0.

A tool for turning SQLite databases into structured JSON. SQLite is a small database stored in a file, and the tool first examines its tables and relationships before extracting data.

In plain words
What is it for?
Use it to inspect schemas, identify keys and foreign-key links, join related tables, and export map data as JSON.
Why use it?
It helps you understand an unfamiliar SQLite file before writing queries that could miss important connections.

Skill for Claude CodeCodex

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

Good fit Use it to inspect schemas, identify keys and foreign-key links, join related tables, and export map data as JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benchflow-ai/skillsbench/sqlite-map-parser
About the project

SkillsBench is a benchmark for measuring how effectively AI agents use modular skills—folders containing instructions, scripts, and resources—to complete specialized tasks. It helps researchers and developers evaluate both skill quality and agent behavior, including tasks that require combining multiple skills. The catalogue’s skills and instructions are evaluated as part of this workflow.

benchflow-ai/skillsbench · 1,941 stars · on GitHub · skillsbench.ai

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 benchflow-ai/skillsbench --skill sqlite-map-parser
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/skillsbench

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 sqlite-map-parser

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/sqlite-map-parser"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/sqlite-map-parser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,047 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.00030 $0.01047
Opus 5.5 $0.00012 $0.00419
Sonnet 5.5 $0.00006 $0.00209
Haiku 4.5 $0.00003 $0.00105

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

Security

Grade A, and why

sqlite-map-parser 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

tasks/civ6-adjacency-optimizer/environment/skills/sqlite-map-parser/SKILL.md · 172 lines

How it starts

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

SQLite to Structured JSON

Parse SQLite databases by exploring schemas first, then extracting data into structured JSON.

Step 1: Explore the Schema

Always start by understanding what tables exist and their structure.

List All Tables

SELECT name FROM sqlite_master WHERE type='table';

Inspect Table Schema

-- Get column names and types
PRAGMA table_info(TableName);

-- See CREATE statement
SELECT sql FROM sqlite_master WHERE name='TableName';

Find Primary/Unique Keys

-- Primary key info
PRAGMA table_info(TableName);  -- 'pk' column shows primary key order

-- All indexes (includes unique constraints)
PRAGMA index_list(TableName);

-- Columns in an index
PRAGMA index_info(index_name);

Step 2: Understand Relationships

Identify Foreign Keys

PRAGMA foreign_key_list(TableName);

Common Patterns

ID-based joins: Tables often share an ID column

-- Main table has ID as primary key
-- Related tables reference it
SELECT m.*, r.ExtraData
FROM MainTable m
LEFT JOIN RelatedTable r ON m.ID = r.ID;

Coordinate-based keys: Spatial data often uses computed coordinates

# If ID represents a linear index into a grid:
x = id % width
y = id // width

Step 3: Extract and Transform

Basic Pattern

import sqlite3
import json

def parse_sqlite_to_json(db_path):
    conn = sqlite3.connect(db_path)
    conn.row_factory = sqlite3.Row  # Access columns by name
    cursor = conn.cursor()

    # 1. Explore schema
    cursor.execute("SELECT name FROM sqlite_master WHERE type='table'")
    tables = [row[0] for row in cursor.fetchall()]

    # 2. Get dimensions/metadata from config table
    cursor.execute("SELECT * FROM MetadataTable LIMIT 1")
    metadata = dict(cursor.fetchone())

    # 3. Build indexed data structure
    data = {}
    cursor.execute("SELECT * FROM MainTable")
    for row in cursor.fetchall():
        key = row["ID"]  # or compute: (row["X"], row["Y"])
        data[key] = dict(row)

    # 4. Join related data
    cursor.execute("SELECT * FROM RelatedTable")
    for row in cursor.fetchall():
        key = row["ID"]
        if key in data:
            data[key]["extra_field"] = row["Value"]

    conn.close()
    return {"metadata": metadata, "items": list(data.values())}

Read the full file on GitHub · 172 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. 2mo ago First seen · 172 lines · 30 tokens per session scan A a6694d231676

Subscribe to this mod's changes

sqlite-map-parser is a skill published in the GitHub repository benchflow-ai/skillsbench (1,941 stars, last pushed 6d ago), licensed Apache-2.0. It adds 30 tokens to every session and 1,047 once invoked, about $0.0001 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-03.

Related

sqlite-map-parser compared with skills from other repositories

sqlite-map-parser next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sqlite-map-parserbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A30Claude Code, Codex
apache-druid-securitycxcscmu/SkillLearnBenchSkill931mo agoMITA28Claude Code, Codex
pg-release-publishgregs1104/pgbentSkill267yesterdaynoneA102Claude Code
pg-release-runsgregs1104/pgbentSkill267yesterdaynoneB90Claude Code
pg-release-configgregs1104/pgbentSkill267yesterdaynoneB81Claude Code
atlas-mssqlariga/atlasSkill8.9k5d agoApache-2.0A163Claude Code
pentesting-mysqlxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A65Claude Code, Codex