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
In this repository61 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-managementSkill
- deep-interviewSkill
- estimationSkill
- fit-gap-analysisSkill
- process-designSkill
- project-kickoffSkill
- consultingSkill
- solution-architectureSkill
- value-advisorySkill
- cutover-planningSkill
- data-migrationSkill
- go-live-readinessSkill
- hypercareSkill
- deliverySkill
- testing-strategySkill
- transport-releaseSkill
- autopilotSkill
- code-generationSkill
- code-reviewSkill
- development-workflowSkill
- performance-tuningSkill
- program-to-specSkill
- self-correcting-loopSkill
- developmentSkill
- troubleshootingSkill
- delivery-factorySkill
- metaSkill
- solution-acceleratorSkill
- team-executionSkill
- using-sap-superpowersSkill
- verification-before-completionSkill
- writing-sap-skillsSkill
- abap-cloudSkill
- analyticsSkill
- aribaSkill
- btpSkill
- concurSkill
- coSkill
- ewmSkill
- fieldglassSkill
- fiSkill
- integration-suiteSkill
- jouleSkill
- mmSkill
- pmSkill
- ppSkill
- qmSkill
- sdSkill
- security-grcSkill
- sfSkill
- modulesSkill
- system-adminSkill
- tmSkill
- activate-methodologySkill
- clean-core-strategySkill
- joule-strategySkill
- rise-licensingSkill
- s4hana-migrationSkill
- The first 60 shown.
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
- Distinctive: line 14
NEVER GUESS THE ROOT CAUSE: Run the diagnostic. Read the output.
- Distinctive: line 19
Before suggesting any fix: complete the full diagnostic checklist.
- Distinctive: line 25
Check the SAP Superpowers plugin installation:
- Distinctive: line 38
Check the MCP ABAP ADT server:
- Distinctive: line 49
Check the connection to the SAP system:
- Distinctive: line 61
Check common SAP system issues:
≈ “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.
Files
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
- 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.
- 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.
- 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:
| Check | How | Expected |
| Plugin loaded | Check CLAUDE.md accessible | File exists and readable |
| Skills available | Count .md files in skills/ | ≥ 46 files |
| Agents available | Count .md files in agents/ | ≥ 10 files |
| Hooks registered | Read hooks/hooks.json | All hooks defined |
| Config valid | Read .sap-superpowers/config.json | Valid JSON with required fields |
| Exceptions loaded | Count files in exceptions/ | 8 blocklist files |
| Knowledge available | Check knowledge/indexes/ | Index files present |
Layer 2 — MCP Server Health
Check the MCP ABAP ADT server:
| Check | How | Expected |
| Node.js version | node --version | ≥ 20.0.0 |
| MCP server installed | npx abap-mcp-adt-powerup --version | Version string returned |
| MCP config | Check .mcp.json or mcp config | Server configured |
| Bridge script | Check bridge/mcp-server.cjs | File exists |
| Transport protocol | Config mcpTransport | stdio/http/sse |
Layer 3 — SAP Connection Health
Check the connection to the SAP system:
| Check | How | Expected |
| Env file exists | Check .sap-superpowers/sap.env | File present |
| Host configured | SAP_HOST in env | Valid hostname |
| Client configured | SAP_CLIENT in env | 3-digit client number |
| ADT accessible | HTTP GET to /sap/bc/adt/discovery | 200 OK |
| User authorized | Login test | Successful auth |
| System info | /sap/bc/adt/core/systeminfo | Version and release |
Layer 4 — SAP System Health
Check common SAP system issues:
| Check | How | Expected |
| Work processes | SM50 equivalent via ADT | Sufficient free WPs |
| Transport status | STMS equivalent | Transport routes active |
| ATC available | ATC run possible | Check variant accessible |
| ICF services active | /sap/bc/adt/* nodes | All 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
| Symptom | Likely Cause | Fix |
| "MCP tool not found" | MCP server not installed | npm i -g abap-mcp-adt-powerup |
| "Connection refused" | SAP ADT ICF service inactive | Activate /sap/bc/adt/* in SICF |
| "401 Unauthorized" | Wrong credentials in sap.env | Check SAP_USER and SAP_PASSWORD |
| "Timeout" | Network/firewall issue | Check SAP_HOST accessibility |
| "No transport" | Transport route not configured | Check STMS transport routes |
| Skills not loading | Plugin not installed correctly | Reinstall 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
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
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.

