CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

db-extractor-sqlite

Extract SQLite database content to text-readable formats (CSV, JSON, Markdown) for LLM processing and content synthesis. Use when working with SQLite databases (.db, .sqlite, .sqlite3) from course materials, datasets, or applications that need to be converted to text formats for analysis, synthesis, or inclusion in LLM context windows. Routed from db-router skill.

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is db-extractor-sqlite in KennethJefferson/cc_sdk_knowledge_extractor

SKILL.md
Quality
Evals
Security

Database Content Extractor

Extract SQLite database tables to text-readable formats for LLM-based content synthesis.

Quick Start

# Extract all tables to CSV (default)
python scripts/db_extract.py course.db

# Extract to JSON
python scripts/db_extract.py course.db -f json

# Extract to Markdown (best for LLM context)
python scripts/db_extract.py course.db -f markdown

# All formats with schema documentation
python scripts/db_extract.py course.db -f all --schema -o ./output

Output Formats

FormatBest ForFile Extension
CSVData analysis, spreadsheets, pandas.csv
JSONStructured processing, APIs.json
MarkdownLLM context, human reading.md

Common Workflows

Course Material Extraction

# Extract course DB with schema docs for context
python scripts/db_extract.py course.db -f markdown --schema -o ./course_content

Selective Table Extraction

# Only specific tables
python scripts/db_extract.py app.db --tables users,posts,comments

# Exclude system tables
python scripts/db_extract.py app.db --exclude sqlite_sequence,migrations

Large Database Handling

# Limit markdown rows for large tables (keeps files manageable)
python scripts/db_extract.py large.db -f markdown --max-rows 50

CLI Reference

python scripts/db_extract.py DATABASE [OPTIONS]

Arguments:
  DATABASE              Path to SQLite database file

Options:
  -o, --output DIR      Output directory (default: ./extracted)
  -f, --format FORMAT   csv|json|markdown|all (default: csv)
  --tables TABLES       Comma-separated table list
  --exclude TABLES      Tables to skip
  --schema              Include _schema.md documentation
  --max-rows N          Row limit for markdown (default: 100)
  -q, --quiet           Suppress progress output

Output Structure

output/
├── _schema.md          # Schema documentation (if --schema)
├── csv/                # (if format=all)
│   ├── table1.csv
│   └── table2.csv
├── json/
│   └── ...
└── markdown/
    └── ...

Single format outputs files directly to output directory without subdirectories.

Dependencies

  • Python 3.8+ (sqlite3 is built-in)
  • No external packages required
Repository

KennethJefferson/mono-repo_db

Path

db-extractor-sqlite/SKILL.md

Last updated
First committed

Canonical home

KennethJefferson/cc_sdk_knowledge_extractor
In sync

since Nov 5, 2026

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.