Tooluck logoTooluck
SKILL.md

historic_sql_patterns

Agent skill fromKaelio/ktx

Identify recurring cross-table historic-SQL analytical intents from a bounded pattern shard and emit typed pattern evidence for deterministic wiki projection.

How to install historic_sql_patterns

install historic_sql_patterns
# install the ktx pack with the skills CLI
npx skills add Kaelio/ktx

# or add only this skill to Claude Code: copy the folder

packages/cli/src/skills/historic_sql_patterns/

# into

~/.claude/skills/historic_sql_patterns/ (all projects)

.claude/skills/historic_sql_patterns/ (one project)

packages/cli/src/skills/historic_sql_patterns/SKILL.md

Apache-2.0Full file
1# Historic SQL Patterns
2
3Use this skill when the WorkUnit raw file is a `patterns-input/part-0001.json` style shard from the `historic-sql` adapter. Older staged bundles may still provide root `patterns-input.json`; when that is the WorkUnit raw file, read it the same way.
4
5## Required Workflow
6
71. Read the WorkUnit notes first.
82. Find the single pattern input file listed under the WorkUnit `rawFiles` section.
93. Call `read_raw_file` for that exact raw file path.
104. Identify recurring analytical intents that span at least two tables and have repeated usage signal.
115. Emit one `pattern` evidence object per durable cross-table intent by calling `emit_historic_sql_evidence`.
126. Stop after all pattern evidence has been emitted.
13
14Every join column mentioned in pattern descriptions must be verified via
15entity_details for both sides of the join.
16
17## Identifier Verification Protocol
18
19Before writing a wiki page or SL source on any topic:
20
211. `discover_data({query: "<topic>"})` - see what wikis, SL sources, and raw
22 tables already exist. Prefer updating existing pages over creating new ones.
23
24Before emitting any `schema.table` or `schema.table.column` into a wiki body,
25SL source, `tables:` frontmatter, `sl_refs`, or `emit_unmapped_fallback`:
26
272. `entity_details({connectionId, targets: [{display: "<identifier>"}]})` -
28 confirm the identifier resolves; inspect native types, FK/PK, and
29 sampleValues.
303. For literal values from the source, such as status codes or plan tiers,
31…

Excerpt shown under the repository's Apache-2.0 license.

More skills in ktx

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

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

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates