abap-cds-model-check
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Set up the SQLScript development environment by installing the SAP HANA SQLScript LSP VS Code extension, configuring workspace settings, and verifying HANA connection environment variables
$ npx -y skills add secondsky/sap-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/sqlscript-setupContext preview
What this command does when you run it.
Set up the SQLScript development environment by installing the SAP HANA SQLScript LSP VS Code extension, configuring workspace settings, and verifying HANA connection environment variables
name: sqlscript-setup description: Set up the SQLScript development environment by installing the SAP HANA SQLScript LSP VS Code extension, configuring workspace settings, and verifying HANA connection environment variables allowed-tools: - Bash - Read argument-hint: "[workspace-path]"
Return setup requirements, files and tools to create or install, safe verification commands, and confirmation points before changes. Default to planning; run installers or write settings only when setup execution is explicitly requested and the workspace path is confirmed.
Automates installation of the `@sap/hana-sqlscript-lsp` VS Code extension and configures workspace settings for SQLScript development.
1. Detects VS Code installation 2. Downloads and installs the SAP HANA SQLScript LSP extension (`.vsix`) 3. Writes or merges recommended `.vscode/settings.json` 4. Checks HANA connection environment variables 5. Prints a status summary
When this command is invoked:
Do not run the setup script during a planning response. Run it only when the user explicitly requests setup execution after reviewing the plan.
bash plugins/sap-sqlscript/scripts/setup-vscode.sh
Capture the full output. Parse each `[TAG]` line:
| Tag | Meaning | |-----|---------| | `[VSCODE] found \| path:<p>` | VS Code CLI found at path `<p>` | | `[VSCODE] not_found` | VS Code CLI not on PATH | | `[VSIX_INSTALL] success` | Extension installed successfully | | `[VSIX_INSTALL] already_installed` | Extension was already present | | `[VSIX_INSTALL] error:<msg>` | Installation failed; `<msg>` contains the reason | | `[HANA_ENV] ...` | Comma-separated `KEY=set\|missing` pairs | | `[SETTINGS_FILE] exists \| path:<p>` | `.vscode/settings.json` already exists | | `[SETTINGS_FILE] not_found` | No `.vscode/settings.json` present |
If `[VSCODE] not_found`, explain that VS Code CLI (`code`) is not on the PATH and provide manual steps:
1. Open VS Code 2. Open the Extensions panel (`Ctrl+Shift+X` / `Cmd+Shift+X`) 3. Search for **"SAP HANA SQLScript"** or **"SAPSE.hana-sqlscript-lsp"** 4. Click Install 5. Alternatively, download the `.vsix` manually:
npm pack @sap/hana-sqlscript-lsp # Then in VS Code: Extensions > ... > Install from VSIX
Do not attempt to write `.vscode/settings.json` if VS Code was not found.
Only proceed if `[VSCODE] found`.
**If `[SETTINGS_FILE] not_found`**: Create `.vscode/settings.json` with exactly:
{
"files.associations": {
"*.sql": "sqlscript"
},
"[sqlscript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "SAPSE.hana-sqlscript-lsp"
},
"sqlscript.formatting.enabled": true
}Also create `.vscode/` directory if it does not exist.
**If `[SETTINGS_FILE] exists`**: Read the existing file, then merge the keys above using Edit — preserve all existing settings and only add missing keys. Do not overwrite values the user has already set for `files.associations`, `[sqlscript]`, or `sqlscript.formatting.enabled`.
Parse the `[HANA_ENV]` line. For each variable:
If any variables are missing, print setup instructions:
# Add to your shell profile (~/.zshrc, ~/.bashrc, etc.) export HANA_HOST="your-hana-host.hanacloud.ondemand.com" export HANA_PORT="443" export HANA_USER="your-username" export HANA_PASSWORD="your-password"
Print a clean summary using this format:
## SQLScript Environment Setup Summary | Component | Status | |-------------------------------|--------| | VS Code CLI | ✓ Found at /path/to/code OR ✗ Not found | | SQLScript LSP extension | ✓ Installed OR ✓ Already installed OR ✗ Error: <msg> | | .vscode/settings.json | ✓ Created OR ✓ Updated OR ✓ Already configured OR — Skipped | | HANA_HOST | ✓ Set OR ✗ Missing | | HANA_PORT | ✓ Set OR ✗ Missing | | HANA_USER | ✓ Set OR ✗ Missing | | HANA_PASSWORD | ✓ Set OR ✗ Missing |
If everything is configured, end with: > Your SQLScript development environment is ready. Reload VS Code to activate the extension if it was just installed.
If anything is missing, end with a numbered action list of remaining steps.
40 SAP development plugins with evidence-tracked verification SAP development plugins for AI coding assistants, with public-source or package-registry verification tracked where available.
Repo: secondsky/sap-skills
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Optional target ABAP platform or SAP BTP ABAP Environment release
Optional runtime or scenario name, such as orchestration, serving, training, or batch
Optional scenario lens such as extension, integration, analytics, or AI