agentleFS
vigneshbarani24vigneshbarani24/sap-superpowers/skills/meta/sap-doctor/SKILL.md

sap-doctor

Skill9 starsChanged 7 months agoMITView on GitHub

Use when diagnosing plugin health, MCP server connectivity, SAP system connection issues, or configuration problems. Runs systematic health checks and produces a diagnostic report.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER GUESS THE ROOT CAUSE: Run the diagnostic. Read the output.

    line 14
  2. Distinctive:

    Before suggesting any fix: complete the full diagnostic checklist.

    line 19
  3. Distinctive:

    Check the SAP Superpowers plugin installation:

    line 25
  4. Distinctive:

    Check the MCP ABAP ADT server:

    line 38
  5. Distinctive:

    Check the connection to the SAP system:

    line 49
  6. Distinctive:

    Check common SAP system issues:

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SAP Doctor — System Diagnostics

This skill diagnoses issues with the SAP Superpowers plugin, MCP server connection, and SAP system health. It runs systematic checks and produces a clear diagnostic report with remediation steps.

Iron Laws

  1. ALWAYS CHECK ALL LAYERS. Problems cascade — a MCP issue looks like a SAP issue which looks like a code issue. Check every layer systematically: plugin → MCP → SAP → data.
  2. NEVER GUESS THE ROOT CAUSE. Run the diagnostic. Read the output. The error message tells you what's wrong — your guess about what's wrong is often incorrect.
  3. ALWAYS PRODUCE A DIAGNOSTIC REPORT. Even if the fix is obvious, document the finding. The next person to hit this issue needs the diagnostic trail.
<HARD-GATE> Before suggesting any fix: complete the full diagnostic checklist. Premature fixes based on incomplete diagnosis create new problems. </HARD-GATE>

Diagnostic Layers

Layer 1 — Plugin Health

Check the SAP Superpowers plugin installation:

CheckHowExpected
Plugin loadedCheck CLAUDE.md accessibleFile exists and readable
Skills availableCount .md files in skills/≥ 46 files
Agents availableCount .md files in agents/≥ 10 files
Hooks registeredRead hooks/hooks.jsonAll hooks defined
Config validRead .sap-superpowers/config.jsonValid JSON with required fields
Exceptions loadedCount files in exceptions/8 blocklist files
Knowledge availableCheck knowledge/indexes/Index files present

Layer 2 — MCP Server Health

Check the MCP ABAP ADT server:

CheckHowExpected
Node.js versionnode --version≥ 20.0.0
MCP server installednpx abap-mcp-adt-powerup --versionVersion string returned
MCP configCheck .mcp.json or mcp configServer configured
Bridge scriptCheck bridge/mcp-server.cjsFile exists
Transport protocolConfig mcpTransportstdio/http/sse

Layer 3 — SAP Connection Health

Check the connection to the SAP system:

CheckHowExpected
Env file existsCheck .sap-superpowers/sap.envFile present
Host configuredSAP_HOST in envValid hostname
Client configuredSAP_CLIENT in env3-digit client number
ADT accessibleHTTP GET to /sap/bc/adt/discovery200 OK
User authorizedLogin testSuccessful auth
System info/sap/bc/adt/core/systeminfoVersion and release

Layer 4 — SAP System Health

Check common SAP system issues:

CheckHowExpected
Work processesSM50 equivalent via ADTSufficient free WPs
Transport statusSTMS equivalentTransport routes active
ATC availableATC run possibleCheck variant accessible
ICF services active/sap/bc/adt/* nodesAll ADT services active

Diagnostic Report Template

SAP DOCTOR — DIAGNOSTIC REPORT
================================
Date: [Timestamp]
Plugin Version: 3.0
Config: [SAP version] / [ABAP release]

LAYER 1: PLUGIN HEALTH
───────────────────────
[✅/❌] Plugin loaded: [status]
[✅/❌] Skills: [count] available
[✅/❌] Agents: [count] available
[✅/❌] Hooks: [status]
[✅/❌] Config: [status]
[✅/❌] Exceptions: [count] loaded
[✅/❌] Knowledge: [status]

LAYER 2: MCP SERVER
───────────────────
[✅/❌] Node.js: [version]
[✅/❌] MCP server: [version/not found]
[✅/❌] Config: [status]
[✅/❌] Bridge: [status]

LAYER 3: SAP CONNECTION
───────────────────────
[✅/❌] Env file: [status]
[✅/❌] ADT access: [status]
[✅/❌] Auth: [status]
[✅/❌] System: [version]

LAYER 4: SAP SYSTEM
───────────────────
[✅/❌] Work processes: [status]
[✅/❌] Transports: [status]
[✅/❌] ATC: [status]

FINDINGS
────────
[Finding 1]: [Description] → [Remediation]
[Finding 2]: [Description] → [Remediation]

OVERALL STATUS: [HEALTHY / DEGRADED / CRITICAL]

Common Issues & Fixes

SymptomLikely CauseFix
"MCP tool not found"MCP server not installednpm i -g abap-mcp-adt-powerup
"Connection refused"SAP ADT ICF service inactiveActivate /sap/bc/adt/* in SICF
"401 Unauthorized"Wrong credentials in sap.envCheck SAP_USER and SAP_PASSWORD
"Timeout"Network/firewall issueCheck SAP_HOST accessibility
"No transport"Transport route not configuredCheck STMS transport routes
Skills not loadingPlugin not installed correctlyReinstall via plugin marketplace

Verification

  • All 4 diagnostic layers checked
  • Diagnostic report produced
  • All findings have remediation steps
  • Overall status assessed

Cross-References

  • troubleshooting — For runtime SAP issues (not plugin/connection issues)
  • autopilot — Calls sap-doctor before starting pipeline if connection issues suspected

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.