This is a ClickHouse SQL assistant that enforces best practices at the schema level. It won't let you write a query without validating it first, and it knows the sharp edges of ClickHouse's sparse indexing, so you won't accidentally scan a billion rows because you filtered on a secondary key column without including the partition key. It discovers schemas on demand, handles system table queries by deferring to a specialist skill, and optimizes for the common case of time series analytics. Use it when you need to pull data from ClickHouse and want the query to actually be fast. The mandatory validation step feels heavy handed until you've debugged one too many queries that passed syntax checks but killed production.

GitHub stars
320
last updated
May 14, 2026

Install

$ npx -y skills add frankchen021/datastoria --skill sql-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

🚨 CRITICAL RULE: MANDATORY VALIDATION

You MUST call validate_sql(sql) for every new query you generate. Context Note: Historical validation steps are pruned to save tokens, but this does NOT excuse you from validating new queries in the current turn. Always validate before executing.

Sponsors

Details

Repository
github.com/frankchen021/datastoria
Category
Databases
First seen
Jun 11, 2026

More from frankchen021/datastoria

All 7

Recommended

More Databases
1tidyverse avatarsql-translationtidyverse/dbplyrGuide for adding SQL function translations to dbplyr backends. Use when implementing new database-specific R-to-SQL translations for functions like string manip0skills.sh installs
2TryGhost avatarCreate database migrationTryGhost/GhostCreate a database migration to add a table, add columns to an existing table, add a setting, or otherwise change the schema of Ghost's MySQL database.0skills.sh installs
3microsoft avatarazure-postgresmicrosoft/github-copilot-for-azure34.8Kskills.sh installs
4microsoft avatarazure-postgresmicrosoft/azure-skillsazure postgres27.8Kskills.sh installs
5wshobson avatardatabase-migrationwshobson/agentsExecute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when migrating databases,18Kskills.sh installs
6github avatarpostgresql-code-reviewgithub/awesome-copilotPostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usa12.8Kskills.sh installs