Logo Config To Document

Config To Document

Cộng đồng
babamba2
config-to-document

Document one module's configuration as it is in the connected SAP system — one HTML file that follows the module's IMG tree, shows every IMG activity with its real table values drawn on an SM30-style screen, marks the rows customer transports changed (with the transport history), runs configuration checks and adds SAP's own IMG documentation. MM first; other modules through the same pipeline.

Add to TypingMind

Tổng quan

Nhà phát hànhbabamba2
Kho mãsuperclaude-for-sap
Tên kỹ năngconfig-to-document
Sao
69
Bản fork
26
Tệp đi kèm
1
Giấy phépMIT
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ộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được babamba2 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 Config To Document 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/babamba2/superclaude-for-sap/tree/main/skills/config-to-document
  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/babamba2/superclaude-for-sap.git /tmp/superclaude-for-sap
mkdir -p .claude/skills
cp -r /tmp/superclaude-for-sap/skills/config-to-document .claude/skills/config-to-document
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 Config To Document 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 Config To Document 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 Config To Document 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.

SC4SAP Configuration → Document

Reads the module's IMG structure and configuration tables from the live system and writes one HTML file: an IMG tree with search and status filters on the left, one page per IMG activity (screen drawing with the real values, the full value table, customer changes, checks, SAP documentation) and a checklist panel on the right.

<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> <Cost_Mode>Resolve the cost mode per ../../common/cost-mode.md (standard default; eco → Skill("sc4sap:eco", "--attach") first and on every continuation turn, plus this skill's eco recipe in § lever C).</Cost_Mode>

<Team_Mode>No teamMode integration. Extraction and drawing are scripted; agents only write and review the consultant notes (Step 4).</Team_Mode>

<Use_When>

  • "설정 문서", "컨피그 리스트", "configuration list", "IMG 설정 정리", "SPRO 설정 문서화", "설정 점검", "config audit", "how is MM configured in this system"
  • Go-live / handover / audit: the configuration must be written down as it is
  • Before a rollout or a system copy: what did the project change in the IMG </Use_When>

<Do_Not_Use_When>

  • One program's behaviour → /sc4sap:program-to-spec or /sc4sap:program-to-manual
  • A question about one setting → /sc4sap:ask-consultant (answers in chat)
  • Business-process documentation of a module's custom development → /sc4sap:module-to-process </Do_Not_Use_When>

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

  • Real values, as they are. The document shows the table values exactly as read (organisation names included). It is an internal document; say so once in the closing message.
  • Read-only. Only customizing / system tables (delivery class C, G, E, S, W), DDIC metadata and the transport key tables are read — on ECC through ZMCP_ADT_DISPATCH TABLE_READ, which refuses everything else. The MCP blocklist still applies; a refused table shows as "Not readable" in the document, never as a failure.
  • Customer change = customer transport. A row counts as customer-changed when a non-SAP transport (E071K, TRKORR NOT LIKE 'SAP%') recorded its key, in any client.
  • Language. Texts (IMG titles, field labels, value texts) in the document language when the system has them, else English. SAP documentation is mostly English.
  • One file. HTML with data and drawings embedded; works offline; prints. </Decisions_Fixed>

Step 1 — Module and preflight. Take the module from the arguments; if missing, ask with AskUserQuestion (MM first, recommended). Confirm the active profile (.sc4sap/active-profile.txt) in one line.

Step 2 — Areas. Run

node scripts/config/extract-config.mjs --module <M> --list-areas

Show the areas (document language + English) and ask with one AskUserQuestion (multiSelect: true, first option "All areas (Recommended)"). A full MM run reads about 1,300 tables (15–25 minutes on ECC); say so when the user picks all.

If the command fails with TABLE_READ: table … is not allowed on an IMG table (TNODEIMG, CUS_IMGACH), the system's ZMCP_ADT_DISPATCH predates the customizing allow rule: stop and tell the user to update it from abap/zmcp_adt_dispatch_ecc.abap (setup Step 9) — never work around the dispatcher.

Step 3 — Extract. Run in the background (run_in_background: true):

node scripts/config/extract-config.mjs --module <M> [--areas "<Area 1>,<Area 2>"] [--lang <lang>]

It prints progress (tables n/N) on stderr and one JSON line at the end: { ok, file, counts }. An interrupted run resumes from its read cache; --fresh starts over (use it when the user asks for a refresh of an earlier document). Report the counts when it finishes. The run also reads the SAP F1 documentation of every column's data element (fieldDocs); a snapshot extracted before that feature gets it with --field-docs (only those reads, the snapshot is kept). A table with more rows than --max-rows (1000) — per-plant tables on a system with many plants — is read again up to the 5000-row read cap and split by its key fields, text tables in the document language and English only; --no-full keeps the old limit.

Step 4 — Consultant notes and reference material (written, then reviewed). Per IMG activity the notes card (purpose, effect of this system's values, cautions, references) and the reference panel (SAP documentation summarised in the document language, 2–3 setup cases with flow diagrams and which one this system follows, comparison table, decision checklist, decision criteria, official SAP sources — Help Portal, Notes / KBAs, Learning — opened and cited) are written by the module consultant agent and reviewed by sap-critic; never by the main thread. In cost mode standard the notes-writer dispatch passes effort: "medium" (writer and revision); in eco it runs with the consultant and critic on Sonnet · low (common/cost-mode.md lever A). Prompts: notes-prompts.md — use them verbatim with the placeholders filled. 0. Terms first. node scripts/config/notes.mjs terms --module <M> → terms/_in/tNNN.json (names SAP has no document-language text for: IMG folders, activity titles, field labels; 150 per batch; translated terms are reused by later runs). Per batch: writer then reviewer, prompt § 4. Skip when it reports 0 terms.

  1. Scope — ask on every run. node scripts/config/notes.mjs scopes --module <M> prints activities and batches per scope (activities with reviewed notes from earlier runs are left out). Ask with one AskUserQuestion, each option labelled with its numbers from that output and the cost (one batch ≈ 12 activities, a writer, a reviewer and usually a revision run with web research — measured on MM: about 750k tokens and 40 minutes per batch):
    • custom — activities customer transports changed (Recommended)
    • values — also standard and empty ones (every activity with a table)
    • all — every activity, including transaction-only ones
    • none — no notes this run; the document is built without new notes Then node scripts/config/notes.mjs batches --module <M> --scope <scope> --size 12 → notes/_in/bNNN.json (numbered after existing batches; --redo rewrites reviewed activities too, only when the user asks).
  2. Write — per batch, Agent(subagent_type: "sc4sap:sap-<m>-consultant") with prompt § 1 (saves --kind draft). Batches run in parallel, at most 4 at a time.
  3. Review — per batch, prompt § 2: (a) notes-lint.mjs on the main thread (sources, transactions, counts, check findings — no tokens), (b) sc4sap:sap-critic judges SAP meaning with the lint facts in hand and opens only sources the lint marks new / changed (saves --kind review, prints the fix list). Saving a review adds the sources of every ok activity to the verified-source cache, which later batches receive as knownSources; notes.mjs sources --module <M> seeds that cache from batches reviewed before it existed.
  4. Revise — for a batch with fix items, the writer agent again with prompt § 3 (saves --kind revised). One round; findings still open after it stay visible in the document ("Review findings open").
  5. node scripts/config/notes.mjs status --module <M> must show draft + review for every batch of this run before Step 5 (skip this step with scope none). 5a. Korean polish (document language ko). Per common/humanize-korean.md, <dir> = notes/_humanize: texts = node scripts/lib/humanize.mjs texts-json <the newest note file of each batch of this run: notes/bNNN.revised.json, else bNNN.draft.json> --skip refs,sources --out <dir>/texts.json, apply = node scripts/lib/humanize.mjs apply-json <dir>/texts.json <dir>/humanized.json (or fixed.json). Only the consultant's notes — never review files, SAP texts or SAP documentation quoted as is. Before the knowledge base, so it keeps the polished text.
  6. Knowledge base. node scripts/config/notes.mjs kb --module <M> copies the general part of every reviewed note (purpose, SAP documentation summary, cases without the verdicts, comparison, checklist, criteria, official sources) to ~/.sc4sap/kb/config/<M>/<lang>/. Later runs — this system again or any other system — mark those activities "mode": "system" in their batches: the writer adds only impact, cautions and one verdict per case, with no web research, and the reviewer checks only that part. On MM this cuts a batch to a fraction of the first-run cost.
  7. Column meanings. node scripts/config/fields.mjs batches --module <M> → fields/_in/fNNN.json (100 data elements per batch: label, domain values, F1 text, where used, samples) for every column that shows values and has no meaning in ~/.sc4sap/kb/fields/<lang>.json yet. Per batch the module consultant writes one business meaning per data element and sap-critic saves corrections only (prompt § 5, no web research; measured on SD: 24 batches, about 2 corrections per 100). fields.mjs status must show draft + review for every batch, then fields.mjs kb --module <M> adds them to the knowledge base, shared by every module — a later module writes only the data elements it does not share. Independent of the notes scope; skip it only when the user declines.
  8. BAdI implementations. The extraction reads every customer implementing class of the module's BAdIs (GetClass, then the Z includes it branches into, two levels deep): per method code or empty, size and the objects it calls. node scripts/config/badi-notes.mjs batch --module <M> → badi/_in.json; the module consultant writes a summary and one line per method with code, sap-critic checks them against the source (reading called Z function modules), the writer revises once (prompt § 6). System-specific: nothing goes to the knowledge base.
  9. Value meanings. node scripts/config/values.mjs batches --module <M> → values/_in/vNNN.json (40 domains per batch) for every domain with two or more fixed values behind a shown column (flag domains X / blank skipped) that is not yet in ~/.sc4sap/kb/values/<lang>.json or queued by another module: per value the document-language and English SAP text and the rows using it, plus F1 and where used. Per batch the module consultant writes one line per value, sap-critic saves corrections only (prompt § 7). Document-language texts are often wrong (literal, swapped, untranslated, typos) — the meaning calls that out. values.mjs status, then values.mjs kb --module <M>; the ⓘ value list shows them in a "Meaning" column. Needs a snapshot with English domain texts (domainsEn, extract again if missing).

Step 5 — Build.

node scripts/config/build-config-doc.mjs --module <M> [--lang <lang>] [--import <edited.html>]

Output: <artifactBase>/config-docs/<M>/<M>-config-v<n>-<lang>.html (status counts, checks with findings and edited notes in the JSON line). When the user hands back a page saved from edit mode, build with --import <file>: its edits merge into notes/edits.json (per activity or view the newer edit wins; a page from another system or module is refused) and every later build keeps them — edited views replace their values, card title and history and are drawn again. Edits never enter the knowledge base.

Step 6 — Close. Report in the user's language:

  • the file path, IMG activities by status (customized / standard / not set / no values / not readable),
  • the check findings by severity, error ones by title,
  • tables that could not be read, and why (blocklist, dispatcher),
  • one line: the document holds the system's real configuration values — share it internally only.

Do not paste table contents into chat.

<Document_Contents> Per IMG activity: IMG path, title (document language + English), status badge, T-codes, consultant notes with their review state, objects (view / view cluster / table), row and customer-row counts; for each view an SM30 overview drawn with the first rows (customer rows first) and, for wide views, a detail screen of one row; the full value table (an ⓘ on each column header and a folded "column meanings" list above the table: business meaning and SAP F1 text per column; key columns bold, fixed-value texts next to codes, customer rows highlighted with their transports, filter and "customer rows only"); the customer transports that touched the table (date, request, user, description); checks for the activity; SAP's IMG documentation. Overview: counts by status, areas with status bars, recent customer transports. Right panel: all check findings, click to jump.

Edit mode ("Edit" in the top bar, nothing installed): the consultant notes and the reference panel become editable plain text — add or delete list items, add notes to an activity without them, delete a source — and so do the views: card title, value-table cells (rows added or deleted) and the change-history rows. Edited notes and views carry an "Edited · author · date" badge, so readers see where the page differs from the system; an edited view's SM30 drawing is drawn again from the edited rows at the next --import build. Any drawing (overview or detail) can be replaced by a real screenshot — "Use screenshot", or click the drawing and Ctrl+V; "Original screen" brings the drawing back; captures wider than 1800 px are scaled down. Undo (Ctrl+Z / button), autosave to the browser with "continue editing" on reopen. "Save" asks for author and change note and downloads the page with every edit embedded (<script id="config-edits">) — the file to hand back for --import. </Document_Contents>

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

Kỹ năng AI Config To Document làm được gì?

Document one module's configuration as it is in the connected SAP system — one HTML file that follows the module's IMG tree, shows every IMG activity with its real table values drawn on an SM30-style screen, marks the rows customer transports changed (with the transport history), runs configuration checks and adds SAP's own IMG documentation. MM first; other modules through the same pipeline.

Vì sao nên dùng Config To Document 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. Config To Document 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 Config To Document trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/babamba2/superclaude-for-sap/tree/main/skills/config-to-document. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà 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 Config To Document?

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 Config To Document 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 Config To Document 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 Config To Document có miễn phí không?

Có. Kỹ năng này được babamba2 phát hành trên GitHub theo giấy phép MIT. 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 👇