sc4sap:program-to-spec

sc4sap:program-to-spec is a skill for Claude Code from babamba2/superclaude-for-sap. It costs 44 tokens per session (3,394 once invoked), scanned A, original, MIT.

A reverse-engineering workflow that turns an existing ABAP program or related SAP development object into a functional or technical specification. ABAP is SAP's programming language.

In plain words
What is it for?
Use it to document an ABAP report, class, function group, CDS object, or RAP business object in Markdown or Excel.
Why use it?
It examines the object's structure, meaning, and usage, then narrows the scope so the specification covers only what you need.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the AskUserQuestion tool.

Part of the sc4sap plugin — 14 skills, 26 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it to document an ABAP report, class, function group, CDS object, or RAP business object in Markdown or Excel.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/babamba2/superclaude-for-sap/program-to-spec
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add babamba2/superclaude-for-sap --skill program-to-spec
Clone the repo
git clone --depth 1 https://github.com/babamba2/superclaude-for-sap

Made for: Claude Code.

Or install sc4sap, the plugin that ships this one along with the rest of its 14 skills, 26 agents, 11 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sc4sap:program-to-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/babamba2/superclaude-for-sap/program-to-spec.svg)](https://agentmods.dev/skills/babamba2/superclaude-for-sap/program-to-spec)
Your own site
<a href="https://agentmods.dev/skills/babamba2/superclaude-for-sap/program-to-spec"><img src="https://agentmods.dev/badge/skills/babamba2/superclaude-for-sap/program-to-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 5
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.03394
Opus 5 $0.00022 $0.01697
Sonnet 5 $0.00009 $0.00679
Haiku 4.5 $0.00004 $0.00339

Measured 8d ago against content hash 2fc1f978795a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

sc4sap:program-to-spec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/program-to-spec/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SC4SAP Program → Specification

Reads an existing ABAP program (Report / Module Pool / FM Group / Class / CDS / RAP) via MCP, runs structural + semantic + where-used analysis, then produces a Specification artifact in Markdown (.md) or Excel (.xlsx) format. Scope is negotiated Socratically — start wide, narrow on each turn, stop when the user's target granularity is confirmed.

<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>

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

<Team_Mode>No teamMode integration. program-to-spec targets a single object (one program / class / FM group / CDS / RAP BO) and performs read-only structural extraction — no cross-module synthesis, no authoring conflict, no incident triage. See ../../docs/team-consultation-architecture.md § 6 gating logic. Future extension: if a target's GetWhereUsed graph spans ≥ 2 modules AND user picks L4 depth, Type A (module consultants annotating cross-module concerns in Step 3) could be added — not in current scope.</Team_Mode>

<Use_When>

  • User says "program to spec", "reverse engineer", "make a spec", "document this program", "functional specification", "technical specification", "generate a specification"
  • Knowledge transfer / handover of legacy ABAP to another team
  • Preparing a refactoring or rewrite (need to capture as-is behavior)
  • Compliance / audit requires a written spec for custom code
  • Building a WRICEF inventory with detailed per-object specs </Use_When>

<Do_Not_Use_When>

  • User wants a code quality review/sc4sap:analyze-code
  • User wants to create a new program from a spec → /sc4sap:create-program
  • User wants to fix the program → direct MCP Update* calls or re-run /sc4sap:create-program
  • Object does not exist yet </Do_Not_Use_When>

<Session_Trust_Bootstrap> MANDATORY — runs as Step 0a before any MCP call or user interaction.

Invoke /sc4sap:trust-session with parent_skill=sc4sap:program-to-spec to pre-grant MCP tool + file-op permissions (eliminates per-tool prompts during structural reads + screen rendering pipeline).

  • If .sc4sap/session-trust.log already has a line within the last 24h, skip silently.
  • Otherwise run it and surface the one-line confirmation.
  • All Agent dispatches within this skill MUST pass mode: "dontAsk".

Full spec: see ../trust-session/SKILL.md. </Session_Trust_Bootstrap>

<Socratic_Scope_Narrowing> The interview is a funnel: every turn reduces the remaining decision space. Score remaining ambiguity 0–10 after each answer; stop when ≤3.

Default opener — bundled 4-question AskUserQuestion (MANDATORY when the target object is already supplied in ARGUMENTS): Issue ONE AskUserQuestion call with these four questions in this exact order — Audience / Format / Depth / Language — each a single-select with "(Recommended)" as the first option. This replaces Rounds 2+3+5 in one UI turn. Only fall back to per-round questioning when the object itself is missing or ambiguous (Round 1) or when the user picks L3/L4 (Round 4 scope trimming).

# Header Question Options (Recommended first)
1 Audience Who is the primary audience for the spec? Both (Recommended) · Functional · Technical
2 Format Which output format? Markdown (Recommended) · Excel · Both
3 Depth What depth of detail? L2 Standard (Recommended) · L1 Quick Spec · L3 Deep Technical · L4 Audit-grade
4 Language Output language? Korean · English · Japanese (order follows user's current language — promote the matching one to first with "(Recommended)")

Read the full file on GitHub · 182 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 182 lines · 44 tokens per session scan A 2fc1f978795a

Subscribe to this mod's changes

sc4sap:program-to-spec is a skill published in the GitHub repository babamba2/superclaude-for-sap (53 stars, last pushed 15d ago), licensed MIT. It adds 44 tokens to every session and 3,394 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

npoi

Use when reading/writing Excel (.xls/.xlsx) or Word (.doc/.docx) files in .NET without Microsoft Office — data import/export, report generation, template filling. NPOI: .NET port of Apache POI for Office file I/O in server environments.

znlgis/opengis-skills · 60 tokens

devexpress-office-file-api-excel-export

Build .NET applications with the DevExpress Excel Export Library for streaming generation of Excel files with low memory footprint. Use when generating large Excel reports, writing rows sequentially, building Excel files from data grids or report engines, or when the full Spreadsheet Document API would use too much…

DevExpress/agent-skills · 131 tokens

excel-openpyxl-formulas

Editing Excel files with openpyxl to insert formulas while preserving all existing formatting, styles, colors, and structure.

cxcscmu/SkillLearnBench · 30 tokens

flexcel-vcl

Use when writing Delphi / FreePascal / C++Builder code that reads, writes, manipulates, or exports Excel (.xlsx / .xls) files, generates PDF or HTML from Excel, or produces data-driven reports with FlexCel Studio for VCL and FireMonkey (TMS FlexCel). Triggers include Excel/xlsx from Delphi, TXlsFile, TFlexCelReport…

SecondLifes/delphi-expert · 110 tokens

csb

Generate streaming, Excel-friendly CSV downloads in Rails with the csb gem. Use when implementing a CSV export/download, writing a .csv.csb template, building CSV via Csb::Builder, or testing column definitions. Not for parsing CSV.

aki77/csb · 53 tokens

pywin32-excel-docs

Reference for the Microsoft Excel COM API via pywin32. Use this skill whenever writing or reviewing Python code that interacts with Excel using the Excel COM API via win32com, pywin32, or the PyXLL add-in — including code that calls pyxll.xlapp() or XLCell.torange() — and when working with workbooks, worksheets…

pyxll/pyxll-agent-skills · 97 tokens