sap-hana-ml — Claude Code skill: features and setup
This skill guides Python-based machine learning work with SAP HANA through hana-ml. Use it for in-database models, HANA DataFrames, AutoML, and model analysis.
npx skills add secondsky/sap-skills --skill sap-hana-ml -a claude-codeWhat sap-hana-ml does
The skill covers database connections, DataFrame workflows, and PAL/APL methods for tasks such as classification, regression, clustering, and time-series analysis. It also walks through automated modeling, saving trained models, and inspecting results with visualizations and SHAP. DataFrame operations can build SQL before collect() runs, keeping processing in HANA rather than pulling large tables into Python.
The prerequisites are Python 3.8+ and SAP HANA 2.0 SPS03+ or SAP HANA Cloud; install the client with pip install hana-ml. PAL or APL algorithms will fail if the HANA system lacks the required AFL/PAL/APL libraries or licensing. The material also covers connection troubleshooting, splitting datasets, and assembling ML pipelines.
What it helps with
- connect the
hana-mlclient to SAP HANA - train and score an in-database PAL model
- run classification with APL AutoML
- persist a trained model with
ModelStorage - inspect model explanations with SHAP
Example prompts for the agent
- Help me connect
hana-mlto SAP HANA and load a table as a DataFrame. - Build a PAL pipeline that fills missing values, normalizes features, and trains a classifier.
- Set up AutoML classification and save the trained model with
ModelStorage.
How to install sap-hana-ml
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-hana-ml -a claude-code2Manually: put the files in place
~/.claude/skills/sap-hana-ml/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/sap-hana-ml/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-hana-ml -a codex2Manually: put the files in place
.agents/skills/sap-hana-ml/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-hana-ml -a cursor2Manually: put the files in place
.cursor/skills/sap-hana-ml/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install secondsky/sap-skills sap-hana-ml2Manually: put the files in place
.github/skills/sap-hana-ml/SKILL.md1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-hana-ml -a gemini-cli2Platform CLI
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-hana-ml/skills/sap-hana-mlManually: put the files in place
.devin/skills/sap-hana-ml/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-hana-ml -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about sap-hana-ml
How do I install sap-hana-ml in Claude Code?
Run npx skills add secondsky/sap-skills --skill sap-hana-ml -a claude-code. The skill file is placed at ~/.claude/skills/sap-hana-ml/SKILL.md.
What does sap-hana-ml do?
It supports machine learning workflows on SAP HANA with the Python hana-ml client, including DataFrame work, PAL/APL models, AutoML, and model storage.
What is required to run PAL and APL algorithms?
Use Python 3.8+ with SAP HANA 2.0 SPS03+ or SAP HANA Cloud. The HANA system also needs the relevant AFL/PAL/APL libraries installed and licensed.