Логотип Smartform Preview

Smartform Preview

Спільнота
babamba2
smartform-preview

Draw the expected print of a SmartForm as a JPG (plus the HTML it is drawn from) — windows at their real mm positions, SmartStyle fonts, template / table grids with borders and shading, SE78 graphics such as logos and signatures, loops with sample rows — with invented sample values in place of the &fields&, sized to the real field types. Reports the cells and windows whose content gets cut off.

Add to TypingMind

Огляд

Видавецьbabamba2
Репозиторійsuperclaude-for-sap
Назва навичкиsmartform-preview
Зірки
69
Форки
26
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: babamba2. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Smartform Preview у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/babamba2/superclaude-for-sap/tree/main/skills/smartform-preview
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте 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/smartform-preview .claude/skills/smartform-preview
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Smartform Preview в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Smartform Preview, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Smartform Preview не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

SC4SAP SmartForm → Print Preview

Reads one SmartForm from the connected system and draws what a printed page will look like, without running the print program: one JPG and one HTML page (A4 in mm). Field symbols (&HEADER-NAME1&) are filled with invented sample values that fit the field types read from the DDIC, so the picture shows realistic widths — and the places where the form cuts text off.

<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. This skill dispatches no agents (Dispatched: none).</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>

<Team_Mode>No teamMode integration. Reading and drawing are scripted; the main thread writes the sample values.</Team_Mode>

<Use_When>

  • "SmartForm preview", "what does this form print", "expected output of ZXX_FORM", "스마트폼 미리보기", "출력물 예상 이미지", "スマートフォームのプレビュー"
  • A spec or test case needs a picture of the form output
  • Before / after a layout change of a form </Use_When>

<Do_Not_Use_When>

  • The user wants to change the form — this skill is read-only; SmartForm editing is not supported
  • SAPscript forms (SE71) or Adobe forms (SFP) — only SmartForms
  • The user wants the output with real document data — refuse (see Data_Rules) and offer invented values </Do_Not_Use_When>

<Decisions_Fixed>

TopicDecision
SourceMCP GetSmartFormContent (active version, logon language) → <form>.content.json in the MCP output directory
ValuesInvented by the main thread from the field types (GetStructure / GetDataElement / GetTable), never read from documents
Loops / tables3 sample rows unless the user asks for more; a row count that overflows MAIN shows where the page would break
PagesFirst page; firstPage / lastPage windows all shown (one-page document)
Cut-off textDrawn cut off, as SAP prints it (cell clips, no wrap); listed in the report
Borders / shadingAs stored in the form — gaps in borders are real
Output<artifact-base>/smartforms/<FORM>/<FORM>-preview.{jpg,html} + values.json (artifact base per ../../common/multi-profile-artifact-resolution.md)
</Decisions_Fixed>

Step 1 — Target. Form name from ARGUMENTS; if missing ask once. Uppercase it.

Step 2 — Read the form. GetSmartFormContent(form_name, summary: true) — the summary lists windows, data declarations, symbols, graphics, styles and files.content (the full result on disk). Read only the summary; never load the content file into the conversation.

  • graphics[].error or dynamicReferences (keys set at print time) → the drawing shows a box there; say so in the result.
  • If <out>/values.json exists from an earlier run, offer to reuse it (Recommended) or write new values.

Step 3 — Where each symbol prints.

node scripts/smartform/build-preview.mjs symbols "<content>"

→ per symbol: its declaration (HEADER → type ZXX_S_HEAD), every place it prints (window, paragraph, font pt, cell width mm, in a loop or not).

Step 4 — Field types. For every declaration type behind a symbol: GetStructure (structures, table lines), GetDataElement (single fields such as CHAR100, STCEG); GetTable when the type is a table. Parallel calls. Keep per field: data type, length, decimals, description.

Step 5 — Sample values → write <out>/values.json with the Write tool:

json
{ "form": "ZXX_FORM", "defaultParagraph": "AA", "rows": 3,
  "values": { "HEADER-NAME1": "Northwind Trading Co., Ltd.",
              "GS_ITEM-MATNR": ["100234", "100235", "100512"] } }
  • Write values as printed: dates and numbers in the user's format (country file / config.json → country; KR / US style 1,250.000, DE style 1.250,000), currency amounts with their decimals, units as their external code.
  • Numbers (CURR / QUAN / DEC / INT / P) print right-justified in their output length — pad with leading blanks (QUAN 13,3 → 17 characters: " 12.500") unless the symbol has a length or (C) option. Signed fields (CURR, signed DEC) end with the sign position: a blank when positive (" 1,234.56 "), - when negative. In a narrow cell the blanks wrap the number onto a second line that a fixed-height row cuts off — SAP prints the cell empty, and so must the preview.
  • A variable the form's code sets differently in one place (a footer total in a loop's last event) takes a value for that text node only: "L_WRBTR@%TEXT59": "99,999.96" wins over "L_WRBTR": [...].
  • A dynamic text node (text type D, REF_NAME &GV_TEXT&) prints a text table: give its lines, "GV_TEXT": ["First line", {"TDFORMAT": "", "TDLINE": "continued"}] (a string = a * line; a blank TDFORMAT continues the paragraph). One text per loop row = an array of such arrays.
  • Realistic lengths: names and texts typically 50–90 % of the field length; keys at their usual length (4500001234, 0010004567). A symbol inside a loop or table gets an array, one value per row; totals add up.
  • Values hang together: same buyer in buyer and ship-to when the form implies it, item amounts = quantity × price, a total that matches.
  • defaultParagraph: the paragraph for lines formatted * (the style's standard paragraph is not in the content). Take the paragraph of the neighbouring label of the same kind (e.g. the title cell next to it); say which one in the result. Keep the choice in values.json for later runs.
  • System symbols (SFSY-PAGE, SFSY-FORMPAGES) default to 1; set them only for a different picture.

Step 6 — Build.

node scripts/smartform/build-preview.mjs build "<content>" --values "<out>/values.json" --out-dir "<out>" [--rows N] [--mark]

--mark tints the sample values yellow (for review); unfilled symbols always show as blue &NAME& placeholders. The JSON report lists filled, unfilled, overflow (cells / windows whose content does not fit), approximations and the defaultParagraph used.

Step 7 — Check and show. Read the JPG and look at it before answering: overlapping windows, empty windows, missing graphics, symbols left blue. Fix values.json and rebuild for value problems; report layout findings — never "fix" the form's layout in the drawing.

<Data_Rules> Only the form definition, styles, graphics and DDIC metadata are read. Sample values are invented — never business data, never real customer, vendor or company names, never real tax numbers or addresses of real parties. Do not call GetTableContents / GetSqlQuery to fill the form; a request for "the real output of document X" is refused: say the preview uses invented values and the real output comes from the print program (e.g. the output type's processing program or SMARTFORMS test). </Data_Rules>

<Output_Format>

SmartForm preview: ZXX_FORM  (page %PAGE1, A4 portrait)
Windows: 7 · Graphics: 2 (logo, signature) · Symbols: 30 filled, 0 left blank · Sample rows: 3
Cut off as printed (4): "Purchase Order No." (%TEXT24), "(Unit)" (%TEXT45, %TEXT50), …
Window overflow: %WINDOW4 — graphic 27.2 mm in a 25 mm window
Standard paragraph: AA assumed for '*' lines
JPG:  .sc4sap/work/DEV/smartforms/ZXX_FORM/ZXX_FORM-preview.jpg
HTML: .sc4sap/work/DEV/smartforms/ZXX_FORM/ZXX_FORM-preview.html
Values: .sc4sap/work/DEV/smartforms/ZXX_FORM/values.json

Next: "10 rows", "other values", "mark the sample values", "show the second page"

Reply in the user's language; show the JPG to the user when the client can display images. </Output_Format>

<MCP_Tools_Used>

  • GetSmartFormContent (summary: true)
  • GetStructure, GetDataElement, GetTable, GetDomain (field types only) </MCP_Tools_Used>

<Related_Skills>

  • /sc4sap:program-to-spec — the print program's specification (attach the preview as expected output)
  • /sc4sap:program-to-manual — user manual of the print program </Related_Skills>

Task: $ARGUMENTS

Поширені запитання

Що робить навичка ШІ Smartform Preview?

Draw the expected print of a SmartForm as a JPG (plus the HTML it is drawn from) — windows at their real mm positions, SmartStyle fonts, template / table grids with borders and shading, SE78 graphics such as logos and signatures, loops with sample rows — with invented sample values in place of the &fields&, sized to the real field types. Reports the cells and windows whose content gets cut off.

Навіщо використовувати Smartform Preview у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Smartform Preview — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Smartform Preview у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/babamba2/superclaude-for-sap/tree/main/skills/smartform-preview. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Smartform Preview?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Smartform Preview?

Зі скількома забажаєте. У TypingMind ви можете використовувати Smartform Preview із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Smartform Preview?

Так. На GitHub цю навичку публікує babamba2 за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип affaan-m

Architecture Decision Records

affaan-m
СпільнотаПопулярне

Під час сеансів програмування фіксує архітектурні рішення у структурованих ADR, автоматично виявляючи моменти ухвалення рішень і записуючи контекст, розглянуті альтернативи та обґрунтування. Веде журнал ADR, щоб майбутні розробники розуміли, як формувалася кодова база.

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Automation Audit Ops

affaan-m
СпільнотаПопулярне

Робочий процес для доказового обліку автоматизації ECC та аудиту дублювання. Використовуйте, коли потрібно з’ясувати, які завдання, хуки, конектори, MCP-сервери або обгортки працюють, зламані, дублюються чи відсутні, перш ніж щось виправляти.

39.1K
261.1K
Інструкції
Відкрити
Логотип NousResearch

Grok

NousResearch
ОрганізаціяПопулярне

Доручайте програмування через xAI Grok Build CLI (функції, PR).

53.5K
250.4K
Інструкції
Відкрити
Логотип NousResearch

Setup Wizard Generator

NousResearch
ОрганізаціяПопулярне

Створюйте майстер bash, який покроково проводить людину через налаштування вручну.

53.5K
250.4K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇