Command Palette

Search for a command to run...

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

add-object-type

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

Add a new ABAP object type with full ADK model and abapGit serialization support. USE WHEN adding a new ABAP type (PROG, FUGR, TABL, DOMA, DTEL, MSAG, etc.)…

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

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

Add a New ABAP Object Type

This skill guides adding full support for a new ABAP object type. It covers all layers: ADT endpoint (schema + contract + fixture), ADK model, and abapGit serialization handler.

Overview of All Layers

ABAP Object Type (e.g., PROG/P, FUGR/F, TABL/DT)
    ↓
adt-schemas    Schema literal + typed wrapper
adt-contracts  Contract (CRUD or simple GET) for the ADT endpoint
adt-fixtures   XML fixture for tests
    ↓
adk            ADK kind constant + object model class
    ↓
adt-plugin-abapgit   abapGit schema literal + TypeScript types + handler

Step 1: Gather Object Type Information

Before writing code, gather details about the object type from live system or research.

Tip: For undocumented object types, use $adt-reverse-engineering first to systematically discover endpoint details, XML structure, and content-types via live system discovery, open source projects, and Sourcegraph code search.

Information to collect

Item Example (for PROG) Where to find
ADT object type PROG/P SAP ADT documentation
ADT endpoint path /sap/bc/adt/programs/programs Live system or community
ADT content-type application/vnd.sap.adt.programs.programs.v2+xml Live system response headers
ADT XML namespace http://www.sap.com/adt/programs Live system XML
ADT root element abapProgram Live system XML
abapGit serializer LCL_OBJECT_PROG abapGit source
abapGit main table TRDIR abapGit source
abapGit structure fields NAME, SECU, EDTX, ... SAP DDIC / abapGit XML sample
Has source code Yes (.abap file) abapGit repo samples

Option A: Live System Available

# Capture the ADT XML response:
# GET /sap/bc/adt/{path}/{objectname}
# → save to tmp/response.xml

# Capture a real abapGit XML file:
# Check a .prog.xml file from a real abapGit repository

Option B: No Live System — Web Research

  1. ADT endpoint details:

  2. abapGit serializer and schema:

    • abapGit repository: https://github.com/abapGit/abapGit
    • Look in src/objects/ for the relevant handler class (ZCL_ABAPGIT_OBJECT_{TYPE})
    • Find .abap or .xml sample files in abapGit test fixtures
    • Search abapGit issues/PRs for the object type
  3. SAP DDIC table structure:

    • abapGit XML files reveal the exact fields used
    • SAP community/SE11 screenshots often available online

Step 2: Create the ADT Schema and Contract

Follow the full $add-endpoint skill for this step. Here is a summary specific to object types:

Rules: See xsd-best-practices for XSD validity, file-lifecycle for generated vs hand-maintained files, and adt-ddic-mapping for DDIC object specifics.

Schema (adt-schemas)

Create packages/adt-schemas/src/schemas/generated/schemas/sap/{schemaName}.ts:

/**
 * Schema for {description}
 *
 * Manually created — derived from live system response / research
 * Reference: GET /sap/bc/adt/{your-path}
 * (XSD source files for adt-schemas live in packages/adt-schemas/.xsd/)
 */

import adtcore from './adtcore';
import abapsource from './abapsource';

export default {
  $xmlns: {
    adtcore: 'http://www.sap.com/adt/core',
    abapsource: 'http://www.sap.com/adt/abapsource',
    xsd: 'http://www.w3.org/2001/XMLSchema',
    prog: 'http://www.sap.com/adt/programs', // ← your namespace
  },
  $imports: [adtcore, abapsource],
  targetNamespace: 'http://www.sap.com/adt/programs',
  attributeFormDefault: 'qualified',
  elementFormDefault: 'qualified',
  element: [
    {
      name: 'abapProgram', // ← root element name
      type: 'prog:AbapProgram',
    },
  ],
  complexType: [
    {
      name: 'AbapProgram',
      complexContent: {
        extension: {
          base: 'abapsource:AbapSourceMainObject',
          attribute: [
            {
              name: 'programType',
              type: 'xsd:string',
            },
          ],
        },
      },
    },
  ],
} as const;

Then add to `packages/adt-sche

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

Установить add-object-type в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл add-object-type?

Add a new ABAP object type with full ADK model and abapGit serialization support. USE WHEN adding a new ABAP type (PROG, FUGR, TABL, DOMA, DTEL, MSAG, etc.), ADK support, or abapGit handler. Trigger words - new object type, add object type, support PROG, add abapGit handler.

Как установить скилл add-object-type?

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

Скилл add-object-type запускает скрипты?

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

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

Сравнить add-object-type с