Skills for Real Engineers. Straight from my .agents directory.
historic_sql_table_digest
Agent skill fromKaelio/ktx
Convert one changed historic-SQL table usage bucket into typed table usage evidence for deterministic _schema projection.
How to install historic_sql_table_digest
npx skills add Kaelio/ktx# or add only this skill to Claude Code: copy the folder
packages/cli/src/skills/historic_sql_table_digest/
# into
~/.claude/skills/historic_sql_table_digest/ (all projects)
.claude/skills/historic_sql_table_digest/ (one project)
1# Historic SQL Table Digest23Use this skill when the WorkUnit raw file is one `tables/<schema>.<name>.json` file from the `historic-sql` adapter.45## Required Workflow671. Read the WorkUnit notes first.82. Call `read_raw_file` for the single `tables/<schema>.<name>.json` raw file.93. Read `manifest.json` only if the table JSON omits the dialect or the WorkUnit notes are unclear.104. Produce one concise usage narrative for this table from the staged table JSON.115. Call `emit_historic_sql_evidence` exactly once with `kind: "table_usage"`.126. Stop after the evidence tool succeeds.1314## Identifier Verification Protocol1516Before writing a wiki page or SL source on any topic:17181. `discover_data({query: "<topic>"})` - see what wikis, SL sources, and raw19 tables already exist. Prefer updating existing pages over creating new ones.2021Before emitting any `schema.table` or `schema.table.column` into a wiki body,22SL source, `tables:` frontmatter, `sl_refs`, or `emit_unmapped_fallback`:23242. `entity_details({connectionId, targets: [{display: "<identifier>"}]})` -25 confirm the identifier resolves; inspect native types, FK/PK, and26 sampleValues.273. For literal values from the source, such as status codes or plan tiers,28 check whether they appear in `entity_details` sampleValues for the relevant29 column. If sampleValues is short or the sample may have missed real values,30 run a `sql_execution` probe with the same warehouse connection id:31…
Excerpt shown under the repository's Apache-2.0 license.
More skills in ktx
Similar skill repositories
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
