sap-unused-code
Installation
SKILL.md
SAP Unused Code Discovery
Find Z/Y custom objects that are never called at runtime — the prerequisite for any credible custom-code retirement project. Combines runtime usage data from SAP's call monitor (SCMON) with static where-used analysis to classify each object as UNUSED / LIKELY_UNUSED / USED / INDETERMINATE.
⚠ Required: scope and intent
This skill refuses to run without a filter. A "list all unused code" report across an ECC system returns tens of thousands of rows and is useless. The user must provide at least one of:
- Package (e.g.,
Z_FI_CUSTOM) — analyze only objects in this package - Namespace prefix (e.g.,
Z_SALES_*,/ACME/*) — only objects matching the pattern - Object list — comma-separated names to check
- Intent statement — e.g., "find Z reports in FI-GL that haven't run in 90 days" — narrow by purpose
If none is given, ask. Example clarifying questions:
Which package or namespace do you want to audit? E.g., "the Z_REPORTING package", "all Z* starting with Z_FI_", or "these 15 reports I'm planning to delete".