kaelio avatar

Historic Sql Table Digest

This does one thing: it takes a single table's query history from the historic-sql adapter and distills it into structured evidence about how that table is actually used. You get frequency tier, common filters, joins, and group-bys packaged into a narrative that feeds schema projection downstream. The workflow is strictly constrained: read the raw JSON, produce exactly one table_usage evidence object, then stop. No wiki writes, no semantic layer edits. The identifier verification protocol is notably thorough, requiring you to confirm every schema.table reference resolves before emitting anything. Useful when you need deterministic table usage facts extracted from query logs without second-guessing or creative expansion.

GitHub stars
1.1K
last updated
Jun 11, 2026

Install

$ npx -y skills add kaelio/ktx --skill historic_sql_table_digest --agent claude-code

Installs into .claude/skills of the current project.

Files

Historic SQL Table Digest

Use this skill when the WorkUnit raw file is one tables/<schema>.<name>.json file from the historic-sql adapter.

Required Workflow

  1. Read the WorkUnit notes first.
  2. Call read_raw_file for the single tables/<schema>.<name>.json raw file.
  3. Read manifest.json only if the table JSON omits the dialect or the WorkUnit notes are unclear.
  4. Produce one concise usage narrative for this table from the staged table JSON.
  5. Call emit_historic_sql_evidence exactly once with kind: "table_usage".
  6. Stop after the evidence tool succeeds.

Identifier Verification Protocol

Before writing a wiki page or SL source on any topic:

  1. discover_data({query: "<topic>"}) - see what wikis, SL sources, and raw tables already exist. Prefer updating existing pages over creating new ones.

Before emitting any schema.table or schema.table.column into a wiki body, SL source, tables: frontmatter, sl_refs, or emit_unmapped_fallback:

Sponsors

Details

Repository
github.com/kaelio/ktx
Category
Databases
License
Apache-2.0
First seen
Jun 11, 2026

More from kaelio/ktx

All 15

Recommended

More Databases
1kaelio avatarlive_database_ingestkaelio/ktxCapture semantic-layer and knowledge updates from a live database schema snapshot.0skills.sh installs
2martinholovsky avatarDatabase Design Expertmartinholovsky/claude-skills-generatorExpert in database schema design with focus on normalization, indexing strategies, FTS optimization, and performance-oriented architecture for desktop applicati0skills.sh installs
3tursodatabase avatarstorage-formattursodatabase/tursoSQLite file format, B-trees, pages, cells, overflow, freelist that is used in tursodb1.3Kskills.sh installs
4snowflake-labs avatarcortex-codesnowflake-labs/subagent-cortex-codeRoutes Snowflake-related operations to Cortex Code CLI for specialized Snowflake expertise. Use when user asks about Snowflake databases, data warehouses, SQL q1.5Kskills.sh installs
5duckdb avatarread-fileduckdb/duckdb-skillsRead any data file (CSV, JSON, Parquet, Avro, Excel, spatial, SQLite) or remote URL (S3, HTTPS). Use when user references a data file, asks "what's in this file1.3Kskills.sh installs
6get-convex avatarschema-builderget-convex/agent-skillsDesign and generate Convex database schemas with proper validation, indexes, and relationships. Use when creating schema.ts or modifying table definitions.554skills.sh installs