proc-fixer
FreeNo executable scriptsNot checkedRepair the defective blocks of ONE converted Informatica-to-Snowflake-Scripting mapping procedure by reconstructing each block's SQL from the source…
by sfc-gh-dflippo★ 35 GitHub starsAbout this skill
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
Install proc-fixer in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the proc-fixer skill do?
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.
How do I install the proc-fixer skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the proc-fixer skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
ci-review
The scan that the plugin's GitHub Action runs.
by 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…
by 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…
by 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…
by GitHub