Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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_message to main with your results, and respond to any shutdown_request with type: "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 CALL it, 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 — with source_file_path, the mapping proc unit, and migration_object_path
  • The converted proc .sql file (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) at source_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 — and scripts/scan_unit.py)
  • The headless executor available: scai code deploy-and-call (deploy one proc + CALL, returns a ProcCallResult JSON) — 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

Полный SKILL.md на GitHub

Установить proc-fixer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

block-reconstruction-patterns.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить proc-fixer с