sap-sqlscript — Claude Code skill for SQLScript, AMDP, HANA
A skill with SQLScript patterns for HANA procedures, functions, and AMDP methods. It helps an agent write database-layer code without hunting through SAP docs.
npx skills add secondsky/sap-skills --skill sap-sqlscript -a claude-codeWhat sap-sqlscript does
The skill covers the SQLScript syntax an agent needs most: anonymous blocks, stored procedures, scalar and table functions, table types, cursors, and exception handlers. It also explains the language quirks that trip people up — variables take a colon when referenced, statements end with semicolons, and everything is case-insensitive.
A section on AMDP shows how to call HANA procedures from ABAP. The guide stresses the code-to-data paradigm: push computation into the database instead of moving data to the application layer. Imperative logic runs sequentially and blocks parallel execution, so performance-sensitive code should stay declarative where possible.
For the browser-based Datasphere editor, the skill delegates to sap-browser-automation, which handles manual authentication, Edge startup with CDP, and approved screenshots. CDP inspection is limited to local UI diagnostics; actual database validation belongs in SQL/HANA tooling. Version 2.4.1, no live HANA runtime evidence — documentation and community references only.
What it helps with
- write a stored procedure with IN, OUT, and INOUT parameters
- implement an AMDP method that calls a HANA procedure from ABAP
- handle SQLScript exceptions with EXIT HANDLER
- spot imperative logic that blocks parallel execution
- get variable and table declaration syntax right
Example prompts for the agent
- write a SQLScript procedure that counts records by status
- create a table function that returns employees with a filter
- show an AMDP method example that calls a HANA procedure
How to install sap-sqlscript
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-sqlscript -a claude-code2Manually: put the files in place
~/.claude/skills/sap-sqlscript/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/sap-sqlscript/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-sqlscript -a codex2Manually: put the files in place
.agents/skills/sap-sqlscript/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-sqlscript -a cursor2Manually: put the files in place
.cursor/skills/sap-sqlscript/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install secondsky/sap-skills sap-sqlscript2Manually: put the files in place
.github/skills/sap-sqlscript/SKILL.md1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-sqlscript -a gemini-cli2Platform CLI
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-sqlscript/skills/sap-sqlscriptManually: put the files in place
.devin/skills/sap-sqlscript/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-sqlscript -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-sqlscript
How do I install sap-sqlscript in Claude Code?
Run npx skills add secondsky/sap-skills --skill sap-sqlscript -a claude-code. The skill lands in ~/.claude/skills/sap-sqlscript/SKILL.md.
What does sap-sqlscript do?
It gives the agent a reference for SQLScript: procedure and function syntax, cursors, exception handling, and AMDP. The goal is code that runs inside the HANA database.
Can I debug the Datasphere editor with this skill?
The skill points you to sap-browser-automation for the browser-based Datasphere editor. CDP is for local UI inspection only; database validation stays with SQL/HANA tooling.