CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

db-router

Route database files to appropriate extraction method based on identification from db-identify. Decides between DBeaver CLI (for supported formats) or db-extractor-* skills (for unsupported formats). Use AFTER db-identify to determine extraction workflow.

Quality

81%

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-router in KennethJefferson/cc_sdk_knowledge_extractor

SKILL.md
Quality
Evals
Security

Database Router

Route identified databases to the correct extraction method.

Decision Flow

db-identify output
       │
       ▼
┌──────────────────┐
│ dbeaver_supported│
└────────┬─────────┘
         │
    ┌────┴────┐
    │         │
   Yes       No
    │         │
    ▼         ▼
 DBeaver   db-extractor-*
   CLI        skill

Quick Start

# Route from identification JSON (typical workflow)
python scripts/db_route.py --json '{"format": "sqlite", "dbeaver_supported": true}'

# Identify + route in one step
python scripts/db_route.py --file database.db

# View routing table
python scripts/db_route.py --list-routes

Output

Format: sqlite
Decision: use_dbeaver
Method: dbeaver_cli

Instructions:
  • Use DBeaver CLI to export sqlite database
  • DBeaver supports this format natively
  • Fallback: db-extractor-sqlite (available)

Routing Table

FormatDBeaverExtractor SkillStatus
sqlite✓db-extractor-sqliteavailable
access✓db-extractor-accessplanned
dbf✓db-extractor-dbfplanned
h2✓db-extractor-h2planned
firebird✓db-extractor-firebirdplanned
berkeleydb✗db-extractor-berkeleydbplanned
redis-rdb✗db-extractor-redisplanned

Decision Types

DecisionMeaningAction
use_dbeaverDBeaver CLI supportedUse DBeaver for extraction
use_skillSkill available, DBeaver notUse db-extractor-* skill
skill_neededNo DBeaver, skill not readyNeed to build extractor
unknown_formatUnidentified formatManual investigation

CLI Reference

python scripts/db_route.py [OPTIONS]

Options:
  -f, --file PATH       Database file (runs db-identify first)
  -j, --json JSON       Identification JSON from db-identify
  --format FORMAT       Database format directly
  --dbeaver-supported   true/false
  --output-json         Output routing decision as JSON
  -l, --list-routes     Show routing table

Agent Workflow

# Step 1: Identify
IDENT=$(python db-identify/scripts/db_identify.py course.db --json)

# Step 2: Route
python db-router/scripts/db_route.py --json "$IDENT"

# Step 3: Execute based on decision
# → use_dbeaver: run DBeaver CLI export
# → use_skill: run db-extractor-* script
# → skill_needed: create extractor skill
Repository

KennethJefferson/cc_skill_monorepo_db_tools

Path

db-router/SKILL.md

Last updated
First committed

Canonical home

KennethJefferson/cc_sdk_knowledge_extractor
In sync

since Nov 5, 2026

Also appears in

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.