← ClaudeAtlas

sap-fix-abaplisted

Fixes ABAP source code issues found by sap-check-abap. Reads the check result TSV, builds a fix plan, and applies fixes: - NAMING violations: renames variables throughout the file - UNUSED variables: comments out declarations - TYPE_NOT_FOUND: flagged for manual review (not auto-fixable) Creates a timestamped backup (.bak) before modifying the source file. Prerequisites: Run sap-check-abap first to produce the result TSV.
sapdev-ai/sap-dev · ★ 4 · Data & Documents · score 77
Install: claude install-skill sapdev-ai/sap-dev
# SAP Fix ABAP Skill You fix ABAP source code quality issues detected by sap-check-abap. You rename variables that violate naming conventions, comment out unused declarations, and flag type issues for manual review. You always back up the file before making changes. Task: $ARGUMENTS --- ## Shared Resources | File | Purpose | |---|---| | `<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md` | Mandatory operating rules | | `<SAP_DEV_CORE_SHARED_DIR>/rules/language_independence_rules.md` | GUI-scripting language independence — offline fixer, but rule applies to downstream deploy skills the fixed source feeds | | `<SAP_DEV_CORE_SHARED_DIR>/rules/abap_code_quality_rules.md` | ABAP code-quality rules — fixes applied here (variable renames, unused-comment-out) must preserve / restore modern-ABAP conventions; never introduce literal MESSAGE strings or downgrade syntax to obsolete forms while fixing | --- ## Step 0 — Resolve Work Directory **Settings reads/writes follow `<SAP_DEV_CORE_SHARED_DIR>/rules/settings_lookup.md`** — merge `settings.local.json` over `settings.json` per-key on the `.value` field; writes always go to `settings.local.json`. Resolve cross-plugin paths: 3 levels up from `<SKILL_DIR>`, then into `..\sap-dev-core\settings.json` and (if present) `..\sap-dev-core\settings.local.json`. Read `work_dir` (default `C:\sap_dev_work`). Set `{WORK_TEMP}` = `{work_dir}\temp` and ensure it exists: ```bash cmd /c if not exist "{WORK_TEMP}" mkdir "{WORK_TEMP}" ```