register-sas-converted-units
БесплатноБез исполняемых скриптовНе проверенPreview. Attach converted Snowflake SQL to existing SAS Code Unit Registry entries so scai test can validate them. Reads conversion_state.json, sets…
от sfc-gh-dflippo★ 35 звёзд на 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
.sqloutput and itsconversion_state.jsonmarks filescomplete. - Invoked automatically by
convert-sas-to-snowflakepost-conversion, or run standalone.
Inputs
- Project root — the SAS conversion
<output_dir>(already registered byregister-sas-source-units). - conversion_state.json (optional path) — defaults to
<project-root>/conversion_state.json. Supplies, per file:output_file(the converted.sql),tier, anddependencies.
Workflow
Ensure source units exist. If
registry/is empty, runregister-sas-source-unitsfirst (this pass updates existing entries; it does not create them).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 a3-PYSPARKtier), it:- locates
output_file, copies it undersnowflake/, md5-checksums it, and setsfiles.converted.path(root-relative); - reads the converted SQL and sets the authoritative
objectTypefromCREATE [OR REPLACE] PROCEDURE|FUNCTION|TABLE|VIEW(falling back to the tier mapping if the pattern is absent); - fills
target.database/target.schemafrommetadata.target_schema; - stamps
codeStatus.conversion.status = "completed".
- locates
Report attached counts and which units are now
procedure/function(seedable) vstable/view(registered but not proc-tested).Run the harness (self-consistency): see
../convert-sas-to-snowflake/workflows/scai-test-selfconsistency.md. In short:scai test seed --where "source.platform = 'sas'"thenscai test validateagainst Snowflake. Note:scai test capturefrom 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).
Notes
- Idempotent. Re-running re-attaches to the same UUIDv5 units.
- Units whose source was never registered are skipped without error (run Skill A first). PySpark (Tier 3) units remain source-only — they are not SQL objects.
Установить register-sas-converted-units в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл register-sas-converted-units?
Preview. Attach converted Snowflake SQL to existing SAS Code Unit Registry entries so scai test can validate them. Reads conversion_state.json, sets files.converted + confirms objectType from the generated SQL, stamps codeStatus.conversion. Skill-side JSON only — no SnowConvert dialect, no .NET registry engine. Triggers: attach converted SAS SQL, register converted SAS, complete SAS CUR, make converted SAS testable, scai test SAS validate.
Как установить скилл register-sas-converted-units?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл register-sas-converted-units запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic