register-sas-source-units
БесплатноБез исполняемых скриптовНе проверенPreview. Populate the Code Unit Registry (CUR) from SAS source files so the scai test harness can see them. Writes one registry/<id>.json per SAS file…
от sfc-gh-dflippo★ 35 звёзд на GitHubОб этом скилле
Register SAS Source Units into the Code Unit Registry
© Snowflake Inc. This skill and its contents are the proprietary intellectual property of Snowflake Inc.
Purpose: Bridge the isolated SAS conversion track to the existing scai test
regression harness by writing Code Unit Registry (CUR) entries directly as JSON
from the SAS source files. This is the first of two registration steps; the second
(register-sas-converted-units) attaches the converted .sql.
Boundary (do not cross): This writes registry/<id>.json files only. It does
not register a SnowConvert source dialect, touch the .NET CodeUnitRegistry
engine, add SAS to MCP state machines, or join AIM claims/waves. See
../INTEGRATION.md. The contract for the JSON it writes is ../references/cur-schema.md.
When to use
- After (or alongside) a SAS conversion, when the user wants to run
scai test(seed/validate) against the converted output. - Automatically invoked by
convert-sas-to-snowflakepost-conversion (see that skill's wiring), or run standalone against an existing.sascorpus.
Inputs
- SAS source — a
.sasfile or a directory of them. - Project root — the SAS conversion
<output_dir>. Gains a.scai/marker plus siblingregistry/,source/,snowflake/,artifacts/dirs soscai testrecognizes it as a project. - Target schema (optional) —
DB.SCHEMAthe converted objects will live in.
Workflow
Resolve the project root. Default to the conversion
<output_dir>. If an existing.scai/project is present elsewhere, confirm with the user before scaffolding a new one (do not collide with an AIM project).Run the emitter (deterministic, stdlib-only Python — no Snowflake needed):
cd ../assess-sas-migration/tool python3 emit_cur.py source \ --sas <dir_or_file> \ --project-root <output_dir> \ --source-root <dir> \ --target-schema DB.SCHEMAFor each SAS file it writes one source-side unit:
source.platform = "sas",objectTypeinferred from the parsed blocks (macro/DATA-step logic ->procedure; pure table-building ->table), file-level dependency edges from the cross-file graph, and asignaturefrom any%MACROparameters. The.sasfile is copied undersource/and md5-checksummed.Report the counts by objectType and note that only
procedure/function/macrounits will producescai testcases (tables register but are not proc-tested). Tier-3 (PySpark) files are not SQL objects and are left for the converted pass to skip.Next step: run
register-sas-converted-unitsonce conversion output exists to attachfiles.convertedand confirm objectType from the generated SQL.
Notes
- Idempotent. Unit ids are UUIDv5 of
SAS.<NAME>, so re-running overwrites the same files rather than duplicating. - objectType is provisional here. The authoritative objectType comes from the
converted SQL in
register-sas-converted-units; this pass uses a block heuristic so units are registerable before conversion completes. - Verify entries with
scai code where(queryable fields) andscai test seed --where "source.platform = 'sas'".
Установить register-sas-source-units в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл register-sas-source-units?
Preview. Populate the Code Unit Registry (CUR) from SAS source files so the scai test harness can see them. Writes one registry/<id>.json per SAS file (source-side) into the conversion output_dir, skill-side JSON only — no SnowConvert dialect, no .NET registry engine. Triggers: register SAS units, populate CUR from SAS, add SAS to code unit registry, make SAS testable, scai test SAS, register SAS source.
Как установить скилл register-sas-source-units?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл register-sas-source-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