Interface Mapping Spec 标志

Interface Mapping Spec

社区
babamba2
interface-mapping-spec

Write an interface mapping specification as one editable HTML page in the classic template layout — cover, revision history, header, Source → Target field grid with conversion rules and MAPPING, optional synchronous response block, extraction condition, field guide. SAP side read from DDIC (table, structure, view, function module) or, for new interfaces, from a field list or the module consultant's proposal; non-SAP side proposed; in-page checks; versioned; English companion.

概览

发布者babamba2
代码仓库superclaude-for-sap
技能名称interface-mapping-spec
星标数
69
复刻数
26
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 babamba2 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Interface Mapping Spec AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/babamba2/superclaude-for-sap/tree/main/skills/interface-mapping-spec
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/babamba2/superclaude-for-sap.git /tmp/superclaude-for-sap
mkdir -p .claude/skills
cp -r /tmp/superclaude-for-sap/skills/interface-mapping-spec .claude/skills/interface-mapping-spec
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Interface Mapping Spec,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Interface Mapping Spec。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Interface Mapping Spec 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

SC4SAP Interface Mapping Specification

Interviews the consultant briefly and writes one editable HTML page per interface: cover, revision history, the mapping sheet (header, systems, Source → Target grid with R / MAPPING columns, response block for synchronous interfaces, conversion rules, extraction condition, remarks) and the field guide. The SAP side comes from the system; the other side is proposed and corrected in the page.

<Response_Prefix>Every response triggered by this skill MUST begin with [Model: <main-model> · Dispatched: <sub-summary>] per ../../common/model-routing-rule.md § Response Prefix Convention.</Response_Prefix> <Target_Object>The target object is looked up on the active profile's system only. Not found → stop and ask per ../../common/multi-profile-artifact-resolution.md § Target object not on the active system — never substitute a similar name, never switch profiles on your own.</Target_Object>

<Phase_Banner>Before each Agent(...) dispatch, emit ▶ phase=<id> (<label>) · agent=<name> · model=<Opus|Sonnet|Haiku> per ../../common/model-routing-rule.md § Phase Banner Convention. Resolve the dispatch mode first per ../../common/model-dispatch-mode.md.</Phase_Banner>

<Team_Mode>No teamMode integration. Reading SAP, proposing and building are scripted; agents only propose fields (optional) and translate.</Team_Mode>

<Use_When>

  • "인터페이스 매핑 정의서", "매핑 스펙", "interface mapping spec", "I/F 정의서", "EAI 매핑", "field mapping for interface "
  • A new interface must be specified before development (the usual case)
  • An existing RFC / proxy structure / Z table needs its mapping written down
  • An edited page comes back (import), or the SAP structure changed (refresh) </Use_When>

<Do_Not_Use_When>

  • Specification of a program → /sc4sap:program-to-spec
  • Creating the Z structure / RFC itself → /sc4sap:create-object (this skill hands it the field list, Step 8)
  • An interface catalogue across many interfaces — one interface per document </Do_Not_Use_When>

<Decisions_Fixed> Settled with the user when the skill was designed — do not ask again:

TopicDecision
OutputEditable HTML only (no .xlsx); one interface per document; one page with an optional response block (B01…) for synchronous interfaces
SAP sideRead from SAP (DDIC table / DB view / structure — a proxy by its structure —, CDS by SQL view name, function module signature). New interfaces: a TABLE-FIELD / data-element list, the module consultant's proposal (checked against DDIC), Excel paste in the page, or an empty grid
CarriersThe grid is split by ▸ group rows — the unit the fields travel in, per side: name, kind (PARAMETER / STRUCTURE / TABLE), occurrence (0:1 … 1:N). A row's Table column holds only the source DDIC table. The system block's Structure / occurrence is the read-only summary of the groups. FM: scalar parameters of one direction share one PARAMETER group; each structure / table parameter is its own group
ColoursSource side blue, target side green — header, system block and grid cells
SAP typesShown as DB types of the code list (NUMC → NUMBER, DATS → DATE …); the DDIC type is the cell tooltip
Other sideProposed (same names, DB types, MAPPING 1:1), marked "Proposal" until edited or confirmed
Conversion rulesProposed from the SAP types (date, time, leading zeros / ALPHA, currency, quantity / unit) and linked in the R column
ChecksEmpty required (*) items, MAPPING to a missing row, unknown R id, size truncation, type-family mismatch, unmapped target field, key mismatch — all in the page's Checks panel
Versionsv0.1 → +0.1 per saved / imported edit, per refresh with changes; the revision-history table fills itself (author, change, optional approver)
LanguagePage language from .sc4sap/config.json (language, else ko); English companion always built unless the user opts out
Settings<base>/interfaces/project.json: cover (project name, title, document-number pattern IF-MAP-{ifId}, copyright), idPattern for IF ID numbering, code-list overrides (codes)
File namePage: <IF_ID>_<OBJECT>_<interface name>-v<ver>-<lang>.html (SAP object of the SAP side, else the object typed in the system block; empty parts left out). The model json stays <IF_ID>-v<ver>-<lang>.json
Location<base>/interfaces/<IF_ID>/ — <base> per ../../common/multi-profile-artifact-resolution.md (.sc4sap/work/<alias>/ with an active profile)
Template contentGeneric: never put customer, vendor or people names into the skill or into public docs; real names belong only in the user's project.json and documents
</Decisions_Fixed>

Entry check. If the user hands back an edited page → Step 6. "Refresh / SAP changed" → Step 7. "Z structure / create the RFC" → Step 8. Otherwise a new document: Steps 1–5.

Step 1 — Preflight and project settings. Confirm the active profile in one line. If <base>/interfaces/project.json is missing, ask once (MUST read interview.md § Project) and Write it.

Step 2 — Interview. MUST read interview.md § Interface. One AskUserQuestion round (scenario preset, where the SAP fields come from, IF ID), then one short free-text ask for name, summary, systems and the SAP object or field list. Unanswered items stay empty — the page highlights them; do not chase every field in chat.

Step 3 — Field proposal (only when the user chose "describe the business"). Dispatch the module consultant with dispatch-prompts.md § 1. Show the returned TABLE-FIELD list with one reason each and ask the user to confirm or trim it in one message; the confirmed list becomes fields.

Step 4 — Build v0.1. Write the answers to <base>/interfaces/_answers/<IF_ID>.json (shape in interview.md § Answers), then <B> init --answers <file>. Report problems (fields SAP does not have, unreadable parameter types — for those offer --line PARAM=STRUCTURE and refresh).

Step 4a — Korean polish (page language ko). Per common/humanize-korean.md, <dir> = <base>/interfaces/<IF_ID>/_humanize: texts = node scripts/lib/humanize.mjs texts-json <base>/interfaces/<IF_ID>/<IF_ID>-v<ver>-ko.json --skip desc,ddic,dom --out <dir>/texts.json (latest version; desc / ddic are SAP's DDIC texts), apply = node scripts/lib/humanize.mjs apply-json <dir>/texts.json <dir>/humanized.json (or fixed.json), then <B> build --if <IF_ID>. Runs again after an import or refresh that adds prose.

Step 5 — English companion. Skip when the page language is en or the user opted out. <B> texts --if <ID> --to en → when todo > 0, dispatch sc4sap:sap-writer with dispatch-prompts.md § 2 to write outFile; then <B> companion --if <ID> --to en. missing must be empty.

Step 6 — Import an edited page. <B> import <file> → new version with the reader's revision row; hand-typed SAP fields (EKPO-MATNR, data elements) are filled from DDIC at the same time (resolved, problems). Refusals: version already imported; the page was edited from an older version (--force only when the user says to overwrite); an English companion page (edits go into the primary-language page, the companion is rebuilt from it); a page whose ID / version / language was changed outside edit mode. Then Step 5 again.

Step 7 — Refresh from SAP. <B> refresh --if <ID> [--line PARAM=STRUCTURE] → unchanged: true, or a new version with added / changed / removed fields marked in the grid and a revision row. Only SAP facts (type, length, DDIC type) are updated; key, null and descriptions the user wrote stay. --line values are remembered for later refreshes. Then Step 5 again.

Step 8 — Hand-off to create-object (on request, or offered once the user says the mapping is agreed). <B> fields --if <ID> lists the SAP-side fields with data elements; offer /sc4sap:create-object for a Z structure (proxy / RFC) built from that list. Never create SAP objects from this skill.

Close. Report in the user's language: page path(s), version, findings (errors / warnings / to confirm) with the first few error texts, problems, and the next steps: open the page → Edit → Save → hand the file back for import.

<MCP_Tools_Used> Through the scripts only: GetTable, GetStructure, GetView, GetDataElement, GetTypeInfo, SearchObject, GetFunctionModule — DDIC metadata and source, never table contents. </MCP_Tools_Used>

Task: $ARGUMENTS

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Interface Mapping Spec AI 技能有什么作用?

Write an interface mapping specification as one editable HTML page in the classic template layout — cover, revision history, header, Source → Target field grid with conversion rules and MAPPING, optional synchronous response block, extraction condition, field guide. SAP side read from DDIC (table, structure, view, function module) or, for new interfaces, from a field list or the module consultant's proposal; non-SAP side proposed; in-page checks; versioned; English companion.

为什么在 TypingMind 中使用 Interface Mapping Spec?

因为您只需安装一次,就能搭配任何模型使用。Interface Mapping Spec 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Interface Mapping Spec?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/babamba2/superclaude-for-sap/tree/main/skills/interface-mapping-spec。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Interface Mapping Spec?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Interface Mapping Spec 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Interface Mapping Spec 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Interface Mapping Spec AI 技能免费吗?

是的。babamba2 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇