/bw-query-explain
Optional connection alias and BW project for the open query
$ npx -y skills add secondsky/sap-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/bw-query-explain
Context preview
What this command does when you run it.
Optional connection alias and BW project for the open query
Command definition
bw-query-explain.mdname: bw-query-explain
description: Produce business-readable documentation of an existing open SAP BW query from its deep-read model, read-only
allowed-tools:
- Read
- Grep
- Glob
- Bash
argument-hint: "<open-query-technical-name> [alias] [project]"
arguments:
- name: target
description: Technical name of a query already open read-only in BW Query Designer
required: true
- name: context
description: Optional connection alias and BW project for the open query
required: falseBW Query Explain
This command is read-only. It never modifies, saves, creates, or deletes anything; the query stays read-only. Passwords are never accepted; pause at the native SAP login dialog if authentication is required.
Turn an existing open query into plain-language documentation a business analyst can read, using only the deep-read model.
Workflow
1. Run `bw_inspect_capabilities` to confirm the studio is connected and `modelReadSupported` is available. If not, report that and stop. 2. Run `bw_read_query_model` with the connection `alias`, `project`, and `technicalName`. If it returns `found: false`, relay the `instruction` (open the query read-only in BW Query Designer) and stop. 3. From the returned model, describe the query in business terms:
- **Purpose and identity** — technical name, provider, description.
- **Layout** — characteristics on rows, columns, and free; note structures.
- **Key figures** — for each structure member, decode the formula (`formulaDefinitionString`) or the restriction (restricting characteristics and their selected values/variables) into plain language.
- **Filters and variables** — global filter selections and any variables (prompts).
- **Conditions and exceptions** — what each keeps/highlights, and whether an exception affects data cells.
- **Settings** — zero suppression, sign presentation, result position, and other display settings.
4. Flag every entry in `serializationIssues` as an unconfirmed area the reader should verify in BW Query Designer; do not present it as fact. 5. Keep it read-only: do not propose applying changes, and do not create a draft.
Output Contract
Return:
- A business-readable summary: purpose, layout, key figure definitions (decoded formulas/restrictions), filters, variables, conditions/exceptions, and settings.
- Explicit callouts for any `serializationIssues` as unconfirmed areas.
- A short technical appendix mapping each described element to its model path where useful.
- An explicit statement that the documentation is read-only and modified or saved nothing.
Read more
name: bw-query-explain
description: Produce business-readable documentation of an existing open SAP BW query from its deep-read model, read-only
allowed-tools:
- Read
- Grep
- Glob
- Bash
argument-hint: "<open-query-technical-name> [alias] [project]"
arguments:
- name: target
description: Technical name of a query already open read-only in BW Query Designer
required: true
- name: context
description: Optional connection alias and BW project for the open query
required: falseBW Query Explain
This command is read-only. It never modifies, saves, creates, or deletes anything; the query stays read-only. Passwords are never accepted; pause at the native SAP login dialog if authentication is required.
Turn an existing open query into plain-language documentation a business analyst can read, using only the deep-read model.
Workflow
1. Run `bw_inspect_capabilities` to confirm the studio is connected and `modelReadSupported` is available. If not, report that and stop. 2. Run `bw_read_query_model` with the connection `alias`, `project`, and `technicalName`. If it returns `found: false`, relay the `instruction` (open the query read-only in BW Query Designer) and stop. 3. From the returned model, describe the query in business terms:
- **Purpose and identity** — technical name, provider, description.
- **Layout** — characteristics on rows, columns, and free; note structures.
- **Key figures** — for each structure member, decode the formula (`formulaDefinitionString`) or the restriction (restricting characteristics and their selected values/variables) into plain language.
- **Filters and variables** — global filter selections and any variables (prompts).
- **Conditions and exceptions** — what each keeps/highlights, and whether an exception affects data cells.
- **Settings** — zero suppression, sign presentation, result position, and other display settings.
4. Flag every entry in `serializationIssues` as an unconfirmed area the reader should verify in BW Query Designer; do not present it as fact. 5. Keep it read-only: do not propose applying changes, and do not create a draft.
Output Contract
Return:
- A business-readable summary: purpose, layout, key figure definitions (decoded formulas/restrictions), filters, variables, conditions/exceptions, and settings.
- Explicit callouts for any `serializationIssues` as unconfirmed areas.
- A short technical appendix mapping each described element to its model path where useful.
- An explicit statement that the documentation is read-only and modified or saved nothing.
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
Other commands on sap-skills.
- /abap-cds-model-check
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Open command - /abap-cloud-review
Optional target ABAP platform or SAP BTP ABAP Environment release
Open command - /ai-core-deployment-check
Optional runtime or scenario name, such as orchestration, serving, training, or batch
Open command - /api-style-review
Optional API style lens such as REST, OData, OpenAPI, or SDK
Open command - /btp-architecture-review
Optional scenario lens such as extension, integration, analytics, or AI
Open command - /work-zone-content-check
Optional Work Zone edition or content type
Open command

