sap-router-skill
CLAUDE.md1 starsChanged 4 months agoMITView on GitHub
Skill orchestration is model-driven, not code-driven. 85 skill files in .claude/skills/*/SKILL.md contain YAML frontmatter (name, description with trigger keywords) and markdown instructions. Claude Code activates matching skills by scanning the frontmatter descriptions. There is no programmatic skill dispatcher — the LLM reads the SKILL.md instructions and decides what to call. karpathy-guidelines is the mandatory behavioral wrapper. Every SAP operation follows Think (surface assumptions) → Simplify (shortest path) → Surgical (touch only what's needed) → Goal-Verify (loop until criteria met). Output…
- Reads credentials
- Installs packages
In this repository413 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .cursor/AGENTS.mdAGENTS.md
- sap-router-skillCopilot instructions
- .cursor/rules/sap-router.mdcCursor rule
- abap-cloud-migrationSkill
- abap-cloudSkill
- abap-code-patternsSkill
- abap-code-reviewSkill
- abap-docs-referenceSkill
- abapgitSkill
- abapSkill
- abap-snippetSkill
- abap-sql-amdpSkill
- abap-system-infoSkill
- abap-unit-testingSkill
- arc-1-skillsSkill
- atc-cloudificationSkill
- authorization-iamSkill
- automation-pilot-catalog-explorerSkill
- automation-pilot-command-generationSkill
- automation-pilot-command-reviewSkill
- automation-pilot-content-management-via-apiSkill
- automation-pilot-debuggerSkill
- automation-pilot-executions-apiSkill
- automation-pilot-executor-executescriptSkill
- automation-pilot-executor-httprequestSkill
- automation-pilot-mcp-server-generationSkill
- automation-pilot-scheduled-executions-apiSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-best-practicesSkill
- btp-build-work-zoneSkill
- btp-business-application-studioSkill
- btp-ciasSkill
- btp-cloud-foundrySkill
- btp-cloud-identitySkill
- btp-cloud-loggingSkill
- btp-cloud-platformSkill
- btp-cloud-transport-managementSkill
- btp-connectivitySkill
- btp-developer-guideSkill
- btp-diagram-generatorSkill
- btp-integration-suiteSkill
- btp-job-schedulingSkill
- btp-master-data-integrationSkill
- btp-service-managerSkill
- cap-add-remote-serviceSkill
- cap-developerSkill
- cap-triviaSkill
- capture-answerSkill
- cap-upgradeSkill
- cds-view-entitiesSkill
- claude-abap-skillsSkill
- claude-memSkill
- clean-abapSkill
- context-modeSkill
- cpi-iflow-developmentSkill
- engine-cap-developmentSkill
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 94
When adding skills, MCPs, CLIs, or npm scripts, update ALL of these:
- Very specific: line 106
All imports from sibling scripts must handle ModuleNotFoundError with sys.path.insert(0, str(SKILL_DIR)) fallback.
- Distinctive: line 111
All 4 Mermaid blocks must avoid subgraph/node ID collisions.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
# Healthcheck — probes 11 configured MCPs (+63 planned) + .env completeness (run first)
npm run hc
npm run hc:prompt # Interactive setup for missing .env vars
# Routing
npm run router -- --action MM_CREATE_MATERIAL
npm run router:gui -- --action SPRO_CONFIG # Force GUI fallback
npm run router:soap -- --action MM_CREATE_MATERIAL # Force SOAP RFC routing
npm run router:bapi -- --action MM_CREATE_MATERIAL # Try BAPI via SOAP RFC
# Pipeline — spec to transport (8 stages)
npm run pipeline -- requirements.md
npm run pipeline:fast -- requirements.md
# ABAP quality
npm run abap:lint # abaplint static analysis
npm run abap:review # lint + security + clean
npm run abap:review:transport # Pre-release gate
# Self-learn
npm run learn:mcp -- --mcp arc-1 --latency 245 --success true
npm run learn:route -- --action MM_CREATE_MATERIAL --success true
# ZROUTER bootstrap
npm run zrouter:probe # Check if ZROUTER installed on SAP
npm run zrouter:install:force # Install via ADT
npm run zrouter:http:test # Test HTTP REST endpoint
npm run zrouter:test -- --suite SMOKE # Run test suite
# SOAP RFC
npm run soap:ping # Test SOAP RFC endpoint availability
# BDC / Install tools
npm run bdc:record -- --tcode MM01 --recording ZMM01_CREATE
npm run bdc:replay -- --recording ZMM01_CREATE --mode N
npm run req:copy -- --source A4HK900123 --target C11
npm run install:ydown -- --file zrouter_v5.abap
npm run install:zabapgit -- --zip zrouter_v5.zip
# Deploy
npm run deploy -- --object zcl_zrouter_http # Deploy single object
npm run deploy:all # Deploy all v5 objects
# Data
npm run template -- --module MM --action CREATE_MATERIAL
npm run csv:check -- --input data.csv --module MM --action CREATE_MATERIAL
# Update
npm run update # git pull + npm install + healthcheckArchitecture
Skill orchestration is model-driven, not code-driven. 85 skill files in .claude/skills/*/SKILL.md contain YAML frontmatter (name, description with trigger keywords) and markdown instructions. Claude Code activates matching skills by scanning the frontmatter descriptions. There is no programmatic skill dispatcher — the LLM reads the SKILL.md instructions and decides what to call.
karpathy-guidelines is the mandatory behavioral wrapper. Every SAP operation follows Think (surface assumptions) → Simplify (shortest path) → Surgical (touch only what's needed) → Goal-Verify (loop until criteria met). Output defaults to caveman compression.
Routing decision tree lives in scripts/sap_router.py (SapRouter.get_route()) and SKILL.md:
- Caveman scope? → cavecrew-investigator/builder/reviewer
- ADT operation? → arc-1 (primary) or aibap (secondary)
- GUI required? → mcp-sap-gui (immediate, no ADT attempt)
- BAPI batch? → ZROUTER RFC via sap-rfc-mcp-server, or SOAP RFC BAPI dispatch
- Spec→code? → 8-stage pipeline
- Fallback: TieredFallback engine in
scripts/fallback_engine.py(6 tiers: ADT→RFC→GUI→BDC→Offline→Manual)
ZROUTER availability is cached in _zrouter_state (None=not checked, True=installed, False=missing). sap_router.py auto-probes on first route. When ZROUTER is missing, the router cascades through fallback tiers.
SOAP RFC BAPI Dispatch — All actions can now call BAPIs via /sap/bc/soap/rfc without JCo/pyrfc/SAP RFC SDK. Uses HTTP POST with SOAP XML envelope. Supported BAPIs: BAPI_MATERIAL_SAVEDATA, BAPI_PO_CREATE1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_GOODSMVT_CREATE, BAPI_INCOMINGINVOICE_CREATE, BAPI_PRODORD_CREATE_FROM_REF, BAPI_USER_CREATE1. The SOAP RFC endpoint is probed by scripts/healthcheck.py and can be forced via npm run router:soap -- --action <ACTION> or npm run router:bapi -- --action <ACTION>.
Key files
| File | Purpose |
SKILL.md | Master dispatch table, 4-principle Karpathy wrapper, routing decision tree |
scripts/sap_router.py | Routing engine with ADT-first/GUI-fallback/SOAP-RFC/caveman delegation/pipeline orchestration |
scripts/fallback_engine.py | 6-tier cascading fallback with retry, verification, 36 mapped actions |
scripts/healthcheck.py | Probes 11 configured MCPs (+63 planned) + SOAP RFC, validates .env, generates interactive prompts |
scripts/self_learn.py | Hermes-style context adaptation — tracks MCP latency/reliability, adapts routing |
scripts/zrouter_bootstrap.py | ZROUTER probe + install (ADT/GUI/Offline) + fallback mapping |
scripts/xls_to_bapi.py | CSV/XLSX → BAPI JSON with field mapping validation |
scripts/memory_manager.py | MEMORY.md session lifecycle + ABAPLINT section |
.mcp.json | 11 launchable MCP servers in mcpServers (ADT x2, GUI, CPI, APIM, CPI/APIM web UI, UI5, Fiori, CAP, context-mode) plus 63 reviewed-but-disabled entries in plannedServers. A server in plannedServers never routes: capability resolution is fail-closed. |
README.md | GitHub landing page — 4 Mermaid diagrams, skill catalog, MCP reference, 130 topic tags, SEO footer |
Cross-file consistency rules
When adding skills, MCPs, CLIs, or npm scripts, update ALL of these:
SKILL.md— skills list, MCPs section, CLIs sectionREADME.md— badges, counts, Mermaid diagrams, skill categories.mcp.json—mcpServersobject,routingconfig,notes.env.template— env vars for new MCPsscripts/healthcheck.py—MCP_HEALTHCHECK_SPEC,OPTIONAL_ENV_FILE_VARS, thresholdspackage.json—descriptionwith accurate counts, npm scriptsAGENTS.md— skill count, routing table
Python script constraints
- Windows cp1252 codec issues: use
.format()or f-strings with ASCII-only characters. Avoid Unicode in print() output (arrows, emojis, curly quotes). - All imports from sibling scripts must handle
ModuleNotFoundErrorwithsys.path.insert(0, str(SKILL_DIR))fallback. - Count thresholds in
healthcheck.pymust match actual disk counts (skills >= 89, scripts >= 24).
Mermaid diagrams (README.md only)
All 4 Mermaid blocks must avoid subgraph/node ID collisions. When a subgraph name matches any node within it, Mermaid rejects with a cycle error. Use distinct subgraph IDs.
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.

