[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ESMP2Z5AEXX0HBH5WQSC0X":3,"skill-same:01M7ESMP2Z5AEXX0HBH5WQSC0X":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":14,"repositoryHtmlUrl":57,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":73},"01M7ESMP2Z5AEXX0HBH5WQSC0X","sql-sentinel",null,"Audit SQL for the cost & performance anti-patterns that burn warehouse credits. Scores warehouse health 0-100 and outputs a prioritized cost-reduction plan for BigQuery, Snowflake, Redshift, and Postgres.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fdata\u002Fsql-sentinel\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sql-sentinel\ndescription: \"Audit SQL for the cost & performance anti-patterns that burn warehouse credits. Scores warehouse health 0-100 and outputs a prioritized cost-reduction plan for BigQuery, Snowflake, Redshift, and Postgres.\"\ncategory: data\nrisk: critical\nsource: community\nsource_repo: takeaseatventure\u002Fsql-sentinel\nsource_type: community\ndate_added: \"2026-06-26\"\nauthor: takeaseat\ntags: [sql, bigquery, snowflake, redshift, postgres, data-warehouse, cost-optimization, performance, audit, finops]\ntools: [claude, cursor, codex, gemini]\nplugin:\n  targets:\n    codex: blocked\n    claude: blocked\n  setup:\n    type: manual\n    summary: \"Clone the upstream analyzer only after pinning or reviewing the exact commit to run.\"\n    docs: SKILL.md\nlicense: \"MIT\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002Ftakeaseatventure\u002Fsql-sentinel\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n\n# sql-sentinel\n\n## Overview\n\nA static-analysis skill that audits SQL for the cost & performance anti-patterns that dominate warehouse bills — `SELECT *`, full-table scans, non-sargable predicates, Cartesian joins, the `NOT IN` NULL trap, and 15 more. It scores warehouse query health 0-100 (A-F) and outputs a prioritized cost-reduction plan, each finding with a `why`, a concrete `fix`, and an estimated savings.\n\nBuilt for analytics engineers (dbt, Looker), data platform teams running FinOps \u002F \"reduce cloud spend\" initiatives, and anyone reviewing a SQL pull request before it hits production. Works across BigQuery, Snowflake, Redshift, and Postgres. Zero dependencies, MIT licensed.\n\nThe executable engine and full rule set live in the source repository: https:\u002F\u002Fgithub.com\u002Ftakeaseatventure\u002Fsql-sentinel. Treat that repository as third-party executable code.\n\n## When to Use This Skill\n\n- A user writes or reviews a query for BigQuery, Snowflake, Redshift, Postgres, or Spark SQL.\n- A user asks \"why is this query so slow?\" or \"why is my warehouse bill so high?\"\n- A user is about to promote a dashboard query or dbt model to production.\n- A data engineer wants a second pair of eyes before a code review or a cost-optimization sweep.\n- A team is running a \"reduce cloud spend\" or FinOps initiative.\n\n## How It Works\n\nThe engine splits a SQL script into statements (honoring quotes and comments), runs 20 rules over each statement, scores health 0-100 weighted by severity (critical 25, high 12, medium 5, low 1), and returns a prioritized cost-reduction plan.\n\n### Step 1: Run the audit\n\nInstall or clone the source repository only after choosing a reviewed commit, tag, or release to trust. Do not run code from a mutable default branch just because this skill links to it:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ftakeaseatventure\u002Fsql-sentinel.git\ncd sql-sentinel\ngit checkout \u003Creviewed-commit-or-tag>\nnode scripts\u002Fsql-sentinel.js path\u002Fto\u002Fquery.sql\n```\n\nOr programmatically:\n\n```javascript\nconst { auditSql } = require('.\u002Fscripts\u002Fsql-sentinel');\nconst report = auditSql(yourSqlString, { dialect: 'bigquery' });\nconsole.log(report.healthScore);      \u002F\u002F 0-100\nconsole.log(report.grade);            \u002F\u002F 'A' | 'B' | 'C' | 'D' | 'E' | 'F'\nconsole.log(report.prioritizedPlan);  \u002F\u002F array, worst findings first\n```\n\n### Step 2: Read the prioritized plan\n\nThe output leads with critical findings (Cartesian joins, mass DELETE) and descends to low-severity style issues. Each finding explains *why* it costs money and *how* to fix it.\n\n## Examples\n\n### Example 1: A messy dashboard query\n\n```sql\nSELECT DISTINCT *\nFROM user_events, raw_logs\nWHERE LOWER(event_name) LIKE '%signup%'\n  AND user_id NOT IN (SELECT id FROM deleted_users)\nORDER BY created_at;\n```\n\nThe audit scores this 17\u002F100 (grade F) and flags 7 findings:\n- CRITICAL: comma-join produces a Cartesian product (can turn a $0.02 query into a $200 query)\n- HIGH: `SELECT *` forces full column scan (30-90% wasted bytes on wide tables)\n- HIGH: leading-wildcard `LIKE '%signup%'` defeats indexes\n- HIGH: `LOWER(event_name)` defeats indexes (non-sargable)\n- HIGH: `NOT IN (SELECT ...)` — NULL semantics hazard\n- MEDIUM: `SELECT DISTINCT` dedup cost\n- MEDIUM: `ORDER BY` without `LIMIT` sorts the full result\n\n### Example 2: A clean, sargable query\n\n```sql\n-- This scores 90+\u002F100 (grade A) — no findings\nSELECT id, email, created_at\nFROM users\nWHERE created_at >= TIMESTAMP '2026-01-01'\n  AND created_at \u003C  TIMESTAMP '2026-02-01'\nORDER BY id\nLIMIT 100;\n```\n\n## The 20 rules (ruleset v1.0.0)\n\n| Rule | Severity | Catches |\n|---|---|---|\n| SQL001 | high | `SELECT *` full column scan |\n| SQL002 | critical | No `WHERE` → full table scan |\n| SQL003 | high | `LIKE '%term'` non-sargable |\n| SQL004 | high | Function on column kills index |\n| SQL005 | critical | `CROSS JOIN` \u002F comma-join |\n| SQL006 | medium | `SELECT DISTINCT` dedup cost |\n| SQL007 | medium | `ORDER BY` without `LIMIT` |\n| SQL008 | high | `NOT IN (SELECT ...)` NULL trap |\n| SQL009 | medium | Implicit type cast |\n| SQL010 | low | Many `OR`s (use `IN`\u002F`UNION`) |\n| SQL011 | medium | `COUNT(DISTINCT)` at scale (use HLL) |\n| SQL012 | low | `LIMIT` without `ORDER BY` |\n| SQL013 | medium | Scalar subquery in `SELECT` |\n| SQL014 | medium | 5+ JOINs broadcast\u002Fspill risk |\n| SQL015 | high | Fact table, no partition filter |\n| SQL017 | low | String concat in `SELECT` |\n| SQL018 | medium | Window `OVER ()` no `PARTITION` |\n| SQL020 | critical | `DELETE`\u002F`UPDATE` without `WHERE` |\n| SQL021 | low | `SELECT *` in `EXISTS`\u002F`IN` |\n| SQL022 | medium | `UNION` vs `UNION ALL` |\n\nRun the test suite to verify each rule fires on real SQL:\n\n```bash\ncd scripts && node test.js   # 26 tests, zero dependencies\n```\n\n## Limitations\n\n- This is a **static** analyzer. It finds anti-patterns in the *text* of SQL; it does not read query plans, row counts, or billing. A flagged query on a 100-row table is cheap; the same query on a billion-row table is the problem the rule exists to prevent.\n- The fact-table heuristic (SQL015) keys off table *names* (`*_events`, `*_log`) and is advisory, not definitive.\n- It does not execute SQL — safe to run on any `.sql` file.\n","# sql-sentinel\n\n## Overview\n\nA static-analysis skill that audits SQL for the cost & performance anti-patterns that dominate warehouse bills — `SELECT *`, full-table scans, non-sargable predicates, Cartesian joins, the `NOT IN` NULL trap, and 15 more. It scores warehouse query health 0-100 (A-F) and outputs a prioritized cost-reduction plan, each finding with a `why`, a concrete `fix`, and an estimated savings.\n\nBuilt for analytics engineers (dbt, Looker), data platform teams running FinOps \u002F \"reduce cloud spend\" initiatives, and anyone reviewing a SQL pull request before it hits production. Works across BigQuery, Snowflake, Redshift, and Postgres. Zero dependencies, MIT licensed.\n\nThe executable engine and full rule set live in the source repository: https:\u002F\u002Fgithub.com\u002Ftakeaseatventure\u002Fsql-sentinel. Treat that repository as third-party executable code.\n\n## When to Use This Skill\n\n- A user writes or reviews a query for BigQuery, Snowflake, Redshift, Postgres, or Spark SQL.\n- A user asks \"why is this query so slow?\" or \"why is my warehouse bill so high?\"\n- A user is about to promote a dashboard query or dbt model to production.\n- A data engineer wants a second pair of eyes before a code review or a cost-optimization sweep.\n- A team is running a \"reduce cloud spend\" or FinOps initiative.\n\n## How It Works\n\nThe engine splits a SQL script into statements (honoring quotes and comments), runs 20 rules over each statement, scores health 0-100 weighted by severity (critical 25, high 12, medium 5, low 1), and returns a prioritized cost-reduction plan.\n\n### Step 1: Run the audit\n\nInstall or clone the source repository only after choosing a reviewed commit, tag, or release to trust. Do not run code from a mutable default branch just because this skill links to it:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ftakeaseatventure\u002Fsql-sentinel.git\ncd sql-sentinel\ngit checkout \u003Creviewed-commit-or-tag>\nnode scripts\u002Fsql-sentinel.js path\u002Fto\u002Fquery.sql\n```\n\nOr programmatically:\n\n```javascript\nconst { auditSql } = require('.\u002Fscripts\u002Fsql-sentinel');\nconst report = auditSql(yourSqlString, { dialect: 'bigquery' });\nconsole.log(report.healthScore);      \u002F\u002F 0-100\nconsole.log(report.grade);            \u002F\u002F 'A' | 'B' | 'C' | 'D' | 'E' | 'F'\nconsole.log(report.prioritizedPlan);  \u002F\u002F array, worst findings first\n```\n\n### Step 2: Read the prioritized plan\n\nThe output leads with critical findings (Cartesian joins, mass DELETE) and descends to low-severity style issues. Each finding explains *why* it costs money and *how* to fix it.\n\n## Examples\n\n### Example 1: A messy dashboard query\n\n```sql\nSELECT DISTINCT *\nFROM user_events, raw_logs\nWHERE LOWER(event_name) LIKE '%signup%'\n  AND user_id NOT IN (SELECT id FROM deleted_users)\nORDER BY created_at;\n```\n\nThe audit scores this 17\u002F100 (grade F) and flags 7 findings:\n- CRITICAL: comma-join produces a Cartesian product (can turn a $0.02 query into a $200 query)\n- HIGH: `SELECT *` forces full column scan (30-90% wasted bytes on wide tables)\n- HIGH: leading-wildcard `LIKE '%signup%'` defeats indexes\n- HIGH: `LOWER(event_name)` defeats indexes (non-sargable)\n- HIGH: `NOT IN (SELECT ...)` — NULL semantics hazard\n- MEDIUM: `SELECT DISTINCT` dedup cost\n- MEDIUM: `ORDER BY` without `LIMIT` sorts the full result\n\n### Example 2: A clean, sargable query\n\n```sql\n-- This scores 90+\u002F100 (grade A) — no findings\nSELECT id, email, created_at\nFROM users\nWHERE created_at >= TIMESTAMP '2026-01-01'\n  AND created_at \u003C  TIMESTAMP '2026-02-01'\nORDER BY id\nLIMIT 100;\n```\n\n## The 20 rules (ruleset v1.0.0)\n\n| Rule | Severity | Catches |\n|---|---|---|\n| SQL001 | high | `SELECT *` full column scan |\n| SQL002 | critical | No `WHERE` → full table scan |\n| SQL003 | high | `LIKE '%term'` non-sargable |\n| SQL004 | high | Function on column kills index |\n| SQL005 | critical | `CROSS JOIN` \u002F comma-join |\n| SQL006 | medium | `SELECT DISTINCT` dedup cost |\n| SQL007 | medium | `ORDER BY` without `LIMIT` |\n| SQL008 | high | `NOT IN (SELECT ...)` NULL trap |\n| SQL009 | medium | Implicit type cast |\n| SQL010 | low | Many `OR`s (use `IN`\u002F`UNION`) |\n| SQL011 | medium | `COUNT(DISTINCT)` at scale (use HLL) |\n| SQL012 | low | `LIMIT` without `ORDER BY` |\n| SQL013 | medium | Scalar subquery in `SELECT` |\n| SQL014 | medium | 5+ JOINs broadcast\u002Fspill risk |\n| SQL015 | high | Fact table, no partition filter |\n| SQL017 | low | String concat in `SELECT` |\n| SQL018 | medium | Window `OVER ()` no `PARTITION` |\n| SQL020 | critical | `DELETE`\u002F`UPDATE` without `WHERE` |\n| SQL021 | low | `SELECT *` in `EXISTS`\u002F`IN` |\n| SQL022 | medium | `UNION` vs `UNION ALL` |\n\nRun the test suite to verify each rule fires on real SQL:\n\n```bash\ncd scripts && node test.js   # 26 tests, zero dependencies\n```\n\n## Limitations\n\n- This is a **static** analyzer. It finds anti-patterns in the *text* of SQL; it does not read query plans, row counts, or billing. A flagged query on a 100-row table is cheap; the same query on a billion-row table is the problem the rule exists to prevent.\n- The fact-table heuristic (SQL015) keys off table *names* (`*_events`, `*_log`) and is advisory, not definitive.\n- It does not execute SQL — safe to run on any `.sql` file.\n",{"name":5,"risk":24,"tags":25,"tools":36,"author":41,"plugin":42,"source":49,"license":15,"category":50,"date_added":51,"description":7,"source_repo":52,"source_type":49,"license_source":53},"critical",[26,27,28,29,30,31,32,33,34,35],"sql","bigquery","snowflake","redshift","postgres","data-warehouse","cost-optimization","performance","audit","finops",[37,38,39,40],"claude","cursor","codex","gemini","takeaseat",{"setup":43,"targets":47},{"docs":44,"type":45,"summary":46},"SKILL.md","manual","Clone the upstream analyzer only after pinning or reviewing the exact commit to run.",{"codex":48,"claude":48},"blocked","community","data","2026-06-26","takeaseatventure\u002Fsql-sentinel","https:\u002F\u002Fgithub.com\u002Ftakeaseatventure\u002Fsql-sentinel\u002Fblob\u002Fmain\u002FLICENSE","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fdata\u002Fsql-sentinel","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill sql-sentinel",{"tool":66,"command":67},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill sql-sentinel",{"tool":69,"command":70},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill sql-sentinel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fdata\u002Fsql-sentinel\u002FSKILL.md",true,[],[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":82},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":82},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]