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.
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Extract SQLite database tables to text-readable formats for LLM-based content synthesis.
# 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| Format | Best For | File Extension |
|---|---|---|
| CSV | Data analysis, spreadsheets, pandas | .csv |
| JSON | Structured processing, APIs | .json |
| Markdown | LLM context, human reading | .md |
# Extract course DB with schema docs for context
python scripts/db_extract.py course.db -f markdown --schema -o ./course_content# 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# Limit markdown rows for large tables (keeps files manageable)
python scripts/db_extract.py large.db -f markdown --max-rows 50python 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 outputoutput/
├── _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.
6d9d92a
Also appears in
since Nov 5, 2026
since Nov 5, 2026
since Nov 5, 2026
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.