register-sas-converted-units

register-sas-converted-units is a skill for Claude Code from sfc-gh-dflippo/snowflake-dbt-demo. It costs 98 tokens per session (898 once invoked), scanned A, original, Apache-2.0.

A registry update that links converted Snowflake SQL files to existing records for SAS source files. The registry is a set of JSON records that tells a test tool which source and converted files belong together.

In plain words
What is it for?
Use it after conversion to attach .sql files, confirm their database object type, and mark the conversion as ready for testing.
Why use it?
It makes converted SQL available to the project’s test process without changing the conversion engine or Snowflake itself.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../assess-sas-migration/tool.

Part of the snowflake-migration plugin — 72 skills, 7 agents shipped together

Good fit Use it after conversion to attach .sql files, confirm their database object type, and mark the conversion as ready for testing.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sfc-gh-dflippo/snowflake-dbt-demo
agentmods
npx agentmods add skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units

Made for: Claude Code.

Or install snowflake-migration, the plugin that ships this one along with the rest of its 72 skills, 7 agents.

Wrote 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.

agentmods badge for register-sas-converted-units

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units/github.svg)](https://agentmods.dev/skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units)
Your own site
<a href="https://agentmods.dev/skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units"><img src="https://agentmods.dev/badge/skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units/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.

agentmods 80×15 button for register-sas-converted-units

Your own site · 80×15
<a href="https://agentmods.dev/skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units"><img src="https://agentmods.dev/badge/skills/sfc-gh-dflippo/snowflake-dbt-demo/register-sas-converted-units.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.00898
Opus 5 $0.00049 $0.00449
Sonnet 5 $0.00020 $0.00180
Haiku 4.5 $0.00010 $0.00090

Measured 2d ago against content hash 92761491823d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

register-sas-converted-units scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/snowflake-migration/skills/migration/sas/register-sas-converted-units/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Register Converted SAS SQL into the Code Unit Registry

© Snowflake Inc. This skill and its contents are the proprietary intellectual property of Snowflake Inc.

Purpose: The second of two registration steps. After register-sas-source-units has written source-side CUR entries, this attaches each converted .sql file (files.converted), confirms the objectType from the generated SQL, and stamps codeStatus.conversion — so scai test seed/validate can run against the SAS conversion in Snowflake self-consistency mode.

Boundary (do not cross): Writes/updates registry/<id>.json only. No SnowConvert dialect, no .NET CodeUnitRegistry engine, no MCP state machines, no AIM claims/waves. See ../INTEGRATION.md; contract in ../references/cur-schema.md.

When to use

  • After a SAS conversion has produced .sql output and its conversion_state.json marks files complete.
  • Invoked automatically by convert-sas-to-snowflake post-conversion, or run standalone.

Inputs

  1. Project root — the SAS conversion <output_dir> (already registered by register-sas-source-units).
  2. conversion_state.json (optional path) — defaults to <project-root>/conversion_state.json. Supplies, per file: output_file (the converted .sql), tier, and dependencies.

Workflow

  1. Ensure source units exist. If registry/ is empty, run register-sas-source-units first (this pass updates existing entries; it does not create them).

  2. Run the emitter:

    cd ../assess-sas-migration/tool
    python3 emit_cur.py converted \
      --project-root <output_dir> \
      --state <path/to/conversion_state.json>
    

    For each file with status == "complete" (and not a 3-PYSPARK tier), it:

    • locates output_file, copies it under snowflake/, md5-checksums it, and sets files.converted.path (root-relative);
    • reads the converted SQL and sets the authoritative objectType from CREATE [OR REPLACE] PROCEDURE|FUNCTION|TABLE|VIEW (falling back to the tier mapping if the pattern is absent);
    • fills target.database/target.schema from metadata.target_schema;
    • stamps codeStatus.conversion.status = "completed".
  3. Report attached counts and which units are now procedure/function (seedable) vs table/view (registered but not proc-tested).

  4. Run the harness (self-consistency): see ../convert-sas-to-snowflake/workflows/scai-test-selfconsistency.md. In short: scai test seed --where "source.platform = 'sas'" then scai test validate against Snowflake. Note: scai test capture from a source system is not applicable to SAS — the baseline is the converted code's own stable Snowflake run (or the convert skill's validation expected-outputs).

Read the full file on GitHub · 72 lines

Changes

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.

  1. 2d ago First seen · 72 lines · 98 tokens per session scan A 92761491823d

Subscribe to this mod's changes

register-sas-converted-units is a skill published in the GitHub repository sfc-gh-dflippo/snowflake-dbt-demo (33 stars, last pushed 3d ago), licensed Apache-2.0. It adds 98 tokens to every session and 898 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

reproduce-bug

Reproduce a reported bug in googleapis/mcp-toolbox and decide whether it is real, delivering an evidence-backed verdict: confirmed, already fixed, misconfiguration, client-side, works as intended, not reproducible, or blocked. Use whenever a maintainer asks you to reproduce, verify, confirm, or investigate a bug…

googleapis/mcp-toolbox · 130 tokens

fix-failing-tests

Diagnose a failing test in the googleapis/mcp-toolbox repo and land a fix by reasoning from the actual error: read the failure, reproduce it, shrink it until the cause is forced into the open, then fix the cause. Use this whenever a test or CI job is red, a build breaks after a change, many packages fail at once, or a…

googleapis/mcp-toolbox · 87 tokens

azure-cosmos-db-py

Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns. Use when implementing database client setup with dual auth (DefaultAzureCredential + emulator), service layer classes with CRUD operations, partition key strategies, parameterized queries, or TDD patterns for Cosmos. Triggers…

microsoft/skills · 96 tokens

adding-dbt-unit-test

Creates unit test YAML definitions that mock upstream model inputs and validate expected outputs. Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt.

dbt-labs/dbt-agent-skills · 44 tokens

gh-issue

Size-audit, write, and split BanyanDB issues that somebody else or an automated TDD workflow can implement. Use whenever the user asks to file or revise an issue, decide whether an issue is too large, make an issue TDD-ready, turn a design into tickets, or split an umbrella into executable leaves. Do not draft or file…

apache/skywalking-banyandb · 91 tokens