Logo Atc Remediation

Atc Remediation

Cộng đồng
matt1as
atc-remediation

Walk through ATC (ABAP Test Cockpit) violations methodically, grouped by category, with concrete fixes per finding. Use when the user asks to fix, remediate, address, or triage ATC findings on an ABAP object, package, or transport. Refuses pseudo-comment suppressions by default. Applies the rule set in ../CLAUDE.md (loaded on invocation). Targets modern ABAP — BTP ABAP Environment and S/4HANA on-prem in the ABAP Cloud development model.

Tổng quan

Nhà phát hànhmatt1as
Kho mãclaude-abap-skills
Tên kỹ năngatc-remediation
Sao
34
Bản fork
5
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được matt1as công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Atc Remediation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/atc-remediation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matt1as/claude-abap-skills.git /tmp/claude-abap-skills
mkdir -p .claude/skills
cp -r /tmp/claude-abap-skills/abap-cloud-rap/atc-remediation .claude/skills/atc-remediation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Atc Remediation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Atc Remediation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Atc Remediation với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

abap-cloud-rap:atc-remediation

Walk through ATC violations from the connected ABAP system and fix them methodically, grouped by category, with an explanation per finding.

What this command does

You are taking ATC (ABAP Test Cockpit) results, grouping them by check category, and proposing a concrete fix for each — applying the rules in ../CLAUDE.md. Pseudo-comment suppressions are off-limits unless the user explicitly justifies and approves them.

Tool routing (read carefully). Read the ## Tooling section in ../CLAUDE.md before the first tool call and follow it. For this skill the routing is:

StepPrimaryFallback
Run the ATC checkabap-adt abap_atc_run → poll abap_atc_get_resultarc-1 SAPDiagnose action="atc"
Discover check variantsarc-1 SAPDiagnose action="atc_variants"ask the user for the variant name
Read the offending sourcearc-1 SAPRead (use grep= to pull just the finding's lines)ask the user to paste it
Mechanical fixesabap-adt abap_atc_execute_deterministic_quickfixes; for the rest, abap_atc_apply_ai_fix + abap_atc_get_ai_fix_resultarc-1 SAPDiagnose action="quickfix" → "apply_quickfix" (returns deltas, writes nothing)
Write the fix back and activateabap-adt abap_creation-create_object / abap_activate_objectsarc-1 SAPWrite + SAPActivate when write scope is enabled — syntax-check with SAPDiagnose action="syntax" first, read back after; otherwise hand the diff to the user

If neither server exposes ATC, ask the user to paste ATC results from ADT. Never invent ATC findings.

An expired session shows up as an error like Your user was logged off — that is an auth failure on that server, not a missing capability. Fall back for this run and tell the user which server needs re-authentication.

Inputs to collect

If not provided, ask which of these to target. Default to the narrowest scope.

  • A single ABAP object name
  • A package name (list its contents first with arc-1 SAPRead type=DEVC so the user can confirm the scope)
  • A transport request number
  • An existing ATC run / result ID (abap_atc_get_result with the stored worklistId)

Also ask which check variant to run against, defaulting to ABAP_CLOUD_DEVELOPMENT_DEFAULT for ABAP Cloud development scope. Confirm it exists with arc-1 SAPDiagnose action="atc_variants" rather than assuming.

Procedure

  1. Get ATC results. Run the check per the tool-routing table above — abap-adt abap_atc_run first, arc-1 SAPDiagnose action="atc" on hard failure, pasted output only when neither works. abap_atc_run returns a worklistId; the run is asynchronous, so poll abap_atc_get_result until the counts stop changing before you start grouping.
  2. Group findings by check category. Typical categories:
    • Clean Core / Cloud compatibility — unreleased API usage, direct SELECT on SAP-owned tables, language-version violations
    • Security & Authorization — missing authorization checks, unsafe SQL, hard-coded user IDs
    • Performance — SELECT *, missing indexes, table reads in loops
    • Code quality / Clean ABAP — magic numbers, method length, parameter count, CREATE OBJECT, chained declarations
    • CDS / RAP modelling — missing mandatory annotations, incorrect composition/association, missing draft setup
    • Testing — missing ABAP Unit, test classes that hit live data
  3. For each finding, in priority order (Cloud compatibility → Security → Performance → Code quality → CDS/RAP → Testing):
    • State the violation in one sentence
    • Cite the ATC check name and severity
    • Identify the root cause — name the rule from CLAUDE.md that applies
    • Show the fix as a Before/After code snippet
    • Propose the action: auto-apply, ask before applying, or manual only (see severity ladder below)
  4. Severity ladder for auto-apply decisions:
    • Auto-apply candidates — mechanical fixes that cannot change behavior: missing annotations (@AccessControl.authorizationCheck, @AbapCatalog.preserveKey), CREATE OBJECT → NEW, READ TABLE + sy-subrc → line_exists, chained DATA: declarations split. Even auto-apply candidates require batch confirmation, never silent application.
    • Ask-before-applying — fixes that touch logic shape but not semantics: EXPORTING → RETURNING (only if no caller depends on IS SUPPLIED), method extraction, magic-number → named constant.
    • Manual only — fixes that change interfaces, exceptions, or data access patterns: replacing SELECT FROM vbak with SELECT FROM I_SalesOrder (column names differ), replacing unreleased function modules, removing a missing authorization block.
  5. Never suppress with pseudo-comments unsolicited. "#EC NOTEXT, "#EC CI_USAGE_OK, and friends are not fixes. Refuse to insert them by default. If the user requests suppression, demand: (a) the specific check name, (b) a one-sentence written justification, (c) a JIRA/issue link if one exists. Emit the pseudo-comment with the justification in a comment above it.
  6. After each batch of fixes, re-run ATC on the same scope and variant — via the same server you used for the baseline, so the counts are comparable — and report the delta: violations resolved, violations remaining, new violations introduced (if any — back out the offending change).

Output format

# ATC Remediation — <SCOPE>

Variant: <check variant>
Results from: abap-adt (worklistId <id>) | arc-1 SAPDiagnose | pasted by user
Total findings: <N>

## Category breakdown
| Category                       | Total | Auto-apply | Ask | Manual |
|--------------------------------|-------|------------|-----|--------|
| Clean Core / Cloud             | N     | N          | N   | N      |
| Security & Authorization       | N     | N          | N   | N      |
| Performance                    | N     | N          | N   | N      |
| Code quality / Clean ABAP      | N     | N          | N   | N      |
| CDS / RAP modelling            | N     | N          | N   | N      |
| Testing                        | N     | N          | N   | N      |

## Findings

### Category: Clean Core / Cloud
#### F-001 — <one-line violation>
- **Object:** <name> line <N>
- **ATC check:** <check name> — severity <error|warning|info>
- **Root cause rule:** <rule-name from CLAUDE.md>
- **Before:**
` ` `abap
<offending code>
` ` `
- **After:**
` ` `abap
<fixed code>
` ` `
- **Disposition:** auto-apply | ask | manual
- **Note:** <if any — e.g. "released CDS view I_SalesOrder used in place of VBAK; field name differs from VBELN to SalesOrder">

(repeat per finding, grouped by category)

## Apply plan
- Auto-apply batch: N changes across M objects — confirm before writing.
- Ask-before-applying: N changes — I will confirm each one.
- Manual: N changes — listed above with full context for you to do by hand.

## Suppressions requested by user
<empty by default; if user explicitly requested any, listed here with justification>

Hard rules for this command

  • Follow the tool-routing table. Official abap-adt ATC first, arc-1 SAPDiagnose as fallback, pasted output last. Never invent ATC findings.
  • Name the server in the report. The reader needs to know whether the counts came from abap-adt or arc-1 to reproduce them.
  • Always group by category. A flat list of 200 findings is unactionable.
  • Always cite the ATC check name. "Fix this" is not a remediation.
  • Never apply a fix that changes semantics without asking. EXPORTING→RETURNING is borderline — confirm.
  • Refuse pseudo-comment suppression by default. Only emit with an explicit user-provided justification in a comment above the suppressed line.
  • Re-run ATC after each batch. Report the delta. If new findings appear, roll back the change that introduced them and report.
  • One object = one transaction. Do not write across many objects in a single irreversible batch.

Câu hỏi thường gặp

Kỹ năng AI Atc Remediation làm được gì?

Walk through ATC (ABAP Test Cockpit) violations methodically, grouped by category, with concrete fixes per finding. Use when the user asks to fix, remediate, address, or triage ATC findings on an ABAP object, package, or transport. Refuses pseudo-comment suppressions by default. Applies the rule set in ../CLAUDE.md (loaded on invocation). Targets modern ABAP — BTP ABAP Environment and S/4HANA on-prem in the ABAP Cloud development model.

Vì sao nên dùng Atc Remediation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Atc Remediation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Atc Remediation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/atc-remediation. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Atc Remediation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Atc Remediation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Atc Remediation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Atc Remediation có miễn phí không?

Có. Kỹ năng này được matt1as phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇