proc-fixer
БесплатноБез исполняемых скриптовНе проверенRepair the defective blocks of ONE converted Informatica-to-Snowflake-Scripting mapping procedure by reconstructing each block's SQL from the source…
от sfc-gh-dflippo★ 35 звёзд на GitHubОб этом скилле
Proc Fixer (scripting flavor)
Repair a single converted mapping procedure — an Informatica mapping converted to a standalone Snowflake
Scripting stored procedure — that still contains unsupported-transform stubs (!!!RESOLVE EWI!!!). Each
materialized transformation is a block delimited by boundary markers; the fixer reconstructs each defective
block's SQL from the source transformation node it was converted from, splices it back, then deploys, CALLs,
and grades the procedure against the source-derived assertions until it creates clean and all assertions pass.
The fix is authored from source semantics, not guessed from the broken SQL, and the expected result the fix is graded against is computed by the test generator from the source — so the loop has an independent target.
Scope. This is the data-flow counterpart to orchestration-fixer (which repairs control-flow elements of a task graph) and the scripting-flavor analog of dbt-fixer (which repairs dbt models). In dbt mode a mapping becomes a model repaired by dbt-fixer; in scripting mode a mapping becomes its own stored procedure repaired here. It consumes the assertions authored by proc-test-gen — that pair owns the ARRANGE + ASSERT; this skill owns the ACT (the fix) and drives the repair loop.
Autonomous mode: When spawned as a team agent, skip all interactive stopping points, make reasonable defaults, and document assumptions in the completion report. When done,
send_messagetomainwith your results, and respond to anyshutdown_requestwithtype: "shutdown_response",approve: true.
Where this sits in the fix loop
block-locate ── the defective block + its span/body (scripts/stabilization_tools.py block-locate, marker-scoped)
ewi-extract ── the block's !!!RESOLVE EWI!!! / SSC-* defects (scripts/stabilization_tools.py ewi-extract)
proc-fixer ── [THIS SKILL] reconstruct the fixed block SQL from the source transformation node
block-replace ── splice the fix back between the markers, integrity-checked (scripts/stabilization_tools.py block-replace)
deploy-and-call ─ deploy the one proc into the test schema + CALL it (scai code deploy-and-call)
grade ── run the source-derived assertions against the populated target; PASS/FAIL feeds this loop
proc-fixer owns the ACT: for each defective block it authors a minimal, source-faithful replacement, splices it in, and drives the deploy → CALL → grade cycle. The seed (ARRANGE) and the assertions (ASSERT) come from proc-test-gen and are treated as fixed inputs the fix must satisfy — never edited to make a fix pass.
AAA framing
- Arrange — the input seed and the target table shape are already created and seeded by proc-test-gen
(
<proc_name>.seed.sql). Re-run the seed before each grade to reset to the known state. - Act — deploy the current procedure into the test schema and
CALLit, so its output lands in<test_schema>.<TARGET>. This is what the fix changes. - Assert — run proc-test-gen's batched target-only assertions (
<proc_name>.assert.sql); any non-PASS(or a query that errors) means not-yet-converged.
Input
session_status.json— withsource_file_path, the mapping proc unit, andmigration_object_path- The converted proc
.sqlfile (a mapping unit's converted output, with boundary markers +!!!RESOLVE EWI!!!stubs) — this is the file the fixer edits in place, via block-replace - The source mapping definition (Informatica
.xml) atsource_file_path - The proc-test-gen artifacts under
<UNIT>/stabilization/tests/proc/<proc_name>/:<proc_name>.seed.sql,<proc_name>.assert.sql,test_report.md(the baseline result + which assertions failed) — required. If they are absent, tests have not been generated yet: STOP and return to the parent skill to run proc-test-gen first.
Prerequisites
- Python 3.11+; the deterministic tool layer present (
scripts/stabilization_tools.py— the block-locate / ewi-extract / block-replace / task-error-locate subcommands — andscripts/scan_unit.py) - The headless executor available:
scai code deploy-and-call(deploy one proc + CALL, returns aProcCallResultJSON) — see Tooling - An active Snowflake connection with a warehouse, and CREATE PROCEDURE on the user-provided (test) database + schema that proc-test-gen used
- A backup: ensure
<UNIT>/stabilization/original/holds the pre-fix procedure. The parent skill creates it during setup; create it if missing before the first edit.
Output Location
- The repaired converted
.sql— edited in place via block-replace (boundary markers preserved). <UNIT>/stabilization/tracking/fix_log.md(Main Mode) — one record per fix attempt, successes and failures. Task Mode writes fix records to its learnings artifact instead; the orchestrator merges them.
Tooling (headless, no
Установить proc-fixer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл proc-fixer?
Repair the defective blocks of ONE converted Informatica-to-Snowflake-Scripting mapping procedure by reconstructing each block's SQL from the source transformation node, block-scoped and minimal-change, then deploy+CALL and grade against the source-derived assertions until the procedure creates clean and passes. Use when the stabilization skill invokes fixing for a scripting-flavor mapping procedure.
Как установить скилл proc-fixer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл proc-fixer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub