Skip to content

Ship Claude Code skill for xql (closes #6)#7

Merged
anderix merged 1 commit into
mainfrom
claude-code-skill
Jul 9, 2026
Merged

Ship Claude Code skill for xql (closes #6)#7
anderix merged 1 commit into
mainfrom
claude-code-skill

Conversation

@anderix

@anderix anderix commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • New skill/SKILL.md — an official Claude Code skill so agents told "use xql" reach for the right binary with the right SQL subset instead of hallucinating from training data or falling back to sqlite3/DuckDB. Users install with cp -r skill ~/.claude/skills/xql.
  • README gains a "Claude Code skill" section with the install one-liner.
  • Fixes flagship HAVING n > 1 example in README, GRAMMAR, and the new skill to HAVING COUNT(*) > 1 — the alias form errors at eval today (worth its own follow-up issue).

Closes #6.

Skill scope

Backend dispatch, SQL subset with explicit non-goals (no JOINs/subqueries — reach for DuckDB), write-safety mechanics (preview + Apply? [y/N], ! shortcut, --commit, --confirm-destructive), CSV type-inference gotchas (leading zeros, NaN, Excel scientific notation), SharePoint OData translation (LIKE limits, IN chain, BETWEEN, IS NULL, internal-vs-display column names), REPL commands + one-shot flags + --describe, four worked recipes (dedup, bulk-close SP items, schema-first exploration, redirect large SELECT). Version guard tells the agent to run xql --version and expect 1.6.0+.

Test plan

  • python3 yaml.safe_load parses frontmatter (name + description, 471 chars — well under the 1536 combined cap).
  • cp -r skill ~/.claude/skills/xql-test — layout matches Claude Code skill convention.
  • Recipe 1 (case-fold dedup) runs correctly against a 6-row CSV with CoStar/Costar/costar and Salesforce/salesforce duplicates.
  • Recipe 3 (--describe) prints the expected schema.
  • Recipe 4 (--output) writes CSV to disk correctly.
  • Write-preview flow holds without --commit — verified source file untouched after preview.

🤖 Generated with Claude Code

https://claude.ai/code/session_014xByMrUTST8C4aJHnZqwxg

Adds skill/SKILL.md — an official Claude Code skill so agents told
"use xql" reach for the right binary with the right SQL subset instead
of hallucinating from training data or falling back to sqlite3/DuckDB.

The skill covers backend dispatch, the SQL subset with explicit
non-goals (no JOINs / subqueries — reach for DuckDB), write-safety
mechanics, CSV type-inference gotchas, SharePoint OData translation
rules, REPL commands, and four worked recipes. Users install with
`cp -r skill ~/.claude/skills/xql`.

Also fixes the flagship case-fold dedup example in README.md,
GRAMMAR.md, and the new skill to use `HAVING COUNT(*) > 1` instead of
`HAVING n > 1` — xql's HAVING resolves against source columns and
aggregates, not SELECT-list aliases, so the alias form errors at eval.
Alias-in-HAVING support is worth its own follow-up issue.

Author: David Anderson, with AI assistance from Claude Code.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014xByMrUTST8C4aJHnZqwxg
@anderix
anderix merged commit 84c812d into main Jul 9, 2026
2 checks passed
@anderix
anderix deleted the claude-code-skill branch July 9, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: ship a Claude Code skill for xql

1 participant