sap-unused-code

sap-unused-code is a skill for Claude Code from arc-mcp/arc-1. It costs 76 tokens per session (3,854 once invoked), scanned A, original, MIT.

An SAP code-audit tool for finding custom objects that appear never to run. SAP is enterprise business software, and custom objects are code created for a particular organization.

In plain words
What is it for?
Use it to review a defined package, namespace, object list, or business area; classify custom code as unused, probably unused, used, or uncertain; and identify possible retirement candidates.
Why use it?
It combines recorded runtime activity with code-reference checks, making it easier to separate unused code from code that is still called or cannot be assessed reliably.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the arc-1 plugin — 24 skills, 8 commands, 1 MCP server shipped together

Good fit Use it to review a defined package, namespace, object list, or business area; classify custom code as unused, probably unused, used, or uncertain; and identify possible retirement candidates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arc-mcp/arc-1/sap-unused-code
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 arc-mcp/arc-1 --skill sap-unused-code
Clone the repo
git clone --depth 1 https://github.com/arc-mcp/arc-1

Made for: Claude Code.

Or install arc-1, the plugin that ships this one along with the rest of its 24 skills, 8 commands, 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 sap-unused-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/arc-mcp/arc-1/sap-unused-code.svg)](https://agentmods.dev/skills/arc-mcp/arc-1/sap-unused-code)
Your own site
<a href="https://agentmods.dev/skills/arc-mcp/arc-1/sap-unused-code"><img src="https://agentmods.dev/badge/skills/arc-mcp/arc-1/sap-unused-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,854 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.
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.00076 $0.03854
Opus 5 $0.00038 $0.01927
Sonnet 5 $0.00015 $0.00771
Haiku 4.5 $0.00008 $0.00385

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

Security

Grade A, and why

sap-unused-code 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 7d 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/sap-unused-code/SKILL.md · 296 lines

How it starts

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

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

Why this is harder than it looks (read before proposing a plan)

SAP has two relevant monitoring systems. Understand which you're working with:

System What it is Where data lives Latency Data lifetime
SCMON (ABAP Call Monitor) Raw per-call counters SCMON_DATA + SCMON_PROG + SCMON_SUB + SCMON_RDATA tables Real-time while active ~7 days rolling
SUSG (Usage Statistics Generator) Daily aggregation over SCMON SUSG_DATA + SUSG_PROG + SUSG_RDATA + SUSG_SUB + SUSG_ADMIN tables (or CDS views SUSG_I_DATA, SUSG_I_RDATA, SUSG_I_ODATA) Depends on batch schedule (default ~02:30 daily) Months/years

Key constraint: SCMON auto-deactivates when record threshold is hit (SCMON_CONF_SET_MAX_NUM_SLICES). SUSG refuses to aggregate if SCMON was inactive during the window. On dev/test systems this breaks the pipeline constantly.

Read the full file on GitHub · 296 lines

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. 7d ago First seen · 296 lines · 76 tokens per session scan A f0242723d1a8

Subscribe to this mod's changes

sap-unused-code is a skill published in the GitHub repository arc-mcp/arc-1 (179 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 3,854 once invoked, about $0.0004 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

adversarial-reviewer

Adversarial code review that assumes bugs exist and hunts for them. Use when asked to review code, find bugs, audit for correctness, stress-test a PR, or when someone says "tear this apart" or "what's wrong with this". Give no benefit of the doubt — every line is guilty until proven innocent.

emdash-cms/emdash · 71 tokens

gsd-ns-review

Route to the appropriate quality / review skill based on the user's intent. gsd-code-review-fix was absorbed by gsd-code-review --fix in #2790.

open-gsd/gsd-core · 16 tokens

issue

Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…

jeremylongshore/tons-of-skills-marketplace · 115 tokens

gitnexus

A code-graph analysis add-on for examining an existing codebase, including symbols, call paths, execution flows, and effects across repositories. It can query GitNexus through its command-line or MCP interfaces.

hashgraph-online/awesome-codex-plugins · 58 tokens

cleanup-code-inspections

Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

flutter/flutter-intellij · 19 tokens

superlint

This skill describes the mandatory standard operating procedure for using our internal SuperLint tool. Use this when tasks require fixing code quality issues according to corporate standards.

mgechev/skillgrade · 0 tokens