SPANDigitalSPANDigitalOfficialยท1 Agent Skills Included

cel2sql

Convert CEL expressions into SQL for six databases

Converts CEL filter expressions into type-safe SQL conditions for PostgreSQL, MySQL, SQLite, DuckDB, BigQuery, and Spark. Eliminates hand-written WHERE clauses, SQL injection risks, and dialect-specific syntax differences. Handles JSON paths, arrays, regex, timestamps, and comprehensions automatically. Includes skills for adding new dialects, new CEL features, and cutting releases.
npx skills add SPANDigital/cel2sql --all -g -y
Available:

Gives the agent the project architecture, build and test commands, and code quality rules it needs to work on the cel2sql codebase correctly.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install cel2sql?โ–ผ

Run `npx skills add SPANDigital/cel2sql --all -g -y` in your terminal to install all skills in this suite globally.

What does cel2sql do?โ–ผ

It converts CEL (Common Expression Language) filter expressions into SQL WHERE conditions for PostgreSQL, MySQL, SQLite, DuckDB, BigQuery, and Spark SQL, with type checking and injection protection built in.

How do I add a new SQL dialect to cel2sql?โ–ผ

The add-sql-dialect skill walks the agent through registering the dialect name, implementing the Dialect interface, adding a type provider, and populating shared test cases.

Does cel2sql protect against SQL injection?โ–ผ

Yes. It validates field names, escapes JSON paths, limits recursion depth and output length, and blocks dangerous regex patterns by default.

Can cel2sql recommend database indexes?โ–ผ

Yes. The AnalyzeQuery function inspects your CEL expression and suggests dialect-specific indexes such as B-tree, GIN, or clustering based on the query patterns it detects.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’