This skill should be used when the user asks to "write a SQLScript procedure", "create HANA stored procedure", "implement AMDP method", "optimize SQLScript performance", "handle SQLScript exceptions", "debug HANA procedure", "create table function", or mentions SQLScript, SAP HANA procedures, AMDP, EXIT HANDLER, or code-to-data paradigm. Comprehensive SQLScript development guidance for SAP HANA database programming including syntax patterns, built-in functions, exception handling, performance optimization, cursor management, and ABAP Managed Database Procedure (AMDP) integration.
Comprehensive SQLScript development skill for SAP HANA database programming.
| Capability | Status |
|------------|--------|
| Commands | 4: /sqlscript-convert, /sqlscript-optimize, /sqlscript-setup, /sqlscript-validate |
| Agents | 3: amdp-helper, procedure-generator, sqlscript-analyzer |
| Hooks | Yes: hooks/hooks.json |
| MCP | No |
| LSP | No |
| Source Freshness | last_verified: 2026-05-31; SQLScript setup command and hook behavior validated locally. |
| Verification | npm run validate; live HANA execution-plan checks pending. |
This skill provides complete guidance for SQLScript development, including:
This plugin includes specialized agents, commands, templates, and validation hooks for comprehensive SQLScript development support.
| Agent | Purpose | Trigger Phrases | |-------|---------|-----------------| | sqlscript-analyzer | Analyze SQLScript code for performance issues and best practices | "analyze my SQLScript", "review HANA procedure", "check procedure performance" | | procedure-generator | Generate procedures interactively (asks clarifying questions first) | "create a SQLScript procedure", "generate HANA procedure", "write stored procedure for" | | amdp-helper | Help with AMDP class creation and debugging | "create an AMDP class", "help with AMDP", "ABAP managed database procedure" |
| Command | Usage | Description |
|---------|-------|-------------|
| /sqlscript-validate | /sqlscript-validate [file] --fix | Validate SQLScript code with auto-fix capability |
| /sqlscript-optimize | /sqlscript-optimize [file] --fix | Analyze performance issues with auto-fix |
| /sqlscript-convert | /sqlscript-convert [file] --to amdp\|standalone\|cds-function | Convert between standalone and AMDP formats |
Production-ready templates with full error handling:
| Template | Description |
|----------|-------------|
| simple-procedure.sql | Basic stored procedure with error handling and input validation |
| procedure-with-error-handling.sql | Comprehensive error handling with logging and custom conditions |
| table-function.sql | Table UDF with parameter validation |
| scalar-function.sql | Scalar UDF examples (name formatting, calculations, status mapping) |
| amdp-class.abap | Complete AMDP class with interface and multiple method types |
| amdp-procedure.sql | AMDP implementation with type mapping reference |
| cursor-iteration.sql | Cursor patterns (classic, FOR loop, nested, set-based alternatives) |
| bulk-operations.sql | Bulk INSERT, UPDATE, DELETE, MERGE, batch processing |
Automatic code quality checks on Write/Edit operations:
sap-sqlscript/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── skills/sap-sqlscript/
│ ├── SKILL.md # Main skill file
│ ├── README.md # This file
│ ├── references/
│ │ ├── skill-reference-guide.md # Index of all references
│ │ ├── glossary.md # SQLScript terminology
│ │ ├── syntax-reference.md # Complete syntax patterns
│ │ ├── built-in-functions.md # All function categories
│ │ ├── data-types.md # Data types and conversion
│ │ ├── exception-handling.md # Error handling patterns
│ │ ├── amdp-integration.md # AMDP implementation guide
│ │ ├── performance-guide.md # Optimization techniques
│ │ ├── advanced-features.md # Lateral joins, JSON, query hints
│ │ └── troubleshooting.md # Common errors and solutions
│ └── templates/
│ ├── simple-procedure.sql
│ ├── procedure-with-error-handling.sql
│ ├── table-function.sql
│ ├── scalar-function.sql
│ ├── amdp-class.abap
│ ├── amdp-procedure.sql
│ ├── cursor-iteration.sql
│ └── bulk-operations.sql
├── agents/
│ ├── sqlscript-analyzer.md # Performance analysis agent
│ ├── procedure-generator.md # Interactive procedure generator
│ └── amdp-helper.md # AMDP assistance agent
├── commands/
│ ├── sqlscript-validate.md # Validation command
│ ├── sqlscript-optimize.md # Optimization command
│ └── sqlscript-convert.md # Conversion command
└── hooks/
└── hooks.json # Validation hooks configuration
This skill is automatically triggered when working with:
Agents are triggered automatically based on context:
"Analyze my procedure for performance issues"
→ sqlscript-analyzer agent reviews your code
"Create a stored procedure to calculate order totals"
→ procedure-generator agent asks clarifying questions, then generates
"Help me create an AMDP class for customer data"
→ amdp-helper agent guides you through AMDP creation
Commands are invoked directly:
/sqlscript-validate src/procedures/calc_totals.sql
/sqlscript-validate src/procedures/calc_totals.sql --fix
/sqlscript-optimize src/procedures/process_orders.sql
/sqlscript-convert src/procedures/get_data.sql --to amdp
Templates are copied and customized:
"Create a new procedure using the simple-procedure template"
→ Claude copies templates/simple-procedure.sql and customizes it
"I need a bulk update operation"
→ Claude uses templates/bulk-operations.sql patterns
The skill content is derived from official SAP documentation and community resources:
SAP HANA SQLScript Reference (PDF)
https://help.sap.com/doc/6254b3bb439c4f409a979dc407b49c9b/2.0.08/en-US/SAP_HANA_SQL_Script_Reference_en.pdfSAP HANA Cloud SQLScript Reference
https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-sqlscript-reference/SAP HANA SQL Functions
https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20a61f29751910149f99f0300dd95cd9.htmlSAP Tutorials - SQLScript
https://developers.sap.com/tutorial-navigator.html?tag=programming-tool:sqlscriptAMDP Cheat Sheet (SAP Samples)
https://github.com/SAP-samples/abap-cheat-sheets/blob/main/12_AMDP.mdSAP Community - SQL Scripts in SAP HANA
https://community.sap.com/t5/technology-blog-posts-by-members/sql-scripts-in-sap-hana/ba-p/13738376GPL-3.0
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer