Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add twells89/sigma-migration-skills --skill custom-sql-to-data-modelgit clone --depth 1 https://github.com/twells89/sigma-migration-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/twells89/sigma-migration-skills/custom-sql-to-data-model)<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/custom-sql-to-data-model"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/custom-sql-to-data-model/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/twells89/sigma-migration-skills/custom-sql-to-data-model"><img src="https://agentmods.dev/badge/skills/twells89/sigma-migration-skills/custom-sql-to-data-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 5 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Supply Chain · line 250 Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
- high Supply Chain · line 584 Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
- medium Data Exfiltration · line 250 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
- medium Data Exfiltration · line 378 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
- medium Data Exfiltration · line 553 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.06621 |
| Opus 5 | $0.00036 | $0.03311 |
| Sonnet 5 | $0.00014 | $0.01324 |
| Haiku 4.5 | $0.00007 | $0.00662 |
Grade A, and why
custom-sql-to-data-model scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -X POST \ How it starts
The opening of the file, as written. The whole thing — 599 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Custom SQL → Data Model
End-to-end flow:
- Scan workbooks for
source.kind: "sql"elements (Phase 1). - Scan data models to index every existing SQL or warehouse-table source (Phase 1.5).
- Group manifest entries by normalized SQL; for each group, decide reuse an existing DM element or build a new one (Phase 1.5 → plan).
- Build DMs only for the to-build groups (Phase 2 / 3 / 4).
- Drive
:swapSourcesfrom the plan, one workbook at a time (Phase 5). - Audit and repair residual
[Prefix/SNAKE_CASE]formulas left behind by Sigma's auto-match (Phase 6).
The key win versus the legacy GET/mutate/PUT approach: one workbook with N
SQL elements is one API call with N entries in sourceMapping, and the
auto-match handles formula rewrites — except for the rough edges Phase 6
catches.
Prerequisites
Required env vars: SIGMA_BASE_URL, SIGMA_CLIENT_ID, SIGMA_CLIENT_SECRET
Default (shell-neutral, works in bash/zsh/PowerShell/cmd): mint a token
with the stdlib-only Python script and let scripts/lib/sigma_rest.rb pick
it up automatically from auth.json — no eval, no shell-specific syntax:
python3 scripts/get_token.py --workdir /tmp/custom-sql-run
This writes /tmp/custom-sql-run/auth.json (mode 0600). Every Ruby script in
this skill checks $SIGMA_WORKDIR/auth.json (or ./auth.json) before
falling back to a fresh client-credentials exchange, so point SIGMA_WORKDIR
at the same directory (or run from inside it) and every subsequent ruby scripts/*.rb invocation authenticates without any shell-specific token
plumbing:
export SIGMA_WORKDIR=/tmp/custom-sql-run
ruby scripts/scan-workbooks.rb
bash/zsh convenience (equivalent, but bash-only):
eval "$(bash scripts/get-token.sh)"
Tokens expire after ~1 hour. The Ruby scripts in this skill now auto-refresh on 401 via
scripts/lib/sigma_rest.rb— full-site scans on large orgs (hundreds of workbooks, sometimes >1 hour total) no longer fail mid-run. If you still seeToken missing or malformedafter a refresh, re-runpython3 scripts/get_token.py --workdir "$SIGMA_WORKDIR"(oreval "$(bash scripts/get-token.sh)"in bash) manually.
What ships with it
21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- generated/cline/custom-sql-to-data-model.md 24 KB
- generated/codex/AGENTS.md 24 KB
- generated/continue/custom-sql-to-data-model.md 24 KB
- generated/cursor/rules/custom-sql-to-data-model.mdc 25 KB
- refs/environment.md 5.7 KB
- scripts/audit-formulas.rb 2.4 KB runs code
- scripts/bootstrap.ps1 41 KB runs code
- scripts/bootstrap.sh 44 KB runs code
- scripts/doctor.ps1 24 KB runs code
- scripts/doctor.sh 34 KB runs code
- scripts/get_token.py 8.2 KB runs code
- scripts/get-token.sh 4.4 KB runs code
- scripts/lib/code_rep.rb 9.2 KB runs code
- scripts/lib/formula_audit.rb 1.1 KB runs code
- scripts/lib/ruby_compat.rb 2.9 KB runs code
- scripts/lib/sigma_rest.rb 5.5 KB runs code
- scripts/lib/workbook_sql.rb 1.1 KB runs code
- scripts/plan-dedup.rb 4.1 KB runs code
- scripts/scan-data-models.rb 4.0 KB runs code
- scripts/scan-workbooks.rb 2.1 KB runs code
- scripts/test-workbook-sql.rb 3.1 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 599 lines · 72 tokens per session scan A 47243de973ee
custom-sql-to-data-model is a skill published in the GitHub repository twells89/sigma-migration-skills (14 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 6,621 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for prisma-next. Use when the user wants to create a pull request, open a PR, or submit changes for review.
schema-exploration
Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.
ha-data-stores
Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…
supabase
Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…
nornicdb-cypher-queries
Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.
dsql
Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…