Command Palette

Search for a command to run...

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

adt-reverse-engineering

БесплатноБез исполняемых скриптовНе проверен

Reverse-engineer SAP ADT REST endpoints using discovery, open source projects, and Sourcegraph code search. USE WHEN the user wants to understand an unknown…

abapifyот abapify★ 20 звёзд на GitHub

Об этом скилле

ADT Reverse Engineering

This skill guides the systematic reverse engineering of SAP ADT REST endpoints. Use it when you need to understand an undocumented endpoint's behavior, request/response format, content types, or URL patterns before implementing support via $add-endpoint or $add-object-type.

When to Use This Skill

  • Before $add-endpoint — to gather endpoint details when no documentation exists
  • Before $add-object-type — to understand the full ADT surface for an object type
  • When the user asks "what endpoints exist for X?" or "how does Y work in ADT?"
  • When you need to find content-types, XML namespaces, or URL patterns for an endpoint

Skill Chain

$adt-reverse-engineering  →  Research & discover endpoint details
        ↓
$add-endpoint             →  Create schema + contract + fixture
        ↓
$add-object-type          →  Full ADK model + abapGit handler (if applicable)

Overview of Research Sources

Priority Source Best For Tool
1 Live SAP system (discovery) Definitive URL paths, content-types, XML structure adt discovery CLI
2 This repo (abapify/adt-cli) Existing patterns, schemas, contracts Local grep/read
3 Open source projects Implementation patterns, undocumented behaviors Sourcegraph src CLI
4 SAP documentation Official API specs (often incomplete) Web search
5 Eclipse ADT network capture Full HTTP request/response details Web search / community

Step 1: Start with Discovery (Live System)

The ADT discovery endpoint is the authoritative source for available services.

1a: Fetch the discovery document

# Using adt-cli (preferred)
npx adt discovery -o tmp/discovery.json
npx adt discovery -o tmp/discovery.xml

# Filter to a specific area
npx adt discovery --filter "CDS"
npx adt discovery --filter "programs"
npx adt discovery --filter "objects"

1b: Understand the discovery structure

The discovery document is an AtomPub service document:

service
  └── workspace[]
        ├── title          → Service area name (e.g., "Object Inspector")
        └── collection[]
              ├── title    → Collection name (e.g., "Classes")
              ├── href     → Base URL path (e.g., "/sap/bc/adt/oo/classes")
              ├── category → Object type terms (e.g., "CLAS/OC")
              └── templateLinks
                    └── templateLink[]
                          ├── template  → URL template with {placeholders}
                          ├── rel       → Link relation type
                          └── type      → Content-Type for the response

1c: Key things to extract from discovery

For each endpoint you're researching, extract:

Field Where to Find Example
Base URL collection.href /sap/bc/adt/oo/classes
Content-Type templateLink.type or collection.accept application/vnd.sap.adt.oo.classes.v4+xml
URL template templateLink.template /sap/bc/adt/oo/classes/{objectName}
Object type category.term CLAS/OC
Link relations templateLink.rel http://www.sap.com/adt/relations/source

1d: Make actual requests to the endpoint

# Fetch a specific object and save response
npx adt get ZCL_MY_CLASS -o tmp/class.xml

# Or use curl directly for raw HTTP inspection
curl -u "$SAP_USER:$SAP_PASSWORD" \
  "https://$SAP_HOST/sap/bc/adt/oo/classes/zcl_my_class" \
  -H "Accept: application/vnd.sap.adt.oo.classes.v4+xml" \
  -v 2>tmp/headers.txt >tmp/response.xml

Save ALL raw responses to tmp/ (see tmp-folder-testing) — they become fixtures later.


Step 2: Search Open Source Projects

When no live system is available, or to understand implementation patterns and edge cases, search these open source projects that implement SAP ADT clients.

Reference Projects

Project Language Strength Repository
**vscode_abap_re
Полный SKILL.md на GitHub

Установить adt-reverse-engineering в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл adt-reverse-engineering?

Reverse-engineer SAP ADT REST endpoints using discovery, open source projects, and Sourcegraph code search. USE WHEN the user wants to understand an unknown ADT endpoint, figure out request/response formats, find content-types, discover URL patterns, or research how other tools integrate with SAP ADT. Trigger words - reverse engineer, discover endpoint, what does this endpoint return, ADT API research, find ADT endpoint, how does SAP ADT work, sniff endpoint, endpoint investigation.

Как установить скилл adt-reverse-engineering?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл adt-reverse-engineering запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить adt-reverse-engineering с